User Profile

Collapse

Profile Sidebar

Collapse
tims
tims
Last Activity: Feb 21 '08, 08:54 AM
Joined: Feb 20 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tims
    replied to Looping Help?
    in C
    Thank you very much, that worked great. I had tried the for loop in my program at school but couldn't get the arguments in the parentheses right....
    See more | Go to post

    Leave a comment:


  • tims
    replied to Looping Help?
    in C
    What I need it to do is go through the loop and display the message on the screen a certain number of times. For example the command prompt comes up and asks 'How many hellos do you want' and the user types in 3 then the program should display 'Hello' 3 times....
    See more | Go to post

    Leave a comment:


  • tims
    replied to Looping Help?
    in C
    Thanks for the fast reply. I'm at home right now and don't have the full project with me but I think is the closest we got to it working even though its not even close to being right.

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    
    {
    	int counter = 0;
    
    	cout << "Enter the number of hellos.\n" << "    ";
    	cin >> counter;
    ...
    See more | Go to post

    Leave a comment:


  • tims
    started a topic Looping Help?
    in C

    Looping Help?

    Hi, I'm working on an easy assignment only I can't get it working properly. All the program needs to do is accept the user-input value and display a message that many times. What I'm having trouble with is the syntax for getting the message to display x amount of times per the user-inputted variable. I'm sure this is an easy solution but I'm going nuts trying to figure it out. Any help is greatly appreciated.


    Oh and I'm working...
    See more | Go to post
No activity results to display
Show More
Working...