has anyone made a program where u type your name in and it comes up with something like
i type barry and it comes up with i hate you barry
etc has anyone got the code for this
has anyone made a program where u type your name in and it comes up with something like
i type barry and it comes up with i hate you barry
etc has anyone got the code for this
Newbie
What? Don't ask for that kind of stuff here. We will not do your work for you. Post code of what you think it might be and we will help. Don't post a random idea, and expect us to do it. Geez, read a book.
Code:/*has anyone made a program where u type your name in and it co mes up with something like i type barry and it comes up with i hate you barry etc has anyone got the code for this */ #include <iostream> int main() { char name[81]; std::cout<<"What is your name:"; std::cin>>name; std::cout<<"I hate you "<<name; std::cin.get(); std::cin.get(); }
thanks i will next time cheers treenef you ace i forgot to put 2 of std::cin.get();. these in the code thanks
Newbie
something like:
Code:char name[40]; cin.get(name, 40); cout<<"I hate you "<<name;
I abuse:
Borland C++ Builder 6 Enterprise Edition
Code:std::string name; std::getline(cin, name);
do u know how to run this cause mine isnt workin
Newbie
http://cboard.cprogramming.com/attac...tid=5892&stc=1
link 2 picture
Newbie
http://gnu.org
find make in the list of software, build it.
then make sure it's in dev c++'s path configuration.
Originally Posted by Jeff Henager
Ahahahaha I love this thread.
cheers 4 your help it works now
Newbie