Search Results

Showing results 1 to 40 of 90
Search took 0.02 seconds.
Search: Posts Made By: WaltP ; Forum: C++ and child forums
Forum: C++ Oct 14th, 2009
Replies: 5
Views: 680
Posted By WaltP
If you want to know how a program works, plzzzzzzzzzzzz post a program. Or try reading the Rules for the site.
Forum: C++ Jul 28th, 2009
Replies: 8
Views: 1,769
Posted By WaltP
gurdeep kaur, how does your post help Lenny19 with his problem? Or do you have a new question which needs to be asked in it's own thread?

Before starting your thread, read some of the posts that...
Forum: C++ Jul 16th, 2009
Replies: 9
Views: 373
Posted By WaltP
Since we know the program you posted cannot possibly compile, and you claim it's actually running, you need to repost the current code you're compiling. And then explain in detail what the program...
Forum: C++ Jun 27th, 2009
Replies: 4
Views: 390
Posted By WaltP
atoi() is portable
itoa() is not
Forum: C++ Jun 24th, 2009
Replies: 6
Views: 351
Posted By WaltP
Smart decision. At least your teacher knows what the program is supposed to do and can ask the questions needed to help you.
Forum: C++ Jun 11th, 2009
Replies: 10
Views: 627
Posted By WaltP
Code tags --AGAIN!!!!

It seems that with the warning above, and the information posted all over this site about CODE tags, like
1) in the Rules...
Forum: C++ May 18th, 2009
Replies: 27
Views: 2,076
Posted By WaltP
This has been answered so many times in this thread -- why are you still asking it?

Write to Stroustrup and ask him since none of the answers here seem to be acceptable and his book is causing...
Forum: C++ May 16th, 2009
Replies: 27
Views: 2,076
Posted By WaltP
None. The condition simply evaluates to a TRUE/FALSE. Expression is a statement that will evaluate to a TRUE/FALSE. In the context of these loop definitions, they are interchangeable, and probably...
Forum: C++ May 10th, 2009
Replies: 22
Views: 932
Posted By WaltP
Yes. Stop using TABs to indent. Set your editor to use 4 SPACEs when the TAB key is pressed.

As for exiting, you can exit when ENTER is pressed all by itself.

And about Ctrl+C, look it up.
Forum: C++ May 7th, 2009
Replies: 7
Views: 417
Posted By WaltP
Jeez :icon_rolleyes:

:)
Forum: C++ May 7th, 2009
Replies: 7
Views: 289
Posted By WaltP
Interesting....
Dividing by 10, Mod'ing by 10. You just added the obvious power which was hers to think through. I tried not to take all the thinking out of the problem.
Forum: C++ May 4th, 2009
Replies: 19
Views: 847
Posted By WaltP
It's perfectly acceptable to compare floats. You just have to understand the difficulties and know how to deal with them.

Because floating point is not exact, you need to define what precision is...
Forum: C++ May 1st, 2009
Replies: 13
Views: 491
Posted By WaltP
So ol' Herbie is wrong, legal book or not. Publishing bad information has been know to happen -- a lot.


Yes, but you are processing bogus information before the eof() check. Did you look at...
Forum: C++ Apr 24th, 2009
Replies: 25
Views: 1,797
Posted By WaltP
OK, have a seat...
1) malloc() -- this will cause memory leaks on each call. Once the function returns, the memory address allocated is lost and can not be returned to the heap. Stick with the...
Forum: C++ Apr 23rd, 2009
Replies: 1
Views: 1,055
Posted By WaltP
Did you bother to read any of the requested information posted all over this site about CODE tags, like
1) in the Rules (http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies) you were...
Forum: C++ Apr 21st, 2009
Replies: 14
Views: 688
Posted By WaltP
You need to define some arrays first. Then we might be able to help you.

You also need to format your code (http://www.gidnetwork.com/b-38.html) so we can follow the code. Don't instructors teach...
Forum: C++ Apr 7th, 2009
Replies: 8
Views: 547
Posted By WaltP
Because we already got our grades and passed the course. You can't pass using our work. You need to pass on your own work.
Forum: C++ Nov 1st, 2008
Replies: 7
Views: 759
Posted By WaltP
You need to change your increment:

case 5: //move forward x number of spaces
int steps = commands[ ++cmd ];

This will increment before you load steps, getting the number of steps.
Forum: C++ Oct 24th, 2008
Replies: 9
Views: 531
Posted By WaltP
All you have to do is count!!

#include <iostream>
#include <cmath>

using namespace std;

void Instructions();
float do_next_op(char op, float o, float
CAV);
Forum: C++ Oct 1st, 2008
Replies: 9
Views: 915
Posted By WaltP
Now read the information
1) in the Rules (http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies) you were asked to read when you registered
2) in the text at the top of this forum
3)...
Forum: C++ Aug 17th, 2008
Replies: 3
Views: 542
Posted By WaltP
Lives in Philippines -- "be more pacific"! Ha Ha, that's funny!!!:)
Forum: C++ Jul 29th, 2008
Replies: 6
Views: 507
Posted By WaltP
Second problem is you are forgetting that the RETURN you type in is also a character that gets put into the buffer. Therefore, in this code:

cout << " Empezar?? " << "\n"; // TO START...
Forum: C++ Mar 2nd, 2008
Replies: 16
Views: 1,459
Posted By WaltP
There is so much wrong here!!!

Both of you, please read this about gets() (http://www.gidnetwork.com/b-56.html).

This loop (reformatted for readability):
#
for (n = 0; n < 11; n++)
{
...
Forum: C++ Feb 27th, 2008
Replies: 6
Views: 1,261
Posted By WaltP
Guys, guys, we're supposed to be 'experts' here! :D

#1: You are using a for loop but your exit criteria of the loop depends on counter and limit. Your instructions say "when the user enters a...
Forum: C++ Feb 15th, 2008
Replies: 19
Views: 1,799
Posted By WaltP
1) You could read The Rules as requested when you registered.
2) You could read the post titled "Read This Before Posting" at the top of the forum
3) You could read the words on the background of...
Forum: C++ Feb 13th, 2008
Replies: 10
Views: 1,369
Posted By WaltP
Oh, give me a break! :icon_rolleyes: Sarcasm is/can be a humorous way to get a point across when someone isn't listening. You would have laughed it this wasn't your post! :icon_wink:



Good,...
Forum: C++ Feb 6th, 2008
Replies: 6
Views: 1,019
Posted By WaltP
Then you shouldn't be posting it. There's nothing worse that helping someone with code that doesn't work. (well, yes there is, but you get the idea :-)
Forum: C++ Dec 30th, 2007
Replies: 12
Views: 1,452
Posted By WaltP
Good point.



What happened to your previous post? Did you forget?
Forum: C++ Dec 27th, 2007
Replies: 21
Views: 2,060
Posted By WaltP
And stop making multiple threads on the same stupid with the same stupid title. Please read the RULES.
Forum: C++ Dec 10th, 2007
Replies: 11
Views: 3,097
Posted By WaltP
If you want to do that, do it. Output the loop index.
Forum: C++ Dec 9th, 2007
Replies: 19
Views: 2,004
Posted By WaltP
Then he should know better.

I would. Aren't newbies taught cin? If so, why teach them another command? One that's not a good command to use? I stand by my statement.
Forum: C++ Nov 26th, 2007
Replies: 24
Views: 1,886
Posted By WaltP
Talk about thread bombing! A full 2/3 of the posts have been made by nicz888, the OP. I for one can't follow the progress here because of multiple posts of 200 line programs. I have no idea what...
Forum: C++ Nov 24th, 2007
Replies: 9
Views: 1,081
Posted By WaltP
Yes its impossible for a newbe.[/QUOTE]
My point is stop telling him it's impossible. Explain what he need to know to do it so he can start looking into the functionality. He can then tell that...
Forum: C++ Nov 19th, 2007
Replies: 54
Read Me: C++ Books
Views: 84,964
Posted By WaltP
Does u no Uncle Remus 2? Hez so fun!
Forum: C++ Nov 3rd, 2007
Replies: 22
Views: 8,813
Posted By WaltP
while(fin)
{
ch=fin.get();
fout.put(ch);

while(ch==' ')
ch=fin.get(); //*****

}
Forum: C++ Oct 4th, 2007
Replies: 6
Views: 1,789
Posted By WaltP
Your problem is using the wrong way to test for the end of a file:
while ( !myfile.eof() )
See this (http://www.gidnetwork.com/b-58.html) (feof() is the same as using .eof())
Forum: C++ Aug 30th, 2007
Replies: 5
Views: 886
Posted By WaltP
There's a good reason. They're M$. This generation's IBM. If they could program like they market, you'd be right. But all they really have going for them is great marketing and a stranglehold on...
Forum: C++ Aug 28th, 2007
Replies: 16
Views: 5,992
Posted By WaltP
So you claim that the outdated versions of C/C++, like Turbo, never handled strings correctly? :icon_rolleyes: Or is it that after new versions came out, the older versions simply wore out and...
Forum: C++ Aug 24th, 2007
Replies: 8
Views: 1,074
Posted By WaltP
So Clinton, what was the purpose of your post? How does it help sneha_venky with figuring out a project to program?
Forum: C++ Jul 25th, 2007
Replies: 15
Views: 5,085
Posted By WaltP
Sorry, but this thread had me shaking my head in amazement!

Dumb help #1:

Duh, you think something's wrong? What's your first clue?
And how do you debug something that doesn't even...
Showing results 1 to 40 of 90

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC