135 Posted Topics

Member Avatar for Mike29936

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. …

Member Avatar for Bob
0
204
Member Avatar for camelNotation

> 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.

Member Avatar for Bob
0
204
Member Avatar for swallowingtacks
Member Avatar for stehigs321

[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 …

Member Avatar for Bob
0
92
Member Avatar for Daywalker46410
Member Avatar for rknight

[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 …

Member Avatar for rknight
0
184
Member Avatar for camelNotation

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 << …

Member Avatar for camelNotation
0
342
Member Avatar for fakespike
Member Avatar for Bob
0
119
Member Avatar for fakespike

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 …

Member Avatar for Bob
0
2K
Member Avatar for fakespike

> 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.

Member Avatar for Dani
0
234
Member Avatar for Dani
Member Avatar for laoli

[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 …

Member Avatar for Dani
0
350
Member Avatar for fakespike

That's just plain silly. You only need 1 programmer to write an operating system.

Member Avatar for big_k105
0
148
Member Avatar for fakespike

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 …

Member Avatar for fakespike
0
166
Member Avatar for Paladine
Member Avatar for fakespike

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. …

Member Avatar for odious face
0
638
Member Avatar for QuadMedic

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 …

Member Avatar for Roberdin
0
139
Member Avatar for laoli

[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 ...

Member Avatar for samaru
0
202
Member Avatar for Mr Gates

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; }

Member Avatar for Dani
0
179
Member Avatar for Bob

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 …

Member Avatar for root
0
670
Member Avatar for root
Member Avatar for mynewdeadcat

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.

Member Avatar for Bob
0
192
Member Avatar for eaw80

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 …

Member Avatar for Dante Shamest
0
111
Member Avatar for Bob

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]

Member Avatar for root
0
263
Member Avatar for boohoo
Re: Java

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 …

Member Avatar for Bob
0
862
Member Avatar for Technology Addict

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. …

Member Avatar for samaru
1
886
Member Avatar for flip680

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.

Member Avatar for Dani
0
130
Member Avatar for Dani

[quote="aeinstein"]stress is good - builds character! ;)[/quote] At the expense of a heart attack!

Member Avatar for aeinstein
0
165
Member Avatar for fastcarz3

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 …

Member Avatar for aeinstein
0
318
Member Avatar for Dani

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 …

Member Avatar for root
0
516
Member Avatar for Dani

Cripes! There's a lot of links in there already. I'm sure this section will prove to be useful.

Member Avatar for Dani
0
439
Member Avatar for Dani

Will posts be featured directly they're posted or will they be moderated? Also, will you be putting up some form of guidelines?

Member Avatar for Bob
0
118
Member Avatar for Dani
Member Avatar for Tekmaven
Member Avatar for AlPhA

[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. …

Member Avatar for MuddBuddha
0
382