Loop Example ! C++

Loop Example !!

Page 1 of 1

6 Replies - 5541 Views - Last Post: 19 March 2011 - 03:18 AM Rate Topic: **--- 2 Votes

#1 drummond2000  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 4
  • Joined: 16-March 09

Loop Example ! C++

Posted 16 March 2009 - 09:10 AM

// Loop Example !!.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"// string class
#include "iostream"// string class

using std ::cout;// the function you call out from the library ("iostream") this function display out put 
using std ::cin; // the function you call out from the library ('iostream") this function storage info from user
using std ::endl;// function you call out from the library(iostream) this function endl the statement
int main()// main body
{ //barcket for the processing body (open)  
	int one = 0;//interger the name of the storage in the memory 
	int option = 0; // the name of the storage in the memory
		while (option >=0)// looping function
		{// open bracket
			cout << " Enter number:"; cin >>one;// prompt the user to enter a number
			cout << " number:"<<one<<endl;// output
			cout << " 1. try again / -1 exit: "; cin>> option;// loop menu
            		}//close bracket

	return 0;//exit
}// bracket for the processing body (close)


*** MOD EDIT: Added code tags. Please :code: ***

Is This A Good Question/Topic? 0
  • +

Replies To: Loop Example ! C++

#2 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3105
  • View blog
  • Posts: 19,144
  • Joined: 14-September 07

Re: Loop Example ! C++

Posted 16 March 2009 - 09:52 AM

If you have a specific question you'll need to tell us. I lack the ability to read minds. :(
Was This Post Helpful? 0
  • +
  • -

#3 Blade2021  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 204
  • Joined: 31-October 08

Re: Loop Example ! C++

Posted 16 March 2009 - 01:16 PM

If I had to guess he wasn't planning on asking one. Just another "bot" that posts code found from other sites.
Was This Post Helpful? 0
  • +
  • -

#4 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1353
  • View blog
  • Posts: 4,659
  • Joined: 19-February 09

Re: Loop Example ! C++

Posted 18 March 2011 - 07:06 PM

The #include should be :-

#include <iostream>


This post has been edited by #define: 18 March 2011 - 08:57 PM

Was This Post Helpful? 0
  • +
  • -

#5 odrummond2000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 14-February 11

Re: Loop Example ! C++

Posted 18 March 2011 - 10:52 PM

View PostBlade2021, on 16 March 2009 - 01:16 PM, said:

If I had to guess he wasn't planning on asking one. Just another "bot" that posts code found from other sites.

well! your wrong . am not a bod i am an c++ beginner and i though you just post code on this site like a1vbcode and planet-source-code and it was my code
Was This Post Helpful? 0
  • +
  • -

#6 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 615
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Re: Loop Example ! C++

Posted 19 March 2011 - 02:45 AM

View Postodrummond2000, on 18 March 2011 - 10:52 PM, said:

View PostBlade2021, on 16 March 2009 - 01:16 PM, said:

If I had to guess he wasn't planning on asking one. Just another "bot" that posts code found from other sites.

well! your wrong . am not a bod i am an c++ beginner and i though you just post code on this site like a1vbcode and planet-source-code and it was my code


You still haven't told us what the problem is.
Was This Post Helpful? 0
  • +
  • -

#7 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: Loop Example ! C++

Posted 19 March 2011 - 03:18 AM

Don't know how/why this got bumped so I think we'll just close it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1