Once I am done all these videos will I know C++ or enough to make advanced software? What should I do, Watch or read when I'm done these videos? I also have C++ for dummies so that might help?
@NekitoTwilight Java is just about as complicated and despite what many people thing tests have shown that Java, if properly coded, runs faster then c++, however using more ram in the process. Also, Java can be used for programming things other than just a computer. For instance, all of the apps on the android market are running on Java as well as many other phones.
@SuicidalWaltDisney A properly coded C++ program will frequently still beat a properly written Java program for speed (not always, I'll give you that), but cleanly written Java programs should still be completely adequate in 99% of the cases. Unfortunately, 90% of all programs out there (C++, Java or otherwise) are not exactly master pieces of advanced programming ...
@antred11 wrong, java will always load faster then C++ because it only has 1 lib to pull from unless called upon. C++ has 21, but only 7 are executed at the start, so java loads about .4* faster (assuming you could make 2 programs do the same thing)
In the video you said we could make a funny message and send to our friends to play but you didnt tell us how to send it to others. can you please tell me how to send it to my friends so they can see it ? thank you.
I'll never understand why some people dislike these videos. The tutorials are much better explained than those in the 2 C++ books I've bought, and clearly you go through them way faster!
Good job man, and thanks for sharing your knowledge/expertise :)
the \ (backslash (the one above enter)) is called an escape character. If you are using anything that would normally interfere with your program (like a quote in a quote) you use an escape character (\) to tell the programming language (in this case c++) that this character is actually part of the text (in this case) and then the compiler will read it as text, not as the ending quotation for the line.
@hjjais its supposed to be 2 /'s (ex. "hello world" // will put out : hello owrld" but isnt it supposed to be seperate lines also? so basically you totally wrong right? @mrchoaschef i dont think you can but you can be an escape char under neath it... like
@DareonNXbox if you use // it will comment out your code for the rest of the line. so that will not work. try to run this code
cout << "Jimmy Said \" Hello \"" << endl; // prints out Jimmy Said "Hello"
That should be a working code and the quotes should appear when the line is printed. I put in the // just so I can show you that what you put after the line will not be printed out.
The "output operator", as he calls it, is actually a "bitwise shift" operator that has (in this case) been changed ("overloaded") from it's normal functionality for this specific object ("cout") to work as a function call. This operator is normally used to shift the position of bits to the left or right in the memory. This is of course a very advanced topic that you might not ever run into as a hobby programmer.
I like to improvise: i just didcout << "Suck My Balls \n" ; cout << "Here is a number: "; cout << 10 <<" oh, and I did your mom"; cout << endl; cout << "I am retarded; how much is 15 + 17? I'd reckon the answer is"; cout << 15+17;
these tutorials are amazing man I just understand it lol xD But I've a question: How can I change the title name in the program? Cause now there stands the location of the file...
every1 having this problem with the \n simple because you are all pushing / (Thats the one with the ? if you shift up) so try pressing \ its right next to the enter key on most keyboards and save antiRTFM his time
When you print 10, it's printing text with the value of 10 in text, not just the text "10" a string could be assigned to be equal to "10", but it's in characters. A variable declared as a double precision number can have a numerical value of 10, but not a character value.
Unfortunately it will not show me this video it speeds through it. Even when it doesn't do that it pauses at 1:15. Do I need to watch this or can i skip ahead one?
so I feel kinda dumb...first off excellent tutorials. ive never had the beginnings of c++ explained so well...however I did the hello world program fine, then changed everything and it is programmed the same as whats on the screen but the hello world program keeps getting run, not this new one I typed...help?
so I feel kinda dumb...first off excellent tutorials. ive never had the beginnings of c++ explained so well...however I did the hello world program fine, then changed everything and it is programmed the same as whats on the screen but the hello world program keeps getting run, not this new one I typed...help?
It feels like i started over again, at college. This tutorial is great, it gives you a great feeling about c++ and what it includes. I can keep watching the showing numbers to be going down for every video i watch, cool. Keep up your professional mind in c++
You sir, are a great person. your saving thousands of veiwers money by not having to buy books, but watch your great tutorials. i learned more in the last hour then i did trying to read off google. thank you i love your tut's. subbed and rated 5/5
@benblue3 i play both. combat arms and cs... but i prefer cs.. i mean combat arms is a great game but cs is just so classic :) and gameplay is more awsome than any game.. but you cant expect graphics to be good. its a 1998 game!
i love your tutorials, keep them coming, this is the most i have ever understood about C++, i feel like i am in college learning about this professionally!
fair enough. We should make him an actual award like how Pogobat got one for best instructional video for teaching us the rubiks cube (which i cant finally solve any size cube now because of him) so yea
wonder what happens if you try to make it calculate pi, would it crash? and by the way, what is the other mathematical signd? minus is probably -, but whats the rest (just the "standard" ones)
As I've said on the comments here, system("PAUSE"); is just for Windows OS. If you want your program to work with Apple OS, Linux etc, do not use that code. Cin.get() is best overall, and does the same job (and it looks nice'r and tidy'er).
Not really. I haven't found any difference that is important at all. The GUI is mostly the same, and it does the same things with comments, commands, etc.
The only main difference is that stdafx.h is NOT in Dec C++.
the excact sam thing happened to me :D --- but when you do the "rebuild solution" it always says what the problem is so you dont have to search that much xD xD lol i bet this sound so funny to real programmers
This comment has received too many negative votesshow
thats nots true. in C++, \\ means "this is a comment, ignore this". anything after a \\ will be ignored by the compiler and appear in green in your compiler. having \n appear on your screen is impossible, as the language sees \n as a command, not as an output.
hey , sorry but i have some problems , when i try to compile exactly the same codes as you it says : fatal error C1083: Cannot open precompiled header file: 'Debug\tutorial2.pch': No such file or directory . What is worng ?:I
When i start debugging the program it asks me if i would like to build it then when i click yes it asks me to type the executable file name so what should i do?
only the "\n" or "endl" magic causes text to print on the next line
the white-space carriage-return in your source code doesnt make a difference. so even though cout << 15 + 17; is on the next line of code, that doesnt mean it will print text on the next line in the actual program
hI antiRTFM, I learned a lot in your video tutorial, It's really amazing video tutorial. by the way, do you have any sample program or tutorial for C++ machine application?, like for example a simple moving of toy car.
you must make sure you "include iostream" and everything else shown in the videos. Running Visual Studio with Administrator permissions may also help out
Your tutorials are great but i have problems with my compiler.Sometimes,not always it gives some erors eventhough my program is typed corectly,as yours.I am totally confused:(.Errors like:1>.\lines.cpp(9) : error C2065: 'cout' : undeclared identifier
1>.\lines.cpp(10) : error C2228: left of '.get' must have class/struct/union1>.\lines.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Hi there. excuse me when I want to execute a command like shown above, a window will pop up which says :" executable file name: ". Can you explain in a simple way what should I do here?
im not sure i understand you. yes you can enter mathematical equations to be printed, and no if you type "cout << 10 + ;" or "cout << 10 * ;" that will be a compile error
Well i meant why would the compiler recognize a numeric value and print it to the screen and not recognized alphabetic ones.
So i just assume that theirs a possibility numbers are taken in as math even when they are by themselves. like if someone told me to solve 10. i would just put 10=10 so ten is printed to the screen, well that's just me mumbling. Tough i don't have any idea how the language was coded.
As you will learn in a future "wrap" video, we should always try to stick as much as possible to whats called "Standard C++", not platform-dependent code.
std::cin.get() is standard, while system("pause") is a command specific to microsoft windows.
"thanks so much"
moversluizen 2 weeks ago
Every video i watch i feel i have to say thanks!
so good. Right to the point, love it.
Backflipmarine 3 weeks ago
what's there to not like about this video?
warriorsfan12331 1 month ago in playlist More videos from antiRTFM
Im not gay but.. Dude I love you :D
pk1lover 2 months ago
so what is the code to separate them and get the text onto the next line?
ukmale164 3 months ago
Once I am done all these videos will I know C++ or enough to make advanced software? What should I do, Watch or read when I'm done these videos? I also have C++ for dummies so that might help?
RetroCopS 3 months ago 9
@RetroCopS that book sux. i have it.
kidharris55 1 week ago
why does my backspace come out as a yen?
yukisprite 3 months ago in playlist More videos from antiRTFM
I like how he starts to refer to the compiler as "he"
RedJester93 6 months ago
hmmmm... Still trying to figure out which programming language I think is better: C++ or Java.
SuicidalWaltDisney 6 months ago
@SuicidalWaltDisney
from what i understand, c++ is more complicated but it makes everything fast
and java its not that complicated, but it can be slow and suck plenty of ram...
i think, im not sure..
NekitoTwilight 5 months ago
@NekitoTwilight Java is just about as complicated and despite what many people thing tests have shown that Java, if properly coded, runs faster then c++, however using more ram in the process. Also, Java can be used for programming things other than just a computer. For instance, all of the apps on the android market are running on Java as well as many other phones.
SuicidalWaltDisney 5 months ago
@SuicidalWaltDisney A properly coded C++ program will frequently still beat a properly written Java program for speed (not always, I'll give you that), but cleanly written Java programs should still be completely adequate in 99% of the cases. Unfortunately, 90% of all programs out there (C++, Java or otherwise) are not exactly master pieces of advanced programming ...
antred11 4 months ago
@antred11 wrong, java will always load faster then C++ because it only has 1 lib to pull from unless called upon. C++ has 21, but only 7 are executed at the start, so java loads about .4* faster (assuming you could make 2 programs do the same thing)
ShinoJereamachi 3 months ago in playlist More videos from antiRTFM
@ShinoJereamachi I'm sorry but I have idea what you're talking about. What has ANY of that got to do with what I said in the post you referred to??
antred11 3 months ago
This has been flagged as spam show
@antred11 you don't know java or C++ do you lol. If you did, you would have known.
ShinoJereamachi 3 months ago
Thank you man a lot!!! I'm starting C++ here :D
rambodrahmani 6 months ago
Ha
DarkVortex97 6 months ago
I am unable too debug.
redfoxbennaton 6 months ago
LOOOOOOL I LOVE SCRIPTING!
Me: cout << 15/0
*compiling*
(Warning) Division by 0 on 15/0
lmao
razerburst 6 months ago
This is very helpfull but i only have one question;
How much wood would a woodchuck chuck
if a woodchuck could chuck wood?
dervish2173 7 months ago
@dervish2173 oops u didn't got any thumbs up on that comment :P
it was horrible try to get those
ashbringlife 7 months ago
@ashbringlife that's an interesting comment, however... Can you can a can as a canner can can a can?
dervish2173 7 months ago
@dervish2173 no, the REAL question is how much oil can a gum boil boil if a gum boil could boil gum boil oil?
fredark2 6 months ago
In the video you said we could make a funny message and send to our friends to play but you didnt tell us how to send it to others. can you please tell me how to send it to my friends so they can see it ? thank you.
thawk144 7 months ago
@thawk144
you can add it as a file to an email message or skype. after they download it they can play it and see the message
imnota5 7 months ago
I'll never understand why some people dislike these videos. The tutorials are much better explained than those in the 2 C++ books I've bought, and clearly you go through them way faster!
Good job man, and thanks for sharing your knowledge/expertise :)
jonrhaider 7 months ago 23
how can i type quotes inside the quotes?
MrChaosChef 8 months ago
@MrChaosChef Escape characters
for example:
cout << " \"Hello World\" "
the \ (backslash (the one above enter)) is called an escape character. If you are using anything that would normally interfere with your program (like a quote in a quote) you use an escape character (\) to tell the programming language (in this case c++) that this character is actually part of the text (in this case) and then the compiler will read it as text, not as the ending quotation for the line.
hjjais 8 months ago
@hjjais its supposed to be 2 /'s (ex. "hello world" // will put out : hello owrld" but isnt it supposed to be seperate lines also? so basically you totally wrong right? @mrchoaschef i dont think you can but you can be an escape char under neath it... like
"whatever here"
// say something about up there
DareonNXbox 8 months ago in playlist C++ Tutorial
@DareonNXbox @MrChaosChef * read the one before this... spelled yer name wrong
DareonNXbox 8 months ago in playlist C++ Tutorial
@DareonNXbox if you use // it will comment out your code for the rest of the line. so that will not work. try to run this code
cout << "Jimmy Said \" Hello \"" << endl; // prints out Jimmy Said "Hello"
That should be a working code and the quotes should appear when the line is printed. I put in the // just so I can show you that what you put after the line will not be printed out.
hjjais 7 months ago
I like how you refer to the compiler as a him xD
deathnotedo 8 months ago
Imma pause every 5 videos
UndeadOnWifi 8 months ago
do you know what C# is?
BreinStijn 10 months ago
very ultra noob friendly!!
BboySpikey 10 months ago
for live help
#cpphelp on irc.mibbit.net, webclient at mibbit.com ;p
cplusplus0x 10 months ago
lol this video was uploaded april 6, is his 6th video in the series, and has 6 dislikes (as of now).
coolzidedown 11 months ago
TRIVIA:
The "output operator", as he calls it, is actually a "bitwise shift" operator that has (in this case) been changed ("overloaded") from it's normal functionality for this specific object ("cout") to work as a function call. This operator is normally used to shift the position of bits to the left or right in the memory. This is of course a very advanced topic that you might not ever run into as a hobby programmer.
antiHUMANDesigns 11 months ago
Why dont you use endl command instead \n, it it much easier to understand.
0utspac3r 1 year ago
NICE TUTS THANK U VERY MUCH !!
H4ck3r112 1 year ago
I like to improvise: i just didcout << "Suck My Balls \n" ; cout << "Here is a number: "; cout << 10 <<" oh, and I did your mom"; cout << endl; cout << "I am retarded; how much is 15 + 17? I'd reckon the answer is"; cout << 15+17;
MrNerd314159 1 year ago
these tutorials are amazing man I just understand it lol xD But I've a question: How can I change the title name in the program? Cause now there stands the location of the file...
mafkees122 1 year ago
anyone know what bool is and flag? what do they do?
yagami3242341 1 year ago
lol, lot of people got trolled by \n thinking it was /n
xXxDiukexXx 1 year ago
So endl and \n are basically the same thing? they can always be used as eachother?
cssadiction 1 year ago
Use winforms for better ui
5050neil 1 year ago
can you make me a prog. that can convert all of the computation pllls>>>>>>>>>>>>
mharia13 1 year ago
is there one reason to use endl instead of /n?
zachgoestoeuro 1 year ago
every1 having this problem with the \n simple because you are all pushing / (Thats the one with the ? if you shift up) so try pressing \ its right next to the enter key on most keyboards and save antiRTFM his time
TheTrixs 1 year ago
thanks a lot for the great noob friendly c++ they really helped a lot
farkar78 1 year ago
When you print 10, it's printing text with the value of 10 in text, not just the text "10" a string could be assigned to be equal to "10", but it's in characters. A variable declared as a double precision number can have a numerical value of 10, but not a character value.
HYPERZEPHARIAN 1 year ago
when I type the same code this happens
fatal error LNK1120: 1 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
superpalkia 1 year ago
this video is not working for me for some reason, ive tried everything if some one could plz sum up what this video is about that would help alot.
MrEvga 1 year ago
Unfortunately it will not show me this video it speeds through it. Even when it doesn't do that it pauses at 1:15. Do I need to watch this or can i skip ahead one?
DarkRegime 1 year ago
Video is not loading for me as well :(
KobeKenobi 1 year ago
video not working please fix it
Pantherlnv 1 year ago
video not working reload it bro
Pantherlnv 1 year ago
This videos loading is pissing me the fuck off
eagleduzt 1 year ago
watched all you vids they are great but i want to know whats the diff between \n and endl?
Killerisdeath23 1 year ago
so I feel kinda dumb...first off excellent tutorials. ive never had the beginnings of c++ explained so well...however I did the hello world program fine, then changed everything and it is programmed the same as whats on the screen but the hello world program keeps getting run, not this new one I typed...help?
runenova91 1 year ago
so I feel kinda dumb...first off excellent tutorials. ive never had the beginnings of c++ explained so well...however I did the hello world program fine, then changed everything and it is programmed the same as whats on the screen but the hello world program keeps getting run, not this new one I typed...help?
runenova91 1 year ago
is it just me, or is this video not working very well?
MRpoopsniff 1 year ago
@MRpoopsniff
its not working for me either..
i can hear audio but there is no video
and it scratches sometimes
???
Latinz7 1 year ago
This has been flagged as spam show
@MRpoopsniff
@MRpoopsniff
its not working for me either..
i can hear audio but there is no video
and it scratches sometimes
???
Latinz7 1 year ago
It feels like i started over again, at college. This tutorial is great, it gives you a great feeling about c++ and what it includes. I can keep watching the showing numbers to be going down for every video i watch, cool. Keep up your professional mind in c++
Zilva86 1 year ago
Comment removed
RockerM4NHUN 1 year ago
vid isn't working can u "fix" it?
mbe102 1 year ago
guys my compiler told me that the answer of 15+17=27
MohamedShabanMohy 1 year ago
You sir, are a great person. your saving thousands of veiwers money by not having to buy books, but watch your great tutorials. i learned more in the last hour then i did trying to read off google. thank you i love your tut's. subbed and rated 5/5
TheBossOfDos 1 year ago
you have to put "std" whenever you want to make a virus file like "aids.bot" or something.
lol I made that up Im still learning LMAO.
marcong88 1 year ago
i send my friend a message inside a console and i put VIRUS ALERT! in it
he was freaking out lol
blazedragoon666 2 years ago
@blazedragoon666 haha nice one , I used to do this when I was 10 ..now I want to learn the real way of making a virus !
blingXbling1 1 year ago
With tutorials like this it makes C++ easier to learn than visual basic!
WeDoGames 2 years ago 9
great tutorial,
I am learning.
desolator108 2 years ago
The \n is just like in java.
TheCrazyYoyo 2 years ago
Java, like c++, is based off the actual c language ;p
tehepicasian 2 years ago
Can I code Hacks for An online FPS ?
viagra1978 2 years ago
Counter Strike?
Budisawsome 2 years ago
counter strike is BALLS it costs money and graphics SUCK try combat arms it is 100% free and has INTENSE graphics
benblue3 2 years ago
its 20 bucks thats it. The game play is better than any game in existence
Budisawsome 2 years ago
what how??? look up combat arms on youtube then compare them
benblue3 2 years ago
@benblue3 i play both. combat arms and cs... but i prefer cs.. i mean combat arms is a great game but cs is just so classic :) and gameplay is more awsome than any game.. but you cant expect graphics to be good. its a 1998 game!
xsannyx 2 years ago
Yes of course just learn how to make hooks and how to modify memory addresses for the most part and then usually .dll injection.
adShChronic 2 years ago
@viagra1978 if you want to hack something, you're very far from the ability to, should you be watching episode 6 in a "spoonfeed" tutorial.
TutorialGuyDudeMan 2 years ago 4
@TutorialGuyDudeMan You have to start somewhere...
UtubeAREgrapes 1 year ago
@UtubeAREgrapes lol
TutorialGuyDudeMan 1 year ago
i love your tutorials, keep them coming, this is the most i have ever understood about C++, i feel like i am in college learning about this professionally!
AudioMayhem100 2 years ago 64
Same here he is awsome
TehTechNoob 2 years ago 3
what does the using namespace mean? he explains about the std, but can someone explain the using namespace for me please?
kennybenny 2 years ago
it states that we want to use all of the stuff in the standard file (standard=std) so we dont have to type out all of the stuff in the standard file
AudioMayhem100 2 years ago
Thanks! But how can I make it like that:
20*sin80 ?
To the next tut!
leonidhaimov 2 years ago
you are absolutely excellent
this is the first time i ever have understood anything to do with programming
Graizer101 2 years ago 2
Pardon my imperfect english.
Your English Rocks!!! BTW Thx On Tutorials You Deserve Some Reward..
Markonim 2 years ago 3
exactly, i dont get why he says he has imperfect english, i honestly see no issues with it. And what reward are u thinking of? I'll gladly help lol
decadeflyer 2 years ago
Well , Im Not Sure But Something Like Best C++ Teacher Or Something... You Have Imaginiation Too ;)
Markonim 2 years ago
fair enough. We should make him an actual award like how Pogobat got one for best instructional video for teaching us the rubiks cube (which i cant finally solve any size cube now because of him) so yea
decadeflyer 2 years ago
THX MAN THIS IS FUCKING GREAT, TY!!
ways1337 2 years ago 39
Wow im actually learning!!
BRANDON85L 2 years ago 3
i can use this programme to do my homework :)
BurnedVirus 2 years ago 4
loll thats what a calculators for?
11wesley11 2 years ago
wonder what happens if you try to make it calculate pi, would it crash? and by the way, what is the other mathematical signd? minus is probably -, but whats the rest (just the "standard" ones)
billytalentrocks345 2 years ago
im pretty sure its:
+,-,*, and /
for add, subtract, multiply, and divide
superbarnie 2 years ago
yup your right but your missing one more!!
% - modulo
Suppose you didnt know about it becuase people dont tend to use it really but it may come in useful for you :)
PozHx 2 years ago
whats the difference between '/" and %
superbarnie 2 years ago
and modulas "%", and adding to a variable "+=", taking away "-="
0121ryanh117 2 years ago
cout << 10;
cout << endl;
could be replaced by :
cout << 10 << endl;
and try return EXIT_SUCCESS instead of return 0, so your screen will automatically say : "press any key to continue . . . "
some tricks to make your code a little smaller =)
suggie1337 2 years ago
You could also use system("PAUSE"); to display the default any key thingy. But I think it looks ugly. :P
ddoodm 2 years ago
As I've said on the comments here, system("PAUSE"); is just for Windows OS. If you want your program to work with Apple OS, Linux etc, do not use that code. Cin.get() is best overall, and does the same job (and it looks nice'r and tidy'er).
PilotCube 2 years ago
Very true. :)
I love just printing my own version of "press any key" and using cin.get. :)
ddoodm 2 years ago
remember its lowercase cin :P
ef24kobe 2 years ago
hey um is there any benefit of using visul studio over dev c++?
GNSstudios 2 years ago
GNSstudios:
Not really. I haven't found any difference that is important at all. The GUI is mostly the same, and it does the same things with comments, commands, etc.
The only main difference is that stdafx.h is NOT in Dec C++.
That is the only difference that I have found.
minatorasengan1 2 years ago
Okay thank you.
GNSstudios 2 years ago
lol "sned your program on the mail"
GNSstudios 2 years ago
your exit method is good but i find
system("PAUSE"); to be more useful in this situation
is there any reason to use your method instead of this one?
pbnjp 2 years ago
("PAUSE") is ONLY for Windows.
Don't do this if you want your program to work with Apple OS, Linux etc.
PilotCube 2 years ago
i see thanks for clarifying! :D
pbnjp 2 years ago
Not as text, but as a special .. something else.
I LOVE how you avoid techincal terms to lower this to newb level:) Its highly appreciated!
Dvalinor 2 years ago
oh sorry nevermind it turns out next to it there was a soloution and i had forgot a ; delete comment if you want :P
unfunnyman 2 years ago
the excact sam thing happened to me :D --- but when you do the "rebuild solution" it always says what the problem is so you dont have to search that much xD xD lol i bet this sound so funny to real programmers
LadyAlchemy94 2 years ago
i got problem C2146 Syntax error but im sure copied you right? any help
unfunnyman 2 years ago
if /n makes a new line how would you display '"/n" in the counsel window?
PrjRAPTOR 2 years ago 2
its \n (not /n)
very good question
the backslash is a hint that the next character is an "escape character". \n is a carriage return escape character. \t is a tab escape character
as for your question, the answer is \\
\\ is a backslash escape character :) so if you type \\n it will print \n to the console
antiRTFM 2 years ago 6
Comment removed
st1979 2 years ago
This comment has received too many negative votes show
thats nots true. in C++, \\ means "this is a comment, ignore this". anything after a \\ will be ignored by the compiler and appear in green in your compiler. having \n appear on your screen is impossible, as the language sees \n as a command, not as an output.
zdmey123 2 years ago
zdmey123: i suggest you review the video about the difference between "text and code"
in an upcoming video you will learn how to make comments in C++. But basically you use // (not \\)
antiRTFM 2 years ago 20
@zdmey123 ehhh // or /* */ means comment in C++. Don't try to tell people how to code when you don't know yourself.
GuruOfTheInternet 1 year ago
@zdmey123 get raped.
tTechnocity 1 year ago
@zdmey123 you've got your slashes mixed up. \\ is not comments
// is
Freakinsexy778 1 year ago
@zdmey123
isnt a comment // not \\
the escaping character is \ comments is the opposite //
at least in Java it is... idk about c++ (just learning)
mcgiggles373 1 year ago
hey , sorry but i have some problems , when i try to compile exactly the same codes as you it says : fatal error C1083: Cannot open precompiled header file: 'Debug\tutorial2.pch': No such file or directory . What is worng ?:I
uzi92 2 years ago
Try Build > Rebuild Solution (or ctrl+alt+f7)
Have you disabled Precompiled Headers when creating the project or by editing the project properties? this is discussed in an upcoming vid
if all else fails, try creating a new project from the beginning
antiRTFM 2 years ago
I have a problem ...
When i start debugging the program it asks me if i would like to build it then when i click yes it asks me to type the executable file name so what should i do?
BouSamraProductions 2 years ago
seems like you're making a DLL project
start all over again from the beginning (create a new project), and make sure you make a "Win32 Console Application"
antiRTFM 2 years ago
why isn't '32' on the next line?
by the way, GREAT TUTORIALS!!
webje123 2 years ago
only the "\n" or "endl" magic causes text to print on the next line
the white-space carriage-return in your source code doesnt make a difference. so even though cout << 15 + 17; is on the next line of code, that doesnt mean it will print text on the next line in the actual program
antiRTFM 2 years ago
are /n and endl th same thing?
rocky24724 2 years ago 2
cout << "Great video! I know a lot of C++, and hope to cover stuff my old teacher didn't cover since I don't have a book like C++ for dummies, :P";
cin.get(response);
Lnmul 2 years ago 2
"cout" is is exactly like the command "disp" on my calculator.
falafel1995 2 years ago
haha dude i did the 15+17 n got 3232 lol programmings fun thanks for teachen man
TheOriginalWarrior 2 years ago
Dude i started like 2 hours ago and thanks to you I know pretty much. TY!!!!
CrazyKuddie 2 years ago
hI antiRTFM, I learned a lot in your video tutorial, It's really amazing video tutorial. by the way, do you have any sample program or tutorial for C++ machine application?, like for example a simple moving of toy car.
tnx..
KAIPENG28 2 years ago
see channel FAQ #2
antiRTFM 2 years ago
Legend :D
babyaiko 2 years ago
Instead of \n can't you use endl;
RunnerAWoL 2 years ago
yup, though there's more to endl than just carriage return... but for now lets just say its same as \n
antiRTFM 2 years ago
cout << "You RoX best teacher in c++, your english is not imperfect its good";
cin.get();
misterkrowl 3 years ago
cout << "You really are a great teacher. I can't wait to learn everything there is to learn";
raito94 3 years ago 3
return "thanks :)" ;
antiRTFM 3 years ago
what do i have to do when there is a problem like this: too many characters in constant
Firemaster300 3 years ago
i'm not sure how you got that error, try to PM me with the source code that caused this error
antiRTFM 3 years ago
And errors like:1>.\lines.cpp(3) : error C2146: syntax error : missing ';' before identifier 'std'
1>.\lines.cpp(3) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration
uzi92 3 years ago
you must make sure you "include iostream" and everything else shown in the videos. Running Visual Studio with Administrator permissions may also help out
antiRTFM 3 years ago
runing as administrator has helped me.Thank you
uzi92 3 years ago
Your tutorials are great but i have problems with my compiler.Sometimes,not always it gives some erors eventhough my program is typed corectly,as yours.I am totally confused:(.Errors like:1>.\lines.cpp(9) : error C2065: 'cout' : undeclared identifier
1>.\lines.cpp(10) : error C2065: 'cin' : undeclared identifier
1>.\lines.cpp(10) : error C2228: left of '.get' must have class/struct/union1>.\lines.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
uzi92 3 years ago
Hi there. excuse me when I want to execute a command like shown above, a window will pop up which says :" executable file name: ". Can you explain in a simple way what should I do here?
letmego11 3 years ago
make sure your project is a "win32 console application" not a DLL or so.
try starting again from the beginning. create a new project, select the win32 console project, and type your code again as shown in the videos.
antiRTFM 3 years ago
so basically when you use:
cout << 10;
is taking it in possibly as a mathematical problem?
Since 10 times, plus, minus, and divided by nothing is 10.
by nothing i don't mean zero i mean nothing.
Sadlez 3 years ago
im not sure i understand you. yes you can enter mathematical equations to be printed, and no if you type "cout << 10 + ;" or "cout << 10 * ;" that will be a compile error
antiRTFM 3 years ago
Well i meant why would the compiler recognize a numeric value and print it to the screen and not recognized alphabetic ones.
So i just assume that theirs a possibility numbers are taken in as math even when they are by themselves. like if someone told me to solve 10. i would just put 10=10 so ten is printed to the screen, well that's just me mumbling. Tough i don't have any idea how the language was coded.
Sadlez 3 years ago
wow i learned so much from watching your videos
Wizgamer5000 3 years ago 2
These are great but it would be really helpful if you included the lesson name in the title.
AbstractRS 3 years ago
How come you don't use
system("pause");
in place of
std::cin.get(); ?
Because the system("pause"); allows you to press any key, rather than wait for an enter press, which could be confusing.
asib12 3 years ago
excellent and VERY important question.
As you will learn in a future "wrap" video, we should always try to stick as much as possible to whats called "Standard C++", not platform-dependent code.
std::cin.get() is standard, while system("pause") is a command specific to microsoft windows.
antiRTFM 3 years ago
ahh, so it's like a compatability issue then ? I see. Thanks =)
asib12 3 years ago
it di only work on dev-c++ not in visual c++ 2008 express edition.
666vt 3 years ago
what didnt work?
antiRTFM 3 years ago
i lov these tuts
remco138 3 years ago 3
Thanks again!
Bboyphobia 3 years ago