6,741 Posted Topics

Member Avatar for sjhentges

>And really what i am asking is why won't this compile? Probably because you haven't yet learned to program incrementally. Scrap your code and start over, this time write just a little bit before making sure it'll compile and works as expected. Write a little more, then compile again and …

Member Avatar for sjhentges
0
132
Member Avatar for Ameerah

It seems you lack the basics of netiquette, so allow me educate you. Bumping a thread (ie. replying with pointless posts in an attempt to move your thread to the top of the list) is extremely rude and selfish. It suggests that you believe yourself to be more important than …

Member Avatar for Salem
0
124
Member Avatar for martin5211

>I think the new message should be added to the end of my last >post instead of creating a new separated box with avatar/stats. If I understand your request, then I'd argue that it makes no sense. For example, let's say you make a post, then there's a short discussion …

Member Avatar for martin5211
0
142
Member Avatar for clutchkiller

It's your money, so you can spend it wherever you want. I wouldn't waste the money though; I have yet to hear about one of these online courses that wasn't a total rip off. You can learn more with free online resources than any course could provide.

Member Avatar for clutchkiller
0
66
Member Avatar for ogi1989

>Expression: stream != NULL Yet more proof (as if we needed any) that checking for success is a good thing. perror is your friend, my friend: [code=cplusplus] fp = fopen ( filename, "r" ); if ( fp == NULL ) { perror ( "Error opening file" ); exit ( EXIT_FAILURE …

Member Avatar for Salem
0
181
Member Avatar for rborob

>I have grown to hate the "while not at end of file" stuff Me too. Mostly because in C and C++ it's a subtle and dangerous error.

Member Avatar for namehere05
0
230
Member Avatar for capricornia

>1. The "system("pause")" doesn't work. >2. I get an error message when I compile. Well obviously your system call doesn't work if the code won't compile. What's the error message?

Member Avatar for chasee
0
238
Member Avatar for J4YP33

>void main(){ main returns int. In C++ main returns 0 automagically, so you don't even have the excuse of saving keystrokes anymore. >input2 = "\"" + input + "\""; This is unnecessary. In fact, that's likely a big part of your problem. >while(!infile.eof()){ The timing of eof() is such that …

Member Avatar for J4YP33
0
240
Member Avatar for spool

>Thats why I have no idea why its there? It's there because a right shift may or may not fill the vacated bits with zeros. If the type of source[i] is signed, the implementation could fill the bits with zeros (a logical shift) or the value of the sign bit …

Member Avatar for rezzy1
0
808
Member Avatar for mrnutty

>What makes a good prgoammers? A lot of things, and I'd even go so far as to say you can't enumerate the qualities of a good programmer. But you'll know when you meet one. >What made you get a job? I find programming far more interesting than the alternatives. >Why …

Member Avatar for Narue
0
89
Member Avatar for hellIon

>wat does these statements .do............... What does your reference manual say?

Member Avatar for carson myers
0
169
Member Avatar for pizzafiend
Member Avatar for Thinka

>I'm going to handle this for once and for all today. I'd love to see the transcript for that call. Seeing you lay down the law would be entertaining, I imagine. :)

Member Avatar for Dani
0
159
Member Avatar for coolbuddy059

>Now-a-days I'm deeply interested in topics like hcking and virus. That's nice. Don't get arrested. >Can u suggest a link where I can create my own virus. If you aren't smart enough to figure it out without help, you aren't wise enough to use the result responsibly. Don't expect any …

Member Avatar for boB_K7IQ
-3
127
Member Avatar for tech291083

>I am on Windows xp professional edition and looking for a free >develeopment tool/ide for some self c++ learning. Most of the good compilers come with an IDE and are freely available. >but it is still beta version and I want something stable. I haven't noticed any instability in the …

Member Avatar for Salem
0
2K
Member Avatar for sambafriends
Member Avatar for asurmen28

Do you know how to convert a hexadecimal value to decimal on paper? That's the first step, then you can convert the paper algorithm into something better suited for assembly.

Member Avatar for abello00
0
129
Member Avatar for lmastex

>when the list is in disorder for example (1,3,5,4) still >says is in ascendent order. How could i fix that? You wait until after the loop to print the result, obviously: [code=cplusplus] node *curr = head; bool ascending = true; bool descending = true; while ( curr->next != 0 ) …

Member Avatar for lmastex
0
136
Member Avatar for acperson

>*What do I do to fix this?* Figure out where you're trying to dereference a null pointer in your code.

Member Avatar for acperson
0
2K
Member Avatar for OutOfReach

It's better to do your report on something you enjoy, but personally, I find RMS to be a better topic in that there's more potential interesting content. >Thats why its officially called GNU/Linux. Officially by whom? Linux has never agreed that GNU/Linux is a valid name, nor has LI. There's …

Member Avatar for Narue
0
131
Member Avatar for clutchkiller

"Keyword" is a term already used to mean something else, so redefining it will only confuse you. What you're doing is creating an variable of the ofstream class and calling it "example". You then invoke functions on that variable. Calling member functions can be confusing if you try to think …

Member Avatar for clutchkiller
0
124
Member Avatar for quocnam00

>seem it is trick question. It [I]is[/I] a trick question. Not only can the size of a pointer vary depending on the system, the size of pointers to different types aren't required to be the same. The best answer to this question would be [ICODE]sizeof p[/ICODE], where p is defined …

Member Avatar for Narue
0
179
Member Avatar for riahc3

>This is C++. That really changes nothing, rand and srand usage remains the same across the two languages. [url=http://eternallyconfuzzled.com/arts/jsw_art_rand.aspx]Here's[/url] another one that I'd recommend for obvious reasons.

Member Avatar for Narue
0
222
Member Avatar for serkan sendur

There aren't any. The only thing you'll get from a C certification is a lighter wallet.

Member Avatar for serkan sendur
0
72
Member Avatar for Fox Hound

Duplicate posts deleted. It was probably a glitch in vBulletin, so just relax, Fox Hound. I think you might be a little too high strung to work in the gaming industry. :icon_rolleyes:

Member Avatar for jbennet
0
167
Member Avatar for littlestone

>Does it need a copy constructor and an operator= for a class which have array member? No, the default behavior will do what you want.

Member Avatar for abhijitm
0
212
Member Avatar for Run.[it]

The nice thing about pseudocode is that you make up the rules. Most real languages do allow what you want, though, so you're not really deviating from common use.

Member Avatar for Run.[it]
0
85
Member Avatar for abhishek.com

>Then it's printing it's value as 4, But logically it should be 2 because >the integer range is from -32768 to 32767. Get with the times, it looks like your machine has 32-bit ints, not 16-bit. >why it is not like -32768 to 32768, why there is a gap It's …

Member Avatar for vmanes
0
119
Member Avatar for mabpest

Translation: Will somebody do my homework for me? Answer: No, but if you show us what you've done, we might be able to help you improve your design.

Member Avatar for mabpest
0
214
Member Avatar for riahc3

>I just want to hit one key and not enter the option then have to hit the enter key. There's no portable way to do this. You have to rely on a non-standard function like getch.

Member Avatar for riahc3
0
159
Member Avatar for DemonGal711

>I figured I'd use something like an array to hold the points Since this is a graph problem, so you need to hold the identity of the vertex (A, B, C, etc...), the the vertices that a vertex is connected to through an edge (A->B, A->C, B->C, etc...), and the …

Member Avatar for DemonGal711
0
149
Member Avatar for CoolAtt

Read the file like normal, then decrypt it. It's a trivial task if you know how it was encrypted and have all of the necessary keys.

Member Avatar for Salem
0
121
Member Avatar for koushal.vv

>this can be done in C# with great ease Oh good. Show us how you do it in C# so we know what the hell you're talking about by a "unique number".

Member Avatar for ArkM
0
146
Member Avatar for valchid

So...did you even bother to read any book on C before running here? >using the "gets" statement Don't use gets, it's completely unsafe.

Member Avatar for valchid
0
101
Member Avatar for Fouly

What did you change? Please don't expect us to believe that Microsoft's compiler fails to compile Microsoft's default generated code.

Member Avatar for Fouly
0
118
Member Avatar for koushal.vv

Multiple books have been written on how to use Visual Studio. Don't expect that kind of coverage in a forum thread. In fact, I'd recommend you go out and get one of the books.

Member Avatar for Narue
0
269
Member Avatar for BestJewSinceJC

1) You know the size of the table and you can keep track of the load factor by modifying a counter when you add or remove a chain. This is pretty efficient. 2) Separate chaining is much more friendly when it comes to table size. Making it too small isn't …

Member Avatar for BestJewSinceJC
0
157
Member Avatar for Unrealx_

>i dnt knw how to design good UI The only fix for that is practice.

Member Avatar for Narue
0
58
Member Avatar for deusieeee

>I thought thats what vectors were for. And how did you think vectors were implemented? You simulate a dynamically sized array through pointers and new: [code] // First allocation T *p = new T[N]; ... // Resize by creating a new array T *save = new T[N * 2]; // …

Member Avatar for omeralper
0
624
Member Avatar for Alex Edwards

Primitives and bitfields are a part of the language, there's no header. Why don't you describe what you're trying to confirm instead of asking a vague question.

Member Avatar for ArkM
0
187
Member Avatar for jwaldron82

>So I'm just wondering are these questions a little bit too complicated for >some people to answer of are everyone looking just for answers as well. It's a combination of not knowing the answer, or not feeling compelled to answer. I [I]could[/I] answer lot of the questions in the forums …

Member Avatar for ~s.o.s~
0
166
Member Avatar for MylesDBaker
Member Avatar for ArkM
0
151
Member Avatar for Icebone1000

>theres a special function for it? Nope. The usual suggested solution is to programmatically simulate Alt+Enter. I do believe that searching our forums will give you the code to do so.

Member Avatar for marco93
0
171
Member Avatar for Kemper
Member Avatar for dusse

>I want to alloc dynamically the number of nodes and also the length of s in node struct Do it separately: [code=c] struct node *x = malloc ( nodeMAX * sizeof *x ); int i; for ( i = 0; i < nodeMAX; i++ ) x->s = malloc ( sMAX …

Member Avatar for Narue
0
218
Member Avatar for alexdm50

>allow 10 accounts to be opened and then allow the user to search >for each one and deposit and withdraw from each one Well, start by allowing one account and work up from there. As a first attempt, I would suggest an array of account class objects. You need to …

Member Avatar for Lerner
0
148
Member Avatar for TheBeast32

>So there's absolutely no way possible for the average person to write to it? Why in the world are you even asking how to crash Windows by corrupting the kernel?

Member Avatar for William Hemsworth
0
181
Member Avatar for salman213

>im actually programming in C Then keep in mind that C89 doesn't support the <iostream> header, namespaces, or the true keyword. Your code won't compile as C, and failing to return a value from main is undefined behavior. >wat is the equivalent statement in C++? I thought you were programming …

Member Avatar for Narue
0
128
Member Avatar for egolovin

It might help to describe how the game works and how your program logic accomplishes that. Saying that you need some code for the program to ignore a 3rd number that's pulled up means nothing to us.

Member Avatar for egolovin
0
286
Member Avatar for price

>I'm pretty sure it's not possible It's possible, but not like that. You can have a pointer or a reference to the class being defined: [code=cplusplus] class X { X *m_member; }; [/code]

Member Avatar for Narue
0
45

The End.