cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
i need help this wont work
i need help this wont work
Sep 21, 2013 at 4:42pm UTC
Nerodic
(20)
#include <iostream>
#include <string>
#include <windows.h>
void ifunc();
using namespace std;
int main(){
string me;
string mee;
string meee;
cout << "what is your favorite color"<< endl;
cin >> me;
cout << "what is your favorite number"<<endl;
cin >> mee;
cout << "what is your favorite shape"<<endl;
cin >> meee;
cout << "so your favorite number,shape,and color is " << endl;
Sleep(2000);
cout << me << endl;
cout << mee << endl;
cout << meee << endl;
ifunc();
system("pause");
return 0;
}
void ifunc()
{
Sleep(5000);
cout << "hey" << endl;
}
Sep 21, 2013 at 5:02pm UTC
Chervil
(7320)
What exactly doesn't work?
Sep 21, 2013 at 9:38pm UTC
learningeveryday
(12)
^ this. info please!
Sep 21, 2013 at 10:02pm UTC
Chervil
(7320)
I compiled and ran the program with no problems. What happens in your experience please? For example does it fail to compile? Or does it run but give an unexpected result? Does it crash your computer? Please be specific.
Topic archived. No new replies allowed.