Forum: C++ Dec 5th, 2006 |
| Replies: 5 Views: 1,835 My program is reading from a file that has the following lines (plus quite a few more....) the name of the txt file is palindromes.txt.
Able was I ere I saw elba
Go hang a salami I'm a lasagna... |
Forum: IT Professionals' Lounge Nov 29th, 2006 |
| Replies: 13 Views: 3,011 Is there possibly a happy medium?
I am a "newbie" - I am as new as they come, taking my very first ever programming class which happens to focus on C++. There were no prerequisites for this... |
Forum: C++ Nov 26th, 2006 |
| Replies: 10 Views: 9,704 Like this?
int main ()
{
// initialize the computer's random number generator
srand(time(0));
int i = rand();
cout << i << endl; |
Forum: C++ Nov 26th, 2006 |
| Replies: 10 Views: 9,704 Hello. I am trying to write a program where a human can play rock, paper, scissors with the computer. I'm stuck on the "determine computers choice" part......Here's my code so far...
#include... |
Forum: C++ Nov 26th, 2006 |
| Replies: 8 Views: 2,216 Hello! I have an assignment in my "intro to programming class" and I am having trouble just getting started.
We are suppose to take a txt file that has several lines of text - and create a... |
Forum: C++ Nov 8th, 2006 |
| Replies: 3 Views: 1,343 Thanks for the help! I am still so confused. The board is suppose to look like this at the beginning:
111
111
111
and then when a number is pressed all numbers up, down and to each side... |
Forum: C++ Nov 8th, 2006 |
| Replies: 3 Views: 1,343 Hello all!
I'm having trouble with my homework assignment - I've been working on it for hours and have gotten it down to one syntax error and then I think it will compile so I can move on, I... |
Forum: C++ Oct 15th, 2006 |
| Replies: 5 Views: 2,059 HERE IS WHAT I HAVE SO FAR, THANKS SO MUCH!!
#include <iostream>
#include <string>
using namespace std;
int main()
{
int number;
cout <<"Enter an integer to add: ";
cin>> number;
... |
Forum: C++ Oct 15th, 2006 |
| Replies: 5 Views: 2,059 Hello! I am a student taking an intro to programming class and I am completely LOST. The assignment is to write a program that simulates an adding machine. I have been working on this for 3 hours... |