Ok im new to C++
im learning fairly slow....
all i have down really is that if you put // you can leave a comment
is there a list of codes or something?
i dont understand i have seen microsofts videos on the program but
it is very confusing.
help?
Ok im new to C++
im learning fairly slow....
all i have down really is that if you put // you can leave a comment
is there a list of codes or something?
i dont understand i have seen microsofts videos on the program but
it is very confusing.
help?
Try the tutorials on this site. They're very handy.
Code:#include <iostream> int main() { std::cout << "You'll get the hang of it. Just don't expect it to be quick." << std::endl; std::cin.get(); }
"If you tell the truth, you don't have to remember anything"
-Mark Twain
Thanks I built it too just to show you i can learn fast!
Pic below
Code:#include<iostream> #include <string> int main() { std::cout << "Now make the program say \"What!?\"" << std::endl; std::string response; std::getline(std::cin, response); if(response == "Fine, I will!") std::cout << "What!?" << std::endl; else if(response == "I don't think so.") std::cout << "Fine: figure it out yourself." << std::endl; else std::cout << "Huh?" << std::endl; //Does the console just blink for a second and then disappear? //What can you add from the first program to fix that? What does the FAQ say? }
"If you tell the truth, you don't have to remember anything"
-Mark Twain