Lucandrake Posted August 11, 2005 Share Posted August 11, 2005 My teacher always told me to add string for some reason >.>.... I remember in the first day of school last year my teacher said to always add iostream and string in all my C++ programs Link to comment Share on other sites More sharing options...
Weirdy Posted August 11, 2005 Share Posted August 11, 2005 I'd say he was correct cause I once declared a string variable and I got all kinds of errors cause I forgot to include the library ' oh well...that all changes in managed c++ Link to comment Share on other sites More sharing options...
Gryph Posted August 11, 2005 Share Posted August 11, 2005 Drake got all smart on us. What gives! Link to comment Share on other sites More sharing options...
Lucandrake Posted August 11, 2005 Share Posted August 11, 2005 (edited) I have high goals this year in my school... the highest being the contest in orlando for 1-2 year programmers, I plan on winning first (it's in vb and c++ no java) Edit: On a side note, I'm slowly starting to get the same thrill I get from competing in video games onto competing with my school members Edited August 11, 2005 by Drake Link to comment Share on other sites More sharing options...
Weirdy Posted August 11, 2005 Share Posted August 11, 2005 I have high goals this year in my school... the highest being the contest in orlando for 1-2 year programmers, I plan on winning first (it's in vb and c++ no java) Edit: On a side note, I'm slowly starting to get the same thrill I get from competing in video games onto competing with my school members<{POST_SNAPBACK}>good luck I guess btw, are you sure it's not a contest where visual c++ is used? Link to comment Share on other sites More sharing options...
Ryuken Posted August 11, 2005 Share Posted August 11, 2005 i knew Drake was smarter than me, i just knew it and i just found out. How dumb of me. hehe Link to comment Share on other sites More sharing options...
Agozer Posted August 11, 2005 Share Posted August 11, 2005 Wow, Drake has a hidden talent. That piece of code was nice, and I would have included to begin with. Link to comment Share on other sites More sharing options...
Weirdy Posted August 11, 2005 Share Posted August 11, 2005 #include <iostream> #include <string> using namespace std; int main() { str MemberName; cout << "Enter the name of a member at 1emu\n "; cin >> MemberName; if (MemberName = 'Ryuken' || 'Axl') { cout << "stfu and go away you damn narutard! "; return 0; } else cout << "hi, have a nice day "; return 0; } Link to comment Share on other sites More sharing options...
Lucandrake Posted August 11, 2005 Share Posted August 11, 2005 (edited) Haha weirdy, that's nice, and yes i'm positive the contest is visual C++, I just finished my vb program...boring ' Edit: Weirdy put char not str, use " not '...... besides that it works fine , unless ryuken and axl know that c++ is case sensitive >.> Edited August 11, 2005 by Drake Link to comment Share on other sites More sharing options...
Weirdy Posted August 11, 2005 Share Posted August 11, 2005 Haha weirdy, that's nice, and yes i'm positive the contest is visual C++, I just finished my vb program...boring ' Edit: Weirdy put char not str, use " not '...... besides that it works fine , unless ryuken and axl know that c++ is case sensitive >.><{POST_SNAPBACK}>str is a string variable which is why <string> is included I though you knew that Link to comment Share on other sites More sharing options...
Lucandrake Posted August 11, 2005 Share Posted August 11, 2005 I just ran the program in my computer class, str gave me an error I had to change it to string for it to work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now