Forum: C++ Oct 14th, 2009 |
| Replies: 5 Views: 680 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 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 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 atoi() is portable
itoa() is not |
Forum: C++ Jun 24th, 2009 |
| Replies: 6 Views: 351 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 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 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 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 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 |
Forum: C++ May 7th, 2009 |
| Replies: 7 Views: 289 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 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 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 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 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 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 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 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 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 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 Lives in Philippines -- "be more pacific"! Ha Ha, that's funny!!!:) |
Forum: C++ Jul 29th, 2008 |
| Replies: 6 Views: 507 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 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 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 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 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 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 Good point.
What happened to your previous post? Did you forget? |
Forum: C++ Dec 27th, 2007 |
| Replies: 21 Views: 2,060 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 If you want to do that, do it. Output the loop index. |
Forum: C++ Dec 9th, 2007 |
| Replies: 19 Views: 2,004 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 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 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 Views: 84,964 Does u no Uncle Remus 2? Hez so fun! |
Forum: C++ Nov 3rd, 2007 |
| Replies: 22 Views: 8,813 while(fin)
{
ch=fin.get();
fout.put(ch);
while(ch==' ')
ch=fin.get(); //*****
} |
Forum: C++ Oct 4th, 2007 |
| Replies: 6 Views: 1,789 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 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 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 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 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... |