135 Posted Topics
Re: I haven't looked through your code - maybe you could post your latest version as you've obviously updated it with some fixes since you first posted it. The assertion failure you're seeing, this is often caused by accessing some memory that doesn't belong to you while the program is executing. … | |
Re: > cout << " Frisky is << Frisky->GetAge() << " years old\n"; This should be: cout << " Frisky is" << Frisky->GetAge() << " years old\n"; Note the " after the word is. | |
Re: Surely the best person to ask would be your instructor? | |
Re: [QUOTE=Dante Shamest]You're either using a C compiler or you're compiling under C mode in a C++ compiler. The problem is that you can't declare a variable in a for() under C.[/QUOTE] This used to be true, but since the C standard was revised in 1999 you can now declare a … | |
| |
Re: [QUOTE=Valmian]Use dynamic memory allocation. In C++ (didn't test): char * getstring() { fflush (stdin); //don't have to do it char * string=NULL; char * temp=NULL; int size =2 scanf(""); //to get buffer input char ch; do { delete [] string; string = new char[size]; memcpy (string, temp, sizeof(temp)); delete[]temp; ch … | |
Re: Try the following, but note that I'm using a compiler that doesn't have <iostream.h> so I'm using the standard header <iostream> in its place and using namespace std. [code] #include <iostream> using namespace std; long int perimeter(int, int) ; int main() { int length ; int width ; cout << … | |
Re: Are you still working on this or did you figure it out? | |
Re: Hard to say exactly, as you don't appear to have posted the complete compileable code that exhibits your problem. > void main() >{ >// Initialize WinSock > int wsaret=WSAStartup(0x101,&wsaData); You use wsaData in the line above. Where is it declared? Is it somewhere before main() is called, or does it … | |
Re: > error C2065: 'wsaData' : undeclared identifier Looks like a duplicate post. Where is wsaData declared? Your compiler is trying to tell you that you're using an identifier that hasn't been declared anywhere, it's not known. Fix this error first, then try compiling again. | |
Re: Look good to me, Dani. I prefer 3d myself. | |
Re: [quote="inscissor"]Here's a tip for getting fast results in a forum (when you post any sort of question). Make the accountname a girl's name. Something like Allison, Amber, or Jennifer. Post with that name and act very naive. See how fast you get responses. Nice ones too![/quote] This is all so … | |
Re: That's just plain silly. You only need 1 programmer to write an operating system. | |
Re: You'll find that a lot of colleges and universities post their course assignments on their web sites, so check some out and see what you come up with. I'm sure you'll find some ideas. A quick search on Google for "C++ assignments" threw up: http://lhs.lexingtonma.org/Teachers/Kelly/cpp/assignments.html http://pirate.shu.edu/~wachsmut/Teaching/CSAS1112/Assigns-CPP/ I'm sure there must … | |
Re: Cripes, Friends of Ed too ... that's a real blow! :( | |
Re: There's no reason why your teacher, or anyone else who understand C++, should know how to write Windows applications. The two are quite different things. C++ is a language defined by a standard and available on a large number of platforms. Windows just happens to be one of those platforms. … | |
Re: When you say, "help you", what do you mean exactly? Do you mean you need help to overcome a problem you have with your solution, or do you mean you want someone to post a whole solution so that you can get a good grade for your assignment without doing … | |
Re: [quote="cscgal"]"My oh my" is an expression people say when they're surprised.[/quote] I thought that was only in old English films. In real life people use WTF ... | |
Re: Try adding the following line just before you return from main(): cin.get(); for example, a hello world program: #include <iostream> using namespace std; int main() { cout << "Hello, world" << endl; cin.get(); return 0; } | |
I thought the purpose of the book reviews section was for people to post their own review of books, giving their own opinion? Root's review of HTML Complete appears to be a copy of the blurb put out by the publishers. I'm not sure that it helps people much in … | |
Re: Remove your call to srand() from the loop and place it before the loop so that it's called just once. If you're not sure why, take a look at the tutorial on random numbers. | |
Re: I think the key here is " .. how long would it take to produce such a program for someone with no programming background" It would take very little time to do this, in fact, but at the expense of costing you some money. With no programming experience you would … | |
News of more security problems with the Opera browser. Affects versions 6.x and 7.x Details here: [url]http://www.internetnews.com/dev-news/article.php/10792_2109161[/url] | |
Re: The latest version of dev-cpp doesn't recognise <iostream.h>, you need to use the standard version of the same header - <iostream>. When you do, you need to qualify any entities from namespace std. Here are two versions that do that, and should compile and run OK. If they don't, post … | |
Re: I would drop the MSIE blurb on entry to the site and make it cross-browser compatible. And forget the link to download IE - nobody in their right mind is going to download it just to see your site. Reduce the importance of the Google link on the Home Page. … | |
Re: I had something similar once, though not identical, which was traced to a poor connection of the monitor cable at the PC. Yours might be something quite different but it's worth checking. | |
Re: [quote="aeinstein"]stress is good - builds character! ;)[/quote] At the expense of a heart attack! | |
Re: fastcarz3: Yet again you post a homework question and make no attempt to answer it yourself, probably because you don't know how to get started. Take a look at the reply I gave to your question a few days back, which gave you an approach to problem solving. It will … | |
Re: I prefer the 3d style, by far. Nice idea though, being able to select the style. The whole site is well presented, and you're to be congratulated on your good work. I can't understand why you don't get more activity in your forums as I would have expected many people … | |
Re: Cripes! There's a lot of links in there already. I'm sure this section will prove to be useful. | |
Re: Will posts be featured directly they're posted or will they be moderated? Also, will you be putting up some form of guidelines? | |
Re: [quote="cscgal"]Commodore Amigas are from the good ol' days of computers, one of the first personal computers released back in 1985. Most of the Amiga's followers were early-day computer hackers.[/quote] Hmmmm, I never thought of the Amiga as 'one of the first'. I had a Sinclair Spectrum some time before that. … |