I get an error when I do anything cin related. My computer doesn't understand that >> is an operator. I get an error that says: "Error: No operator '>>' matches these operands." Who knows what I can do? It did the same thing with Code:Blocks and Dev-C++.
Aside from the unique syntax used to create the program, this feels very similar to Java. Thank you for your tutorials. I felt lost with the syntax when I started to try C++, but now that I see it, I feel like I can actually do something with it.
Okay people please listen up I have few more tips to add for BEGINERS:
1. Yout don't have to name you variable num1 it can be: a, b, c, d, e, klfvghdj, it is totally your choice.
2. In the end of the video you saw when he entered the large number and it showed -858993460 it is because it is maximum for int or "integer" so if you whant to set high numbers then you will declare variable as:
Every time I change something, it says the project is out of date. It still allows me to build and it runs absolutely fine, but why is it telling me that?
@MrRazovka yes it should run on most versions of visual studio or visual c++ as it is the same language. you may see differences in the interface though
I'm confused. For this program, I just updated my hello world program. But when I run it, it still says "hello world", and nothing else I typed after.
What are you talking about silly, .NET isn't a programming language it's a framework of predefined classes and objects! You mean in the BASIC programming langauge ;D
Though, you are right it is a lot easier to define a variable in a c language! I moved from basic to c# and I don't see how I ever enjoyed coding in such a "baby" syntax.
is it possible to do this with letters like "What is your favorite food?" and then you could type in "cupcakes" or something and it would say "wow cupcakes are my favorite food too"
just a quick note, i found that with the string it outputs, you don't need to put endl at the end, this could simply be a difference from 08 to 10, but i thought it worth noting
@sawboards Yeah, I know, thanks for pointing that out so I can clear it up. It isn't needed but I usually use it unless I'm going to be outputting text or having the user input text on that same line. "endl" just ends the line so if you use "cout", "cin", or "getline" it will do all of that on the line below.
I get an error when I do anything cin related. My computer doesn't understand that >> is an operator. I get an error that says: "Error: No operator '>>' matches these operands." Who knows what I can do? It did the same thing with Code:Blocks and Dev-C++.
excelery123 17 hours ago
It gives an error when I type "string Conclusion" (without the "s of course). It says it undeclared... Please help...
BlackProphecyGamez 2 weeks ago
If you want to use a huuuuuuuuuge number, you can replace "int" with "double"
EtyleN 2 weeks ago
Reminds me alot of Java
EtyleN 2 weeks ago
Haha, 7:16, WOW. you sound so enthusiastic.
XLCaudio 4 weeks ago
Erm, instead of using endl; could you not use \n in the text lines? for example:
cout << "\nYour favourite number is: "<< num1 << "!";
because I think \n within the speech marks skips a line?
xNerdRage1 1 month ago
Thanks Buddy Your Video Is Very Nice I always use your video for learning
best of luck.
TheNeel1508 2 months ago
Could you type the variabels in the description, because if they are the same as in java and visual basic then i dont want to watch the hole vid.
//Groxioio
Groxioio 2 months ago
THnaks a lot man, i just came from programming batch files using notepad and now im trying visual c++ this really helps!!! KEEP UP THE TUTORIALS!!!
rocketrroller55 3 months ago 2
why does my screen display : this project is out of date... but when i press ok it still builds the program??
rocketrroller55 3 months ago
@rocketrroller55 mine does that too, just check always do this option and hit yes
Reflix91 1 month ago
YOU ARE GREAT!!!
3dkelvin 3 months ago
@FuriousWyvern Maybe. I was looking for a way to detect if a checkbox is checked at a button press when i found this video.
megamaa 4 months ago
what if i want it to be a word intead of a number, whats the variable cus i already tried with num1 but there is an error.
FernandoChu97 4 months ago in playlist More videos from onlivegamer
@FernandoChu97 you would need to use the variable type string instead of int.
onlivegamer 4 months ago
@onlivegamer Thanks!
FernandoChu97 3 months ago
How do you make like ur own program?
SwaggerOverride 4 months ago in playlist More videos from onlivegamer
@SwaggerOverride This is exactly how you do it.
You learn the programming language, and once you understand it, you can figure out how to make the program do what you need it to do.
megamaa 4 months ago
can u make it larger please
xeviltea1 5 months ago
This tutorial was very helpful, Thank you!
ryujj143 5 months ago
Aside from the unique syntax used to create the program, this feels very similar to Java. Thank you for your tutorials. I felt lost with the syntax when I started to try C++, but now that I see it, I feel like I can actually do something with it.
nybxcrotona 6 months ago
i get
1>------ Build started: Project: test123, Configuration: Release Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'c:\users\tommy\documents\visual studio 2010\Projects\test123\Release\test123.exe'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
after i try to add somthing and have to restart visual C++ for some reason
XxAfroLegendxX 6 months ago
This has been flagged as spam show
if i put for example
what is your favorite number?i say 23456
it always says wow!!-858993460 is my favorite number too
mrpndaman129 6 months ago
Comment removed
mrpndaman129 6 months ago
Comment removed
mrpndaman129 6 months ago
Thanks for the video! You really are helping me out with these things! Thank you! I hope to see more and more videos to keep coming! Thanks again!
AssassinsCreed2555 7 months ago
what do you use to record your screen?
potterdevelopment 7 months ago
@potterdevelopment from the looks of the red numbers at the top left of the screen it appears he is using Fraps.
ryujj143 5 months ago
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>C:\Users\Richard\Desktop\programming\C++\variables\Debug\variables.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
help?
RichardMisiak 8 months ago
YOU SHOULDNT USE VOID MAIN IT IS PROHIBITED!
Chriscs7 8 months ago
THX MAN... AFTERI DID THIS I MADE A BIG QUESTIONER
XxCabalOnlinexX 8 months ago
Okay people please listen up I have few more tips to add for BEGINERS:
1. Yout don't have to name you variable num1 it can be: a, b, c, d, e, klfvghdj, it is totally your choice.
2. In the end of the video you saw when he entered the large number and it showed -858993460 it is because it is maximum for int or "integer" so if you whant to set high numbers then you will declare variable as:
float (32 bit)
double (64 bit)
decimal(128 bit)
So there you go i hope it helps :)
juredddd 10 months ago 2
sweet ! the second tutorial i followed correctly :)
oh yeah , you can write it like this too :
-Whats your favorite number?
5
-Wow ! 5 is my favorite number too , have another one !
8
-Wow 8 is my favorite number too !
( then continue repeating such questions or just end the script so the console ends )
Joeriiix3 10 months ago
Every time I change something, it says the project is out of date. It still allows me to build and it runs absolutely fine, but why is it telling me that?
MrSean490 10 months ago
I found out that if some1 types in a numer over 9999999999 then it say's Wow! 4 is also my favorite number xD
Ibanez1237 10 months ago
i cant open it like how it pops up as a cmd
DumbNJKids 11 months ago
From you are here realy good videos. But, will that running on older version?
MrRazovka 11 months ago
@MrRazovka yes it should run on most versions of visual studio or visual c++ as it is the same language. you may see differences in the interface though
olafgarten212 7 months ago
From you are here realy good videos.
MrRazovka 11 months ago
great tutorials, hope you make more, these really helped me with c++
racerman49 11 months ago
Nice
anillhuman 11 months ago
I'm confused. For this program, I just updated my hello world program. But when I run it, it still says "hello world", and nothing else I typed after.
griffinhugo 11 months ago
@griffinhugo well i had the same problem.
then i deleted the declarations except of iostream and it worked.
lol
robdalabob 11 months ago
haha... num1 is ur favorite number 2 XD
imnota5 11 months ago
What are you talking about silly, .NET isn't a programming language it's a framework of predefined classes and objects! You mean in the BASIC programming langauge ;D
Though, you are right it is a lot easier to define a variable in a c language! I moved from basic to c# and I don't see how I ever enjoyed coding in such a "baby" syntax.
TehShox 11 months ago
You are supper Professional
Thank you very much
noneapplicable 1 year ago
You are supper Professional
Thank you very much
noneapplicable 1 year ago
Do you work in image processing? and thanks for tutorials !
sabbathk1d 1 year ago
My Ign is matthewlimma
matthewlimma 1 year ago
Add me on combat arms?
matthewlimma 1 year ago
turn on the transcribe audio its hilarious
ratedstudios 1 year ago
is it possible to do this with letters like "What is your favorite food?" and then you could type in "cupcakes" or something and it would say "wow cupcakes are my favorite food too"
cupcakerogue007 1 year ago
Thanks OnliveGamer!
TheCoCkTa1l 1 year ago
does typing "conio.h" with quotations, as opposed to conio.h using brackets, make any difference?
MaximuMMaximus1 1 year ago
ur the bomb
dude i like all ur videos... thx man
zzdasdasd 1 year ago
just a quick note, i found that with the string it outputs, you don't need to put endl at the end, this could simply be a difference from 08 to 10, but i thought it worth noting
sawboards 1 year ago
@sawboards Yeah, I know, thanks for pointing that out so I can clear it up. It isn't needed but I usually use it unless I'm going to be outputting text or having the user input text on that same line. "endl" just ends the line so if you use "cout", "cin", or "getline" it will do all of that on the line below.
onlivegamer 1 year ago 2
@onlivegamer You should talk louder. Your tuts are great, but I can't here a word you say :/
alexk175 5 months ago
@onlivegamer does \n = endl?
bufanpxl8r 4 months ago
@bufanpxl8r yes it does, but only if it's in a string i.e. surrounded by quotation marks.
megamaa 4 months ago