i want to learn C programming on my own...do you know any book? online source? where can I download visual C..help please
C programming source for beginners...?
Well, first off, you are confusing two different languages - "C" is different than "Visual C", though they are related.
C is one of the older languages but its still very common. I'm also in the process of learning C and I'm currently using a Flash based seminar that you can download, called "Thinking in C". It progresses really fast, so you have to go through each chapter several times so you get a good grasp of it.
http://www.mindview.net/
There are tons of free C compilers out there - the one I downloaded is Dev-C++ (C is actually a subset of C++) from bloodshed software.
If you want some of the Visual compilers, MS has a free suite of them - just google "Visual Express" and it will come up.
Reply:www.cprogramming.com
Reply:"Beginning Programming for Dummies" is ok. I have it and it even comes with several editors, debuggers, and compilers. Not sure if there's a C one though.
There's probably a "C for Dummies" too, because there is a "C++ for Dummies."
Monday, May 24, 2010
Learning C/C++ programming?
I want to learn some C++ programming. I would like either a website or a good book to teach me it, and so it makes sense. I would need a good environment to then write the programs on my ... vista laptop.
Any other thoughts are appreciated!
Thanks a lot!
Learning C/C++ programming?
Well there are tons of free C++ and C compilers out there... one of the better books I used to learn was called "Beginning C++ Through Game Programming" by Michael Dawson. I don't do game programming, but honestly for object oriented programming it really does help to see it in these perspectives. This book will take you through the meat and guts at a rather rigorous pace for using console programming. Afterwards, you should have a good set up for doing WinForms or what ever other type of programming you might desire to do.
All that really makes C++ difficult in comparison to other OOP languages is wrapping your head around pointers ;)
Reply:Or else may be you can contact a C++ expert to speeden up learning. Check websites like http://askexpert.info/
Reply:To Lean C, if you want to learn thoroughly, you can use
"The C Language Handbook" by Weber Systems Staff
Reply:The best book on C++ is available for free here: http://www.mindview.net/Books/TICPP/Thin...
Here is a link for some free C++ compilers: http://www.thefreecountry.com/compilers/...
blue flowers
Any other thoughts are appreciated!
Thanks a lot!
Learning C/C++ programming?
Well there are tons of free C++ and C compilers out there... one of the better books I used to learn was called "Beginning C++ Through Game Programming" by Michael Dawson. I don't do game programming, but honestly for object oriented programming it really does help to see it in these perspectives. This book will take you through the meat and guts at a rather rigorous pace for using console programming. Afterwards, you should have a good set up for doing WinForms or what ever other type of programming you might desire to do.
All that really makes C++ difficult in comparison to other OOP languages is wrapping your head around pointers ;)
Reply:Or else may be you can contact a C++ expert to speeden up learning. Check websites like http://askexpert.info/
Reply:To Lean C, if you want to learn thoroughly, you can use
"The C Language Handbook" by Weber Systems Staff
Reply:The best book on C++ is available for free here: http://www.mindview.net/Books/TICPP/Thin...
Here is a link for some free C++ compilers: http://www.thefreecountry.com/compilers/...
blue flowers
Where can I find C programming language?
I want to learn C
I have purchased a tutorial book "Let us C"
I have a computer at home
I have downloaded compiler "turbo C"
but it's no working
I think C is not installed in my pc
Can anyone help me
Plz...
Where can I find C programming language?
Turbo C is old, may not be compatible with today's 32-bit OS.
C-Free 4.0 seems to be widely used, try the link below:
Reply:Contact with near computer shop,
they can help you to install C++ in your computer.
Reply:I use Dev-C++, you can give that a try.
http://www.bloodshed.net/dev/devcpp.html
Microsoft Visual C++ is probably the best one, but it costs money.
I have purchased a tutorial book "Let us C"
I have a computer at home
I have downloaded compiler "turbo C"
but it's no working
I think C is not installed in my pc
Can anyone help me
Plz...
Where can I find C programming language?
Turbo C is old, may not be compatible with today's 32-bit OS.
C-Free 4.0 seems to be widely used, try the link below:
Reply:Contact with near computer shop,
they can help you to install C++ in your computer.
Reply:I use Dev-C++, you can give that a try.
http://www.bloodshed.net/dev/devcpp.html
Microsoft Visual C++ is probably the best one, but it costs money.
C-programming...beginners..pro... plz help me out?
i need a program written in C on finding roots of a quadratic equations and finding the average of n even numbers. I need the programming. Or plz refer any website from where i can download the same. got assignment tommorow.
C-programming...beginners..pro... plz help me out?
Well Ill tell ya. If this is the type of student you are then the teacher is going to know you didnt write the code.
So you get a zero on the assignment or you receive a zero and punished for cheating.
Do your assignments on time and study more...any other answer to this question is morally corrupt.
Reply:Here u'll find dat
Reply:#include%26lt;stdio.h%26gt;
#include%26lt;math.h%26gt;
void main()
{
int a,b,c;
printf("enter the values of a b %26amp;c");
scanf("%d %d %d",%26amp;a,%26amp;b,%26amp;c);
if(b*b%26gt;=4*a*c)
{
rt1=(-b*b+sqrt(b*b-4*a*c))/(2*a);
rt2=(-b*b-sqrt(b*b-4*a*c))/(2*a);
}
else
printf("complex roots");
}
//average of n numbers
#include%26lt;stdio.h%26gt;
void main()
{
int num[100],n=1;i=1;
printf("enter the total no of numbers u want to enter");
scanf("%d",%26amp;n);
#include%26lt;stdio.h%26gt;
#include%26lt;math.h%26gt;
void main()
{
int a,b,c;
printf("enter the values of a b %26amp;c");
scanf("%d %d %d",%26amp;a,%26amp;b,%26amp;c);
if(b*b%26gt;=4*a*c)
{
rt1=(-b*b+sqrt(b*b-4*a*c))/(2*a);
rt2=(-b*b-sqrt(b*b-4*a*c))/(2*a);
}
else
printf("complex roots");
}
//average of n numbers
#include%26lt;stdio.h%26gt;
void main()
{
float num[100],n=1;i=1,sum=0;avg=0;
printf("enter the total no of numbers u want to enter1%26lt;=n%26lt;=100");
scanf("%f",%26amp;num[i-1]);
for(i=1;i%26lt;=n;i++)
{
printf("enter the new number ");
scanf("%f",%26amp;i);
}
for(i=1;i%26lt;=n;i++)
{
sum=sum+num[i-1];
}
avg=sum/n;
printf("the average of %f nos is:%f",n,avg);
}
C-programming...beginners..pro... plz help me out?
Well Ill tell ya. If this is the type of student you are then the teacher is going to know you didnt write the code.
So you get a zero on the assignment or you receive a zero and punished for cheating.
Do your assignments on time and study more...any other answer to this question is morally corrupt.
Reply:Here u'll find dat
Reply:#include%26lt;stdio.h%26gt;
#include%26lt;math.h%26gt;
void main()
{
int a,b,c;
printf("enter the values of a b %26amp;c");
scanf("%d %d %d",%26amp;a,%26amp;b,%26amp;c);
if(b*b%26gt;=4*a*c)
{
rt1=(-b*b+sqrt(b*b-4*a*c))/(2*a);
rt2=(-b*b-sqrt(b*b-4*a*c))/(2*a);
}
else
printf("complex roots");
}
//average of n numbers
#include%26lt;stdio.h%26gt;
void main()
{
int num[100],n=1;i=1;
printf("enter the total no of numbers u want to enter");
scanf("%d",%26amp;n);
#include%26lt;stdio.h%26gt;
#include%26lt;math.h%26gt;
void main()
{
int a,b,c;
printf("enter the values of a b %26amp;c");
scanf("%d %d %d",%26amp;a,%26amp;b,%26amp;c);
if(b*b%26gt;=4*a*c)
{
rt1=(-b*b+sqrt(b*b-4*a*c))/(2*a);
rt2=(-b*b-sqrt(b*b-4*a*c))/(2*a);
}
else
printf("complex roots");
}
//average of n numbers
#include%26lt;stdio.h%26gt;
void main()
{
float num[100],n=1;i=1,sum=0;avg=0;
printf("enter the total no of numbers u want to enter1%26lt;=n%26lt;=100");
scanf("%f",%26amp;num[i-1]);
for(i=1;i%26lt;=n;i++)
{
printf("enter the new number ");
scanf("%f",%26amp;i);
}
for(i=1;i%26lt;=n;i++)
{
sum=sum+num[i-1];
}
avg=sum/n;
printf("the average of %f nos is:%f",n,avg);
}
How can i write a c language program to determine whether 4 digits are palindrome or no?
please help just by telling me how can i define palindrome in C program, i don't want the whole program.
How can i write a c language program to determine whether 4 digits are palindrome or no?
If you are only worried about 4 digits then:
If variable s is the 4 digit string
If (s[0] is equal to s[3]) and (s[1] is equal to s[2]) then it is a 4 digit palindrome.
Use your knowledge of C to implement this suedo code.
==Edit==
* Sheqi actually has an elegant solution (I gave it a thumbs up) but reversing the 4 digit is an extra step you don't need.
* richarduie has an example of what I said.
* I'm not sure what Alexanders code does without tracing it. It might work if when you said "digits" you meant numbers but I would trace it before I handed that one in.
* Curious George has some C++ code so don't copy that verbatim to answer your "C" question. It will just raise eyebrows.
Reply:This will work for any number of type "int":
int a = /*needed number*/;
int x = 0;
int z = a;
while (z)
{
x *= 10;
x += z%10;
z /= 10;
}
if (x==a)
{
/*number is a palindrome*/
}
else
{
/*number isn't a palindrome*/
}
Reply:bool isPalindrome(const std::string %26amp;str)
{
std::string::const_reverse_iterator itEnd = str.rbegin()++;
for (std::string::const_iterator itStart = str.begin(); itStart %26lt; itEnd.base(); ++itStart, ++itEnd)
{
if (*itStart != *itEnd)
{
return false;
}
} return true;
}
Reply:For a four-digit number, break the number into digits. For instance, 5678 would decompose into 5, 6, 7, 8. Compare the first and last for equality. Compare the second and third for equality. If both pairs are equal, the number is palindromic.
E.g.,
2452 --%26gt; (2 == 2) %26amp;%26amp; (4 == 5) --%26gt; true %26amp;%26amp; false --%26gt; false
3663 --%26gt; (3 == 3) %26amp;%26amp; (6 == 6) --%26gt; true %26amp;%26amp; true --%26gt; true
2452 is not a palindormic number; 3663 is.
Reply:A palindrome is a word, phrase, number or other sequence of units that has the property of reading the same in either direction.
Reverse the order of the string and compare with the original.
How can i write a c language program to determine whether 4 digits are palindrome or no?
If you are only worried about 4 digits then:
If variable s is the 4 digit string
If (s[0] is equal to s[3]) and (s[1] is equal to s[2]) then it is a 4 digit palindrome.
Use your knowledge of C to implement this suedo code.
==Edit==
* Sheqi actually has an elegant solution (I gave it a thumbs up) but reversing the 4 digit is an extra step you don't need.
* richarduie has an example of what I said.
* I'm not sure what Alexanders code does without tracing it. It might work if when you said "digits" you meant numbers but I would trace it before I handed that one in.
* Curious George has some C++ code so don't copy that verbatim to answer your "C" question. It will just raise eyebrows.
Reply:This will work for any number of type "int":
int a = /*needed number*/;
int x = 0;
int z = a;
while (z)
{
x *= 10;
x += z%10;
z /= 10;
}
if (x==a)
{
/*number is a palindrome*/
}
else
{
/*number isn't a palindrome*/
}
Reply:bool isPalindrome(const std::string %26amp;str)
{
std::string::const_reverse_iterator itEnd = str.rbegin()++;
for (std::string::const_iterator itStart = str.begin(); itStart %26lt; itEnd.base(); ++itStart, ++itEnd)
{
if (*itStart != *itEnd)
{
return false;
}
} return true;
}
Reply:For a four-digit number, break the number into digits. For instance, 5678 would decompose into 5, 6, 7, 8. Compare the first and last for equality. Compare the second and third for equality. If both pairs are equal, the number is palindromic.
E.g.,
2452 --%26gt; (2 == 2) %26amp;%26amp; (4 == 5) --%26gt; true %26amp;%26amp; false --%26gt; false
3663 --%26gt; (3 == 3) %26amp;%26amp; (6 == 6) --%26gt; true %26amp;%26amp; true --%26gt; true
2452 is not a palindormic number; 3663 is.
Reply:A palindrome is a word, phrase, number or other sequence of units that has the property of reading the same in either direction.
Reverse the order of the string and compare with the original.
IN TURBO C PROGRAMMING LANGUAGE, WHAT IS THE FUNCTION OF keys.h ??? IS THERE A SAMPLE CODE??
IN TURBO C PROGRAMMING LANGUAGE, WHAT IS THE FUNCTION OF keys.h ??? IS THERE A SAMPLE CODE??
IN TURBO C PROGRAMMING LANGUAGE, WHAT IS THE FUNCTION OF keys.h ??? IS THERE A SAMPLE CODE??
#define TRUE 1
#define FALSE 0
#define ESC 27
#define F2 188
#define UP 200
#define FWD 205
#define DN 208
#define BS 203
int getkey(void);
int keyhit(void);
void curr_cursor(int *, int *);
void cursor(int, int);
void hidecursor(void);
void unhidecursor(void);
void savecursor(void);
void restorecursor(void);
void set_cursor_type(unsigned);
#define normalcursor() set_cursor_type(0x0607)
look at this code to understand how each function works.
http://202.179.135.4/data/DDJ/articles/1...
Reply:It appears that the question period has expired. If you have received an answer that meets your needs, _please_ choose one of those as a 'best answer' as soon as you can; otherwise, this question will go to an automatic vote. If you haven't received a good answer for your question, you may want to consider the following,
1) Remove this version of your question and re-post your question. Newer questions get more activity on Yahoo! Answers than old ones.
2) If you do re-post your question, consider why it wasn't answered the first time. Could it be more specific? Could it be worded better? Were there grammatical or spelling errors? Was it in the best category? Can you provide more helpful details?
If it doesn't seem likely that re-posting your question will help you, then here's a listing of my favorite 'answer sites'. Maybe one of them will help you.
Answers.com http://www.answers.com/
Bartleby http://www.bartleby.com/
Yahoo Reference http://education.yahoo.com/reference/
HowStuffWorks http://www.howstuffworks.com/
Wikipedia http://en.wikipedia.org/wiki/Main_Page
Since I really haven't answered your question, it is not necessary to give me any points. Regards.
white flowers
IN TURBO C PROGRAMMING LANGUAGE, WHAT IS THE FUNCTION OF keys.h ??? IS THERE A SAMPLE CODE??
#define TRUE 1
#define FALSE 0
#define ESC 27
#define F2 188
#define UP 200
#define FWD 205
#define DN 208
#define BS 203
int getkey(void);
int keyhit(void);
void curr_cursor(int *, int *);
void cursor(int, int);
void hidecursor(void);
void unhidecursor(void);
void savecursor(void);
void restorecursor(void);
void set_cursor_type(unsigned);
#define normalcursor() set_cursor_type(0x0607)
look at this code to understand how each function works.
http://202.179.135.4/data/DDJ/articles/1...
Reply:It appears that the question period has expired. If you have received an answer that meets your needs, _please_ choose one of those as a 'best answer' as soon as you can; otherwise, this question will go to an automatic vote. If you haven't received a good answer for your question, you may want to consider the following,
1) Remove this version of your question and re-post your question. Newer questions get more activity on Yahoo! Answers than old ones.
2) If you do re-post your question, consider why it wasn't answered the first time. Could it be more specific? Could it be worded better? Were there grammatical or spelling errors? Was it in the best category? Can you provide more helpful details?
If it doesn't seem likely that re-posting your question will help you, then here's a listing of my favorite 'answer sites'. Maybe one of them will help you.
Answers.com http://www.answers.com/
Bartleby http://www.bartleby.com/
Yahoo Reference http://education.yahoo.com/reference/
HowStuffWorks http://www.howstuffworks.com/
Wikipedia http://en.wikipedia.org/wiki/Main_Page
Since I really haven't answered your question, it is not necessary to give me any points. Regards.
white flowers
C Programming error message?
C Programming error?
Hi, just started programming in C for uni.
Here's the relevant part of the program:
#define SIZE 100
{ int day_n, dayn;
char day[SIZE];
...
day_n = %26lt;some function%26gt;;
dayn = day_n%7;
if (dayn==0) day="Saturday";
else if (dayn==1) day="Sunday";
%26lt;etc%26gt;
printf("The day is a %c\n", day)
}
I keep getting error for each line with day in it:
left operand must be modifiable lvalue: op "="
I don't know what this means, or how to fix it, please help!
(I know this isn't the best way of writing it, but I can't be bothered to use a switch statement now!)
C Programming error message?
You can't copy a string like that.
look up strcpy().
Or, do something like this.
if(dayn==0)
printf("The day is Saturday")
if(dayn==1)
printf("The day is Sunday")
Reply:day_n and dayn are integers
enum {SATURDAY,SUNDAY...FRIDAY};
if(day_n == SATURDAY) // the enumerated value of SATURDAY is 0
strcpy(day,"SATURDAY"); // NOTE quoted string is not an integer
if(day_n == SUNDAY) // the enumerated value of SUNDAY is 1
strcpy(day,"SUNDAY");
etc...
?cant be bothered with a switch?
tm_horton@yahoo.com as I can help
Hi, just started programming in C for uni.
Here's the relevant part of the program:
#define SIZE 100
{ int day_n, dayn;
char day[SIZE];
...
day_n = %26lt;some function%26gt;;
dayn = day_n%7;
if (dayn==0) day="Saturday";
else if (dayn==1) day="Sunday";
%26lt;etc%26gt;
printf("The day is a %c\n", day)
}
I keep getting error for each line with day in it:
left operand must be modifiable lvalue: op "="
I don't know what this means, or how to fix it, please help!
(I know this isn't the best way of writing it, but I can't be bothered to use a switch statement now!)
C Programming error message?
You can't copy a string like that.
look up strcpy().
Or, do something like this.
if(dayn==0)
printf("The day is Saturday")
if(dayn==1)
printf("The day is Sunday")
Reply:day_n and dayn are integers
enum {SATURDAY,SUNDAY...FRIDAY};
if(day_n == SATURDAY) // the enumerated value of SATURDAY is 0
strcpy(day,"SATURDAY"); // NOTE quoted string is not an integer
if(day_n == SUNDAY) // the enumerated value of SUNDAY is 1
strcpy(day,"SUNDAY");
etc...
?cant be bothered with a switch?
tm_horton@yahoo.com as I can help
Win32 Dev-C++ Programming Tutorials?
Im learning C++ and Im using Dev-C++ and Im trying Win32 but all the online tutorials I find (along with the book I bought) mainly talk about C++ Console Programming and not the Win32 Window programming so can anyone give me some good links as I cant ever right a word in my window!
Win32 Dev-C++ Programming Tutorials?
Well, use Visual C++ Express for that anyway. It's much better and it has an editor and such. At least untill you get a better understanding of how everything works.
You really don't need a tutorial on Windows programming, because to do it you should have enough knowledge of console programming just to read the MSDN site and pick up what you need.
Reply:Dev, by itself helps you to get started. Open Dev up, goto file, create new project, and then select create new windows application. That will give you a bare-bones, ready to compile win32 app. A simple window without controls. To understand how to create controls (ie. buttons), follow the links below. It's not really that difficult to get started, only to master.
http://winprog.org/tutorial/
http://winapi.foosyerdoos.org.uk/index.p...
Reply:exactly.
Reply:Here is a link for setting up Express 2005 to be able to do Win32 programming:
http://msdn.microsoft.com/vstudio/expres...
It involves using the "platform sdk". I've done it, so it does work.
Borland/CodeGear has their Turbo-C ++ ide available for free, and you can do Win32 and VCL programming.
Win32 Dev-C++ Programming Tutorials?
Well, use Visual C++ Express for that anyway. It's much better and it has an editor and such. At least untill you get a better understanding of how everything works.
You really don't need a tutorial on Windows programming, because to do it you should have enough knowledge of console programming just to read the MSDN site and pick up what you need.
Reply:Dev, by itself helps you to get started. Open Dev up, goto file, create new project, and then select create new windows application. That will give you a bare-bones, ready to compile win32 app. A simple window without controls. To understand how to create controls (ie. buttons), follow the links below. It's not really that difficult to get started, only to master.
http://winprog.org/tutorial/
http://winapi.foosyerdoos.org.uk/index.p...
Reply:exactly.
Reply:Here is a link for setting up Express 2005 to be able to do Win32 programming:
http://msdn.microsoft.com/vstudio/expres...
It involves using the "platform sdk". I've done it, so it does work.
Borland/CodeGear has their Turbo-C ++ ide available for free, and you can do Win32 and VCL programming.
C++ and Opengl / VRML programming?
I know C and C++ programming.
I have to learn the languages:
opengl, directx9, opencv, and VRML language.
what language(s) will i be able to learn more easily with the c/c++ background?
C++ and Opengl / VRML programming?
download source codes for games and make your own code and find some new game you might like.
I have to learn the languages:
opengl, directx9, opencv, and VRML language.
what language(s) will i be able to learn more easily with the c/c++ background?
C++ and Opengl / VRML programming?
download source codes for games and make your own code and find some new game you might like.
Help, Beginner's Question on C++ Language & Programming?
I have no knowledge or exp. of any programming language. Basically I am a beginner, I'm majoring in engineering requiring me to take courses in C++ Prog. I will be taking "Intro to C++ Programming" this Fall. (Description: design algorithms, write int./ext. docs, source codes) Assuming the class will be full of computer science majors, I don't want to look stupid.
1) Can anyone give me a brief summary of what I might be getting myself into, any advice?
2) Does C++ involve any math? What level?
3) Is there anything I should do to prepare for this course?
Any links to useful websites are appreciated..
Help, Beginner's Question on C++ Language %26amp; Programming?
The programming class will be broken into two parts: lecture and lab. Most introductory programming languages have books that are essentially primers. Some common features of introductory programming books are:
An easy to use, friendly guide.
A primer doesn't assume that you already are familiar with all relevant programming concepts.
A primer emphasizes hands-on learning with brief, easily typed examples that develop your understanding—one concept at a time.
A primer clarifies concepts with illustrations.
A primer provides exercises to let you test your understanding, making the book suitable for self-learning or for the classroom.
A beginning C++ book presents C++ fundamentals and illustrates them with short, to-the-point programs that are easy to copy, and to experiment with. The book is not intended to provide encyclopedic coverage of all features and nuaances of the C++ language. But it should present the most important aspects—while laying the foundation for further study.
If your class textbook doesn't accomplish the above to your satisfaction then, please do some outside reading and exercises, i.e., library books. it is important that you do not only the reading, but also complete all of the lab assignments.
You'll learn about the input and output, how to make programs perform repetitive tasks and make choices, the many way to handle and work with data, and how to use small packets of re-usable code: functions and subroutines.
You'll learn about the important object-oriented programming concepts of information hiding (lots of fun), polymorphism (not as bad as it sounds), and inheritance.
By the end, you should be able to write solid, effective programs, and hopefully enjoy yourself doing so.
Many universities do have a separate course in programming mathematics. However, programming is more geared toward logic and following a very structured language.
To prepare yourself for formal C++ instruction, familiarize yourself with the basic concepts. You can get books from a library or bookstore. Remember, the more knowledge and experience you take into a learning situation, the more you will get out of it.
I suggest that you google for C++ tutorials. Below I list a few on-line resources. I also recommend that—while you are learning the concepts—you write as many small programs as possible. This reinforces your knowledge, and improves your analytical skills as well. And finally, if you can find a great study partner then, it might make learning a bit easier..
Good luck.
---------------
C++ Tutorials:
http://www.cprogramming.com/tutorial.htm...
http://www.java2s.com/Tutorial/Cpp/Catal...
---------------
C++ Concepts:
http://www.codeproject.com/vb/net/
http://www.cplusplus.com/
http://www.samspublishing.com/articles/i...
Reply:My first language was C++. Go ahead and buy a book on C++ from Barnes and Nobles or some other book store if you want. A beginners book of course, a see what it's like. It will involve math. Knowing some calculus is probably preferable. Knowing logic is even more important...ie if then and or. It might be helpful to look up recursion in your new book and see if you can't figure out what they are talking about there. The main thing to remember though, is that it is an intro course, so don't worry about it too much. Your professor should lead you through it.
Reply:If you are a logical person you wil have no problem. Don't prepare, it's an intro course... go with it.
What goes overlooked by MOST people, even those that are software developers, is that algorithms ( http://www.answers.com/algorithm?cat=biz... ) are the key (which are written in english, not C++) and that is why your engineering degree requires it.
Programming languages (whether C++, Java, etc.) are simply a bunch of keywords and constructs (easy to learn in a couple weeks) that algorithms get translated into so the computer can solve the problem instead of a person.
The emphasis in this course will NOT be on writing C++, but to use it as the preferred tool to solve problem (and in your class these problems will not be related to the real world, but simple, academic problems like determining if a word is a palindrome).
C++ (like Java and C#) are unique and preferred because they are 'object-oriented' (OO) languages ( http://www.answers.com/topic/object-orie... ) as opposed to procedural languages like BASIC and C and Javascript.
If you have no previous procedural language experience it will be easier to grasp object oriented programming, which will be the most difficult thing to learn in order to start using C++ (you may want to just look for primers on OO programming). HTML is NOT a programming language but rather markup language (hence the ML in HTML).
Java or C# are WAY less cryptic and would be better for an intro course.
Good luck... enjoy.
(no offense to 'csanon' but that response is WAY off base.)
Reply:Answer to question 1:
It’s very hard to study English literature if you don’t know English. Likewise, if you want to study computer science, you’ll need to know at least one, if not more computer languages. Your course is teaching one such language (C++). You’ll end up doing a bit of computer science, very little but enough for a complete beginner. Mostly, you’ll focus on how C++ works.
C++ is a great language, but it’s a pretty bad language for a complete beginner. There’s a tremendous number of horribly written (mostly obsolete and inaccurate) learning resources, and C++ is a difficult language for various reasons (small core library, historic quirks). But it’s also the best systems level language, which is probably why your university chose to teach it. If you aren’t pursuing computer science, C++ isn’t really worth your time. If you are, well that’s that.
Expect some frustration. If by some good stroke of luck you have knowledgeable professors and TAs, you’re fine. Otherwise, you’ll have to figure out things on your own, and that can get painful when faced with short deadlines. C++ has a pretty long learning curve. If you have trouble with the computer science part, that’s even more problematic.
Answer to question 2:
C++ itself involves no math. The three paradigms it strongly involves are procedural, OO, and template programming. None of these are math or logic based paradigms. However, computer science is strongly related to mathematics. You’ll touch upon the very basics of computer science, so you won’t face difficult mathematics. However, you should be able to figure out logically the solution to problems, and in addition, you probably will have to derive algorithms. Again, this is all very very basic, but when people have trouble at this level, they really have trouble.
Answer to question 3:
There are things you can do to prepare. The first is getting good C++ learning resources. I know those college textbooks are expensive, but if you get a bad book from the course, you’ll have more trouble than necessary. There’s a number of ideal books for beginners, but since I have no idea how your course will be laid out, I recommend C++ Primer (4th Edition) by Lippman. Lippman is one of the recognized C++ experts and his book is also recognized by C++ programmers. There’s other useful books for C++ beginners, but I won’t recommend them because as I said I don’t know if you are serious about C++ and how your course will be laid out.
The second thing is finding good help resources. Yahoo Answers isn’t one of them. If you have knowledgeable friends (not classmates!) who are advanced CS students, and really, really know C++, you can ask them for help. Bad advice is really bad though, so avoid them if you aren’t sure. Find good help forums. http://cboard.cprogramming.com/ , http://forums.devshed.com/ , and http://www.daniweb.com/ are all good places to hang out. You can also tap into the usenet groups: http://groups.google.com/group/comp.lang... and http://groups.google.com/group/comp.lang... are frequented by advanced C++ programmers, some of the book authors, the inventor of C++, people who make up the C++ standards, and so on, but you can ask for help on generic C++ questions there. Just be careful, don’t dump your homework questions there. The standards for asking questions are pretty high there.
Remember to Google. You’ll want to know about http://c-faq.com/ and http://www.parashift.com/c++-faq-lite/ . You’ll want references to the standard library. You can google them, although cplusplus.com and cppreference.com are useful references for the library. So is SGI’s STLPort documentation.
Reply:Pay especially careful attention to the algorithms part. While documentation is important, and usually graded as such, if you understand what your teacher and the literature is telling you about how to do things, then the rest should be straightforward.
For an introductory programming course, the thing to remember is you don't have much perspective yet. The school will probably have good reasons for choosing this or that language, but you are learning the language and the discipline and it is very possible that if you study ahead (focusing on C++) you may find that what you have studied are the wrong things. The same may be true of your fellow students.
On this topic, the Wikipedia is a very good resource. Since the content is user-generated, it does have some flaws, but it has such a wide variety of contributors, especially on computer-related subjects, that as an introduction to many subjects it is as good as the sites which limit their contributions to certified "experts". I know there are arguments going on about this right now, but we're talking about the Wikipedia when it is read critically. You will get your textbooks in August or September. They should be what you need for the specifics of how you are going to get through the class. Any general introduction to the subject of programming should help. If only by putting your mind at ease.
Reply:As long as you have a good instructor, you should be fine. Also, any intro to programming class shouldn't have any expectations that the students taking it have any programming experience. C++ is a very easy language to learn. This is probably what you will do on the first or second day of class:
http://www.hitmill.com/programming/cpp/h...
No programming language requires math, but since you are already an engineering major, you should be adept enough at any math that gets thrown at you. I wouldn't expect anything as complicated as even Calc 1, but you never know. Good luck with the class!
Reply:dont worry itll be real simple. You'll probably want to get familiar with a command line interface though as most of your first programs will be command line apps. Im assuming your in windows so get cygwin which is like a unix command shell on windows and you can install a C++ compiler. read the docs to find out how to use it but that will be a very easy way to get started.
Reply:you will want to get a hang of some easier languages first
Start with html move on to BASIC, then VB etc....
song lyrics
1) Can anyone give me a brief summary of what I might be getting myself into, any advice?
2) Does C++ involve any math? What level?
3) Is there anything I should do to prepare for this course?
Any links to useful websites are appreciated..
Help, Beginner's Question on C++ Language %26amp; Programming?
The programming class will be broken into two parts: lecture and lab. Most introductory programming languages have books that are essentially primers. Some common features of introductory programming books are:
An easy to use, friendly guide.
A primer doesn't assume that you already are familiar with all relevant programming concepts.
A primer emphasizes hands-on learning with brief, easily typed examples that develop your understanding—one concept at a time.
A primer clarifies concepts with illustrations.
A primer provides exercises to let you test your understanding, making the book suitable for self-learning or for the classroom.
A beginning C++ book presents C++ fundamentals and illustrates them with short, to-the-point programs that are easy to copy, and to experiment with. The book is not intended to provide encyclopedic coverage of all features and nuaances of the C++ language. But it should present the most important aspects—while laying the foundation for further study.
If your class textbook doesn't accomplish the above to your satisfaction then, please do some outside reading and exercises, i.e., library books. it is important that you do not only the reading, but also complete all of the lab assignments.
You'll learn about the input and output, how to make programs perform repetitive tasks and make choices, the many way to handle and work with data, and how to use small packets of re-usable code: functions and subroutines.
You'll learn about the important object-oriented programming concepts of information hiding (lots of fun), polymorphism (not as bad as it sounds), and inheritance.
By the end, you should be able to write solid, effective programs, and hopefully enjoy yourself doing so.
Many universities do have a separate course in programming mathematics. However, programming is more geared toward logic and following a very structured language.
To prepare yourself for formal C++ instruction, familiarize yourself with the basic concepts. You can get books from a library or bookstore. Remember, the more knowledge and experience you take into a learning situation, the more you will get out of it.
I suggest that you google for C++ tutorials. Below I list a few on-line resources. I also recommend that—while you are learning the concepts—you write as many small programs as possible. This reinforces your knowledge, and improves your analytical skills as well. And finally, if you can find a great study partner then, it might make learning a bit easier..
Good luck.
---------------
C++ Tutorials:
http://www.cprogramming.com/tutorial.htm...
http://www.java2s.com/Tutorial/Cpp/Catal...
---------------
C++ Concepts:
http://www.codeproject.com/vb/net/
http://www.cplusplus.com/
http://www.samspublishing.com/articles/i...
Reply:My first language was C++. Go ahead and buy a book on C++ from Barnes and Nobles or some other book store if you want. A beginners book of course, a see what it's like. It will involve math. Knowing some calculus is probably preferable. Knowing logic is even more important...ie if then and or. It might be helpful to look up recursion in your new book and see if you can't figure out what they are talking about there. The main thing to remember though, is that it is an intro course, so don't worry about it too much. Your professor should lead you through it.
Reply:If you are a logical person you wil have no problem. Don't prepare, it's an intro course... go with it.
What goes overlooked by MOST people, even those that are software developers, is that algorithms ( http://www.answers.com/algorithm?cat=biz... ) are the key (which are written in english, not C++) and that is why your engineering degree requires it.
Programming languages (whether C++, Java, etc.) are simply a bunch of keywords and constructs (easy to learn in a couple weeks) that algorithms get translated into so the computer can solve the problem instead of a person.
The emphasis in this course will NOT be on writing C++, but to use it as the preferred tool to solve problem (and in your class these problems will not be related to the real world, but simple, academic problems like determining if a word is a palindrome).
C++ (like Java and C#) are unique and preferred because they are 'object-oriented' (OO) languages ( http://www.answers.com/topic/object-orie... ) as opposed to procedural languages like BASIC and C and Javascript.
If you have no previous procedural language experience it will be easier to grasp object oriented programming, which will be the most difficult thing to learn in order to start using C++ (you may want to just look for primers on OO programming). HTML is NOT a programming language but rather markup language (hence the ML in HTML).
Java or C# are WAY less cryptic and would be better for an intro course.
Good luck... enjoy.
(no offense to 'csanon' but that response is WAY off base.)
Reply:Answer to question 1:
It’s very hard to study English literature if you don’t know English. Likewise, if you want to study computer science, you’ll need to know at least one, if not more computer languages. Your course is teaching one such language (C++). You’ll end up doing a bit of computer science, very little but enough for a complete beginner. Mostly, you’ll focus on how C++ works.
C++ is a great language, but it’s a pretty bad language for a complete beginner. There’s a tremendous number of horribly written (mostly obsolete and inaccurate) learning resources, and C++ is a difficult language for various reasons (small core library, historic quirks). But it’s also the best systems level language, which is probably why your university chose to teach it. If you aren’t pursuing computer science, C++ isn’t really worth your time. If you are, well that’s that.
Expect some frustration. If by some good stroke of luck you have knowledgeable professors and TAs, you’re fine. Otherwise, you’ll have to figure out things on your own, and that can get painful when faced with short deadlines. C++ has a pretty long learning curve. If you have trouble with the computer science part, that’s even more problematic.
Answer to question 2:
C++ itself involves no math. The three paradigms it strongly involves are procedural, OO, and template programming. None of these are math or logic based paradigms. However, computer science is strongly related to mathematics. You’ll touch upon the very basics of computer science, so you won’t face difficult mathematics. However, you should be able to figure out logically the solution to problems, and in addition, you probably will have to derive algorithms. Again, this is all very very basic, but when people have trouble at this level, they really have trouble.
Answer to question 3:
There are things you can do to prepare. The first is getting good C++ learning resources. I know those college textbooks are expensive, but if you get a bad book from the course, you’ll have more trouble than necessary. There’s a number of ideal books for beginners, but since I have no idea how your course will be laid out, I recommend C++ Primer (4th Edition) by Lippman. Lippman is one of the recognized C++ experts and his book is also recognized by C++ programmers. There’s other useful books for C++ beginners, but I won’t recommend them because as I said I don’t know if you are serious about C++ and how your course will be laid out.
The second thing is finding good help resources. Yahoo Answers isn’t one of them. If you have knowledgeable friends (not classmates!) who are advanced CS students, and really, really know C++, you can ask them for help. Bad advice is really bad though, so avoid them if you aren’t sure. Find good help forums. http://cboard.cprogramming.com/ , http://forums.devshed.com/ , and http://www.daniweb.com/ are all good places to hang out. You can also tap into the usenet groups: http://groups.google.com/group/comp.lang... and http://groups.google.com/group/comp.lang... are frequented by advanced C++ programmers, some of the book authors, the inventor of C++, people who make up the C++ standards, and so on, but you can ask for help on generic C++ questions there. Just be careful, don’t dump your homework questions there. The standards for asking questions are pretty high there.
Remember to Google. You’ll want to know about http://c-faq.com/ and http://www.parashift.com/c++-faq-lite/ . You’ll want references to the standard library. You can google them, although cplusplus.com and cppreference.com are useful references for the library. So is SGI’s STLPort documentation.
Reply:Pay especially careful attention to the algorithms part. While documentation is important, and usually graded as such, if you understand what your teacher and the literature is telling you about how to do things, then the rest should be straightforward.
For an introductory programming course, the thing to remember is you don't have much perspective yet. The school will probably have good reasons for choosing this or that language, but you are learning the language and the discipline and it is very possible that if you study ahead (focusing on C++) you may find that what you have studied are the wrong things. The same may be true of your fellow students.
On this topic, the Wikipedia is a very good resource. Since the content is user-generated, it does have some flaws, but it has such a wide variety of contributors, especially on computer-related subjects, that as an introduction to many subjects it is as good as the sites which limit their contributions to certified "experts". I know there are arguments going on about this right now, but we're talking about the Wikipedia when it is read critically. You will get your textbooks in August or September. They should be what you need for the specifics of how you are going to get through the class. Any general introduction to the subject of programming should help. If only by putting your mind at ease.
Reply:As long as you have a good instructor, you should be fine. Also, any intro to programming class shouldn't have any expectations that the students taking it have any programming experience. C++ is a very easy language to learn. This is probably what you will do on the first or second day of class:
http://www.hitmill.com/programming/cpp/h...
No programming language requires math, but since you are already an engineering major, you should be adept enough at any math that gets thrown at you. I wouldn't expect anything as complicated as even Calc 1, but you never know. Good luck with the class!
Reply:dont worry itll be real simple. You'll probably want to get familiar with a command line interface though as most of your first programs will be command line apps. Im assuming your in windows so get cygwin which is like a unix command shell on windows and you can install a C++ compiler. read the docs to find out how to use it but that will be a very easy way to get started.
Reply:you will want to get a hang of some easier languages first
Start with html move on to BASIC, then VB etc....
song lyrics
I want to learn C programming quickly...?
Hello everyone,
Can you please suggest me the best book to practice and improve my basic skills in c programming...
I have studied "C language" 1 year ago and then I stopped it now I need to remember all and get more programming skills..
Please help me to find good book to practice C programming.
I used Deitel's C book, but I found it so boring...
is there any other best choice?!
I want to learn C programming quickly...?
If you have forgotten "C language" then you should buy book "Programming In ANSI C" by balaguruswami of india.
The book has lots of examples and it has good language for a learner.
Reply:Try Sam teaches you C series of books.They are really interesting.
Also try "Programming In ANSI C" by Balaguruswamy. I use his book
Reply:there are a lot of books out there. It really depends on the reader on how appealing the author is. try samms teach your self series books :)
Reply:I think you should go to this wbsite called www.cprogramming.com. It is very useful. I would suggest that you learn java before learning c because it gives a better idea about programming for begginers.
Can you please suggest me the best book to practice and improve my basic skills in c programming...
I have studied "C language" 1 year ago and then I stopped it now I need to remember all and get more programming skills..
Please help me to find good book to practice C programming.
I used Deitel's C book, but I found it so boring...
is there any other best choice?!
I want to learn C programming quickly...?
If you have forgotten "C language" then you should buy book "Programming In ANSI C" by balaguruswami of india.
The book has lots of examples and it has good language for a learner.
Reply:Try Sam teaches you C series of books.They are really interesting.
Also try "Programming In ANSI C" by Balaguruswamy. I use his book
Reply:there are a lot of books out there. It really depends on the reader on how appealing the author is. try samms teach your self series books :)
Reply:I think you should go to this wbsite called www.cprogramming.com. It is very useful. I would suggest that you learn java before learning c because it gives a better idea about programming for begginers.
Bluetooth programming in c?
IS it possible to do programming in c for bluetooth?????
if yes
then can somebody send me c program code for small bluetooth program to me
Thank You
Bluetooth programming in c?
Of course you can.
Here is the "c program code for small bluetooth program":
#include %26lt;bluetooth.h%26gt;
int main() {
return 0;
}
if yes
then can somebody send me c program code for small bluetooth program to me
Thank You
Bluetooth programming in c?
Of course you can.
Here is the "c program code for small bluetooth program":
#include %26lt;bluetooth.h%26gt;
int main() {
return 0;
}
How do I program c code output to the parallel port?
I am trying to transmit characters thuough the parallel port using c code on a Win98 machine.
How do I program c code output to the parallel port?
I've never tried this myself, but is your program going to be a Windows based one, or a console (dos box) style one?
For a console program, I suspect you can open the file "lpt1" or maybe "prn" (or maybe "lpt1:" or "prn:") and start sending and maybe receiving characters from it as if it were some type of file stream. For example, I vaguely recall being able to do something like this in the past from a command prompt:
echo "this will be printed" %26gt; lpt1
But if you are writing a Windows program, you probably need some kind of Windows API function calls. A little research on that turned up this page:
http://msdn.microsoft.com/library/defaul...
Hope this helps.
How do I program c code output to the parallel port?
I've never tried this myself, but is your program going to be a Windows based one, or a console (dos box) style one?
For a console program, I suspect you can open the file "lpt1" or maybe "prn" (or maybe "lpt1:" or "prn:") and start sending and maybe receiving characters from it as if it were some type of file stream. For example, I vaguely recall being able to do something like this in the past from a command prompt:
echo "this will be printed" %26gt; lpt1
But if you are writing a Windows program, you probably need some kind of Windows API function calls. A little research on that turned up this page:
http://msdn.microsoft.com/library/defaul...
Hope this helps.
Can I find C programs for Mechanical Engineering problems on the net? Any urls?
I am interested in seeing some C programs for Mechanical Engineering problems with the code. Can any show me the same? I would need the code too.
Can I find C programs for Mechanical Engineering problems on the net? Any urls?
Run a search on those keywords in Yahoo or Google and, if they exist, you'll find them.
Reply:Technet.com,physics codes (c)
savage garden
Can I find C programs for Mechanical Engineering problems on the net? Any urls?
Run a search on those keywords in Yahoo or Google and, if they exist, you'll find them.
Reply:Technet.com,physics codes (c)
savage garden
Programming in C? Anyone?
I need to learn C programming by myself. where can i do that in the net? or maybe there is someone out there who is an expert who can help me. Just respond and we can talk through email. i will send you an email. I need to learn or else i will fail in my course. thanks.
Programming in C? Anyone?
The best bet is to get a decent book with tutorials and work through it. I'd also use the newsgroups - they tend to have better technical discourse than forums such as these.
I like to search using groups.google.com
Reply:http://freecomputerbooks.com/
Programming in C? Anyone?
The best bet is to get a decent book with tutorials and work through it. I'd also use the newsgroups - they tend to have better technical discourse than forums such as these.
I like to search using groups.google.com
Reply:http://freecomputerbooks.com/
C programming to control 2 dos windows?
Is it possible that a C program make a dos window to talk to another dos window?
C programming to control 2 dos windows?
AFAIK, you'll need two separate processes. You can get them communicating using your favourite IPC method.
Reply:yeah ,possible .
by socket programming.
Reply:Google "Multi-Threading in C"
Reply:multi threading
C programming to control 2 dos windows?
AFAIK, you'll need two separate processes. You can get them communicating using your favourite IPC method.
Reply:yeah ,possible .
by socket programming.
Reply:Google "Multi-Threading in C"
Reply:multi threading
Linux c++ programming?
I have fedora 8 and i was wondering what compiler and programming environment should i use if i want to program with C++. Thank you. i love linux by the way
Linux c++ programming?
install G++ that is GCC's C++ compiler
Reply:I love Linux and computers but I just changed my major from computer science 'cuz I couldn't take the super long hours of inactivity. I personally like Emacs and there was another i used called Kate which was friggin' awesome but i didn't use it long enough to figure out all the tricks it had to offer.
Reply:g++, the GNU c++ compiler, is most likely already installed.
There are many IDEs/editors available. I use vi and gdb. KDevelop is a KDE IDE which is similar to microsoft visual studio. you can also use eclipse.
Reply:gcc is the standard complier used for just about everything.
You can code in any text editor you like. Try them all, see what you like.
Reply:Use the GNU C++ compiler. It can be used by the command g++.
I suggest
$ g++ -g -o outputfile.exe inputfile.cpp
If your looking for a good c++ IDE I would suggest eclipse or VGUI. Both are good developer Environments.
Linux c++ programming?
install G++ that is GCC's C++ compiler
Reply:I love Linux and computers but I just changed my major from computer science 'cuz I couldn't take the super long hours of inactivity. I personally like Emacs and there was another i used called Kate which was friggin' awesome but i didn't use it long enough to figure out all the tricks it had to offer.
Reply:g++, the GNU c++ compiler, is most likely already installed.
There are many IDEs/editors available. I use vi and gdb. KDevelop is a KDE IDE which is similar to microsoft visual studio. you can also use eclipse.
Reply:gcc is the standard complier used for just about everything.
You can code in any text editor you like. Try them all, see what you like.
Reply:Use the GNU C++ compiler. It can be used by the command g++.
I suggest
$ g++ -g -o outputfile.exe inputfile.cpp
If your looking for a good c++ IDE I would suggest eclipse or VGUI. Both are good developer Environments.
C++ programming?
I am a complete beginner to programming, but have to learn C++ next year at uni so thought I would give myself a bit of a headstart. The book that the course is based on is "C++ How To Program" by Deitel %26amp; Deitel. Is this a good book for me to start to learn with, someone said somewhere that it contains lots of OOP (whatever that is, and apparently its hard to learn). Could someone enlighten me please.
If you don't think this is a good book, could you please recommend one for me (remember, I am a complete beginner, the only programming I have done is a pit of BASIC for picaxe ICs).
Thanks for your help.
C++ programming?
Almost everyone learns with Deitel; it's very common in entry-level classes.
I don't think it's a very good book, however; it's not what I would call "Plain language."
For all begginers, I recommend the For Dummies series. They have a C++ book with a CD-ROM that includes sample code; you might want to try that if you want a head start. Very plain-language and easy to follow.
Reply:I can't remember who its by but its called "C++: An Introduction to Computing". Very good book.
Reply:I actually used the same book in my C++ class a year ago. I had no problem following the book, but then again, while C++ was rather new to me, I have been a programmer in other languages for over 10 years. Overall, I thought the book was fine. If you need to get the book anyways because of the class, pick it up and start playing with it. There will more than likely be areas where you will need further explaination like polymorphism, operator overloading, etc. Some aspects take a little getting used to.
And OOP means Object Oriented Programming. VB.NET, C#.NET, and Java are all examples of OOP. Programming is based more on the use of objects (and their associated properties, methods, events) than your legacy procedural languages (like COBOL, C, etc).
Reply:OOP stands for object oriented programming. C++ was created by taking C (not an OOP language) and adding object oriented constructs to the language. As its roots are not object-oriented it has a lot of baggage and idiosyncrasies that can make it difficult for beginners.
It has been many years since I learned C and C++ and I am unfamiliar with the book that you mention. I will recommend a companion book that will help you out tremendously with the "gotcha's" in the language -- Scott Meyer's "Effective C++". Also, Bruce Eckel's "Thinking in C++" is good and is available for free access online.
Best wishes for a successful time at the university!
Reply:never used that book before (I'm a VB-6 programmer), but there's a great site full of source code: Planet Source Code...http://www.pscode.com
Reply:I would reccommend "Sams Teach Yourself C++ in 24 Hours" for a good start. I used it, and it lays down a great foundation. It will teach you all the basics, from your very first program to advanced concepts like object-orientation and polymorphism.
I also use "C/C++ Programmer's Reference". It's great if you forget the syntax and need a quick refresher.
Reply:What really helped me understand OOP was a section from Windows 95 Programming for Dummies, which apparently is included in C++ for Dummies.
It's the description of "object oriented nachos", and it's one of those things that I read and didn't get. Then, as I lied in bed starting at the ceiling, it hit me.
There's a lot more to OOP than what's in this sample chapter, of course. But those things become a lot easier when you have a solid grasp of the basic concept.
Reply:I would reccommend the website
http://www.cplusplus.com/doc/tutorial/in...
This website has a very nice tutorial and is useful for people without any or with little programming knowledge.
potential break up song
If you don't think this is a good book, could you please recommend one for me (remember, I am a complete beginner, the only programming I have done is a pit of BASIC for picaxe ICs).
Thanks for your help.
C++ programming?
Almost everyone learns with Deitel; it's very common in entry-level classes.
I don't think it's a very good book, however; it's not what I would call "Plain language."
For all begginers, I recommend the For Dummies series. They have a C++ book with a CD-ROM that includes sample code; you might want to try that if you want a head start. Very plain-language and easy to follow.
Reply:I can't remember who its by but its called "C++: An Introduction to Computing". Very good book.
Reply:I actually used the same book in my C++ class a year ago. I had no problem following the book, but then again, while C++ was rather new to me, I have been a programmer in other languages for over 10 years. Overall, I thought the book was fine. If you need to get the book anyways because of the class, pick it up and start playing with it. There will more than likely be areas where you will need further explaination like polymorphism, operator overloading, etc. Some aspects take a little getting used to.
And OOP means Object Oriented Programming. VB.NET, C#.NET, and Java are all examples of OOP. Programming is based more on the use of objects (and their associated properties, methods, events) than your legacy procedural languages (like COBOL, C, etc).
Reply:OOP stands for object oriented programming. C++ was created by taking C (not an OOP language) and adding object oriented constructs to the language. As its roots are not object-oriented it has a lot of baggage and idiosyncrasies that can make it difficult for beginners.
It has been many years since I learned C and C++ and I am unfamiliar with the book that you mention. I will recommend a companion book that will help you out tremendously with the "gotcha's" in the language -- Scott Meyer's "Effective C++". Also, Bruce Eckel's "Thinking in C++" is good and is available for free access online.
Best wishes for a successful time at the university!
Reply:never used that book before (I'm a VB-6 programmer), but there's a great site full of source code: Planet Source Code...http://www.pscode.com
Reply:I would reccommend "Sams Teach Yourself C++ in 24 Hours" for a good start. I used it, and it lays down a great foundation. It will teach you all the basics, from your very first program to advanced concepts like object-orientation and polymorphism.
I also use "C/C++ Programmer's Reference". It's great if you forget the syntax and need a quick refresher.
Reply:What really helped me understand OOP was a section from Windows 95 Programming for Dummies, which apparently is included in C++ for Dummies.
It's the description of "object oriented nachos", and it's one of those things that I read and didn't get. Then, as I lied in bed starting at the ceiling, it hit me.
There's a lot more to OOP than what's in this sample chapter, of course. But those things become a lot easier when you have a solid grasp of the basic concept.
Reply:I would reccommend the website
http://www.cplusplus.com/doc/tutorial/in...
This website has a very nice tutorial and is useful for people without any or with little programming knowledge.
potential break up song
Programming using C++?
how do i write a program for this:
a program that reads in the coordinates of three points on a two-dimensional surface (a plane). Each point has an x-coordinate and a y- coordinate. Each point is given on a line by itself.
Thus your program's input will be something like:
------------------------------------
5.0 5.0
6.0 6.0
7.0 7.0
------------------------------------
The program computes the total distance involved in traveling from the first point (in this case 5.0,5.0) to the second point (6.0,6.0)
to the third point (7.0,7.0 in this case). It displays this distance on a single line:
------------------------------------
2.82843
------------------------------------
I need this asap (C++ programming file.. like one that produces the letter G,
#include %26lt;iostream%26gt;
using namespace std;
int main() {
cout %26lt;%26lt; "G";
return 0;
}
thanks in advance)
Programming using C++?
Okay, so currently the sum total of your programming abilities is to print a single letter to standard output. Frankly, the market for this skill is pretty thin.
I'd suggest doing this assignment yourself, and working on your problem solving skills. I'll give you one tip, though. The distance between two points in the plane is computed as
sqrt( (x0 - x1)^2 + (y0 - y1)^2 )
You'll have to turn that into valid C++, but once you get that working, the rest of the program should be very easy.
If you can't solve it, you may want to reconsider your choice of careers.
Reply:How much will you pay me for this?
a program that reads in the coordinates of three points on a two-dimensional surface (a plane). Each point has an x-coordinate and a y- coordinate. Each point is given on a line by itself.
Thus your program's input will be something like:
------------------------------------
5.0 5.0
6.0 6.0
7.0 7.0
------------------------------------
The program computes the total distance involved in traveling from the first point (in this case 5.0,5.0) to the second point (6.0,6.0)
to the third point (7.0,7.0 in this case). It displays this distance on a single line:
------------------------------------
2.82843
------------------------------------
I need this asap (C++ programming file.. like one that produces the letter G,
#include %26lt;iostream%26gt;
using namespace std;
int main() {
cout %26lt;%26lt; "G";
return 0;
}
thanks in advance)
Programming using C++?
Okay, so currently the sum total of your programming abilities is to print a single letter to standard output. Frankly, the market for this skill is pretty thin.
I'd suggest doing this assignment yourself, and working on your problem solving skills. I'll give you one tip, though. The distance between two points in the plane is computed as
sqrt( (x0 - x1)^2 + (y0 - y1)^2 )
You'll have to turn that into valid C++, but once you get that working, the rest of the program should be very easy.
If you can't solve it, you may want to reconsider your choice of careers.
Reply:How much will you pay me for this?
Can print in c programming without semicolumn?
can print hello in c programming without a semicoloun
Can print in c programming without semicolumn?
All statements in c should be end with semi-column,
and Conditional statements like "if" "else" they are not having semi-column
Reply:All statements in c should be end with semicolumn.
Reply:it is impossible
Can print in c programming without semicolumn?
All statements in c should be end with semi-column,
and Conditional statements like "if" "else" they are not having semi-column
Reply:All statements in c should be end with semicolumn.
Reply:it is impossible
Subscribe to:
Posts (Atom)