What is the Difference between "int" and "float"

Please Explain I'm completely new.
Also I heard there are six of these commands.
Like one is "int" and one is "float" , there are about 4 more.
Where can I find all of them with explaination.
Last edited on
In math terms:

int = Integers
float = Real numbers

However, both are limited. int has a limited range of Integers. float has both a limited range of Real values, and a limited precision for representing these real values.
How many more are there? and where can I find them?
Looks on the first few pages of your C++ book, there'll be a list of types somewhere.
Here's one as well (under "Fundamental data types"): http://www.cplusplus.com/doc/tutorial/variables/
Thank you, also can you recommend me C++ video tutorials. That are free and it would be helpful if the is using Dev C++ IDE.
Forget it, you can't learn a programming language with video tutorials.
If you want a free book, there's Thinking in C++:
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html

No comment about Dev-C++, other than this link:
http://www.cplusplus.com/articles/36vU7k9E/
So What IDE do you recomend?
I don't think I'm a book type guy, I have a few C++ books at home I tried to read them and didn't even on understand anything. (I tried many books) mainly because I have no knowledge on computer or programming.
I think video tutorials are the best for me at this stage.
I really liked these tutorials:
http://www.fafiles.com/index.php?course=cppPage

Unfortunately I have to subscribe to them. :(
Which I don't have the money online to do.
Is there any free website?
There are books for beginners that start out from the very basics. I think you should try and get one because they tell you stuff as you need to know it which comes in very handy.

I didn't get a book and it's often meant redoing whole parts of code because they weren't good enough.

I just youtube'd cplusplus tutorials and things come up maybe you should check them out?

http://www.youtube.com/results?search_query=cplusplus+tutorial&aq=0&oq=cplusplu
Videos are for referencing ideas (imo). Book I had for a C++ 101 class is "An Introduction to Programming with C++, 5th edition" by Diane Zak. Good book, goes over most of the basic ideas in C++ using console apps. I think your asking about data types (int, string, char, float, double, etc.). This book goes over those in good detail, goes over how to use them and manipulate them. I would give the book a shot. But it all boils down to whether or not you really want to learn to be a programmer or not. If you don't really want it, you probably won't have the motivation and drive to learn it. I had no idea I wanted to be a programmer until I took a video game dev class in high school. This class used darkBASIC as its IDE. It was a very raw and ugly IDE, and the language itself was not very strong. But it was fun. DarkBASIC did almost nothing for itself, so you had to program everything for your game. And it was blast sitting there trying to figure out how to solve a problem, like jumping (Which I think was probably the hardest thing to program in that class). Anyways, I've ranted a bit. Check out the book. Can probably find it off amazon for like 30ish dollars. Read this book, cover to cover, and you will at least be familiar with the basics.
some people prefer video tutorials to books. you can find many;
http://www.google.com/search?q=c%2B%2B+tutorial+for+beginners&tbo=p&tbm=vid&source=vgc&aq=2&oq=c%2B%2B

imo, sooner or later you will start loving books. you'll see.

ps: I personally don't use, at least try not to use paper books. electronic books (pdf) are better. but even if it's an ebook, I type the codes. that's how I can remember.
Topic archived. No new replies allowed.