Welcome
Welcome to the forums of AntiRTFM's Absolute N00b Spoonfeed C++ Tutorials!

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

What is the problem here??

Think you can spy out that little nasty bug? Try debugging some code in here

What is the problem here??

Postby learning in progress on Mon Jul 13, 2009 2:35 pm

hello
i wrote this code for a countdown and got like 45 errors
please see what the problem is here
Code: Select all
#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{
   cout << "Countdown Begins Now!! \n";
   int countdown;
   countdown=10;
   while (countdown>0)
   {
      cout <<countdown<<", \n";
      countdown-- ;
   }
   cout << "done";
   char f;
   cin <<f;
   return 0;

}
learning in progress
 
Posts: 11
Joined: Thu Jul 09, 2009 4:15 pm

Re: What is the problem here??

Postby antiRTFM on Tue Jul 14, 2009 9:32 pm

cin >> f;
User avatar
antiRTFM
Administrator
 
Posts: 470
Joined: Sun Apr 13, 2008 9:10 am

Re: What is the problem here??

Postby learning in progress on Tue Jul 14, 2009 10:15 pm

antiRTFM wrote:cin >> f;


ooo my bad
thank you
that was stupid lol :D
learning in progress
 
Posts: 11
Joined: Thu Jul 09, 2009 4:15 pm


Return to Debug

Who is online

Users browsing this forum: No registered users and 0 guests