Forum: C++ Apr 15th, 2007 |
| Replies: 6 Views: 2,357 Okay okay, I got it!
Forgeting those curly braces must have made my answers sku'd all day.
What I did was add this, persons being the other array.
Its pretty obvious but without those curly's... |
Forum: C++ Apr 15th, 2007 |
| Replies: 6 Views: 2,357 Interesting, when I tried that it threw out the number 9 verses when I cout 'm' it throws out the numer 10. The number it should actually be throwing out is 4.
Hrmm...
There must be a way of... |
Forum: C++ Apr 15th, 2007 |
| Replies: 6 Views: 2,357 Thank you for you taking the time to respond, although, I have tried both in what you had said and neither work.
If I use the variable 'm' with cout I get the number '10', I beleive that to be... |
Forum: C++ Apr 15th, 2007 |
| Replies: 6 Views: 2,357 Hi,
I have a parallel array of size 10 with several different size numbers in them.
Within my program I put a series of cout statments for the different array indexes so that was known, and here... |
Forum: C++ Mar 28th, 2007 |
| Replies: 19 Views: 2,623 The thing was is that we havent learned that yet so I cannot use it, we have only used basic things.
It came to my head during lunch today and I got it.
The whole deal was the fact that "" || " "... |
Forum: C++ Mar 28th, 2007 |
| Replies: 19 Views: 2,623 Another hint is to use a "state machine" to handle this problem.
The problem I am running into is finding the logic behind noting when there is a new line that contains characters as opposed to... |
Forum: C++ Mar 26th, 2007 |
| Replies: 19 Views: 2,623 I am assuming you are talking about the get function.
Because I am expected to solve this using these basic resources, there must be a way of denoting a blank line that I have yet to find.
Thank... |
Forum: C++ Mar 26th, 2007 |
| Replies: 19 Views: 2,623 Interesting, but no we have not.
Im still plugging away to no avail YET.
Thanks for the thought. |
Forum: C++ Mar 26th, 2007 |
| Replies: 19 Views: 2,623 I did do alot of reading on trimming which I did not know before to educate myself and I then explained to my teacher what I have all learned about trimming when I presented the solution to him.
... |
Forum: C++ Mar 26th, 2007 |
| Replies: 19 Views: 2,623 Back to the drawing board.
There must be a way of accomplishing this task by simply using a if statement with something along the lines of "if not new line read, else indent"
Here is what Im... |
Forum: C++ Mar 25th, 2007 |
| Replies: 19 Views: 2,623 That makes sence, I am suprized that I have not run into that just yet.
Thanks for the tip. |
Forum: C++ Mar 25th, 2007 |
| Replies: 19 Views: 2,623 It seems as if that did the trick, Its funny that I was never tought that nor could find it in any books, I appreciate the knowledge.
Just curious, what does the:
getchar ();
mean at the... |
Forum: C++ Mar 25th, 2007 |
| Replies: 19 Views: 2,623 Thank you for taking the time to give me some hints here.
I have taken your tips into consideration and have formulated this here:
isSafe = true;
while(getline(inFile,inputStr))
{... |
Forum: C++ Mar 24th, 2007 |
| Replies: 19 Views: 2,623 Thank you for the quick reply.
"first blank line is the end of the paragraph"
Between some of the paragraphs there are two blank lines so Im going to need some type of syntax to note where the... |
Forum: C++ Mar 24th, 2007 |
| Replies: 19 Views: 2,623 Hi,
I am writing a little program in C++ that is used to read a file which contains several paragraphs. The paragraphs are not indented and there are a blank line or sometimes two blank lines before... |