Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
#include<iostream.h> // This is a nonstandard header. Please stop using it and instead use <iostream>.
#inlcude<conio.h> // This is a nonstandard header. Please stop using it for sample code. (And try compiling to catch the typo.)
void main() // This is not correct, it should be int main()
clrscr(); // This is unnecessary and nonstandard. Please stop using it for sample code.
getch(); // This is unnecessary and nonstandard. Please stop using it for sample code.
Nice additions. :rolleyes: And please use [code][/code] tags.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
#include <iostream>
using namespace std;
void main(void){
cout<<"1 2 lazy 2 do my own homework therefore 1 got this solutiun frum sum website";
}
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Hello,
I am locking this thread before it gets out of hand.
There is no way anyone here can know if it is for homework, or for pleasure, or for work/job reasons. With the amount of students out there, the assumption is made that it is homework related.
What we do know is that no matter how the bytes fall, they are intellectual property. It is DaniWeb policy to be a source of information, but not to do the whole project for the requestor. It is a touchy balance that has to be respected.
When we ask for "show work", that implies that you made an effort to understand the problem. This means code out some stuff... it doesn't necessairly have to work, just put your ideas down as to how the program should flow. Coming from a VB background, you shold have some idea of program flow and control. Perhaps write it in VB, and then ask how to convert it to C++. Porting is a skill in itself.
Community members should also not make assumptions on what the poster is asking. If you as a member feel that the poster is "getting away with something" then don't post... let the thread sit empty. A silent non-action speaks profoundly.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57