no i havent. but when try it just tells me that i dont have debugging info. and then it asks if i want to enable debugging and rebuild my program???????? what do i do?????
to rebuild it can i just copy my code and paste it back???
Cainen172 - Never use system("pause") if you are serious about programming. Its non standard and a bad programming habbit.
Check out this link for the reason behind it and alternatives for this: http://www.gidnetwork.com/b-61.html
thanx alot anonymouscoder6 but it still comes up with that same error. (the error is like the kind you get when you are on the internet and it stops responding)
#include <iostream>
#include <windows.h>
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::numeric_limits;
using std::streamsize;
int main()
{
string s = s;
cin.get();
double time = 0.0;
do
{
system("TITLE Stop Watch!!");
system("COLOR 29");
cout << " " << time << "\n\n\n" ;
cout << "to pause hit p" ;
cin >> s;
if ( s == "s")
{
cin.get();
}
_sleep(45);
system("CLS");
time = time + 0.1;
}
while (time <= 1000);
if (time == 1000);
{
cout << "whatever you are timing takes a really long time.........." ;
cin.get();
return 0;
}
;
}