LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 634 users online 186526 members 817 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
8 online / 19 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

fuck u
Replies: 7Last Post Sep. 3, 2006 8:12am by Whuppee
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
Stormblazer


Visionary
Reply
Quote: from Roy at 10:40 pm on Aug. 30, 2006

It's a pun! Kinda!  

Ok, I'm bored. Here's the deal. I'm going to give C++ source code with a few mistakes in it. If you correct it, you get a secret prize.  

If you can tell me what the program will do after it's compiled & run, you'll get an ever better, secreter prize!  

Code:
include <iostream>

using namespace std;

int main()
{
 int thisisanumber;

 count<<"Please enter a number: ";
 cin>> thisisanumber;
 cin.ignore();
 cout<<"You entered: "<< thisisanumber <<"\n';
 cin.get();
}


1) include needs a # in front of it
2) "count" should be "cout"
3) I don't think the cin.ignore(); should be there at all
4) I think the cin.get() should replace the cin.ignore()

-------
Religion: Apathetic agnostic
Political Affiliation: Independent


10:58 am on Sep. 1, 2006 | Joined April 2005 | 259 Days Active
Join to learn more about Stormblazer Colorado, United States | Bi-curious Male | 5404 Posts | 8398 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic