General C++ Programming - February 2011 (Page 5)

Decode binary string
 
Alright, I am fetching a 32-bit binary string from the Instruction Memory class. How do I go about "parsing" the string for each binary address. This way I can ...
[4 replies] Last: Yes, and particularly, what is the specification of the decoder. What ... (by simeonz)
Carry-on
 
hi uhmm i have a question what statement do i use in making a program that reads the total carry operation used in adding numbers? this is suppose to be th...
[3 replies] Last: i mange to know how it works I'm glad you did, because I certainly do... (by simeonz)
How arrays work or are stored in memory?
 
I was working with outputting an array and I noticed a funny thing happen when I got a for loop to output more 'rows' than the array had. It repeated the array...
[2 replies] Last: http://lmgtfy.com/?q=memory+allocation+for+arrays (by Zaita)
why do most bots/worms/malware use sockets instead of portable libraries?
 
why do most bots/worms/malware use sockets(winsock/berkeley sockets) instead of portable network libraries like boost.asio? Is there an advantage to using the n...
[10 replies] Last: Yes, there are methods you could use; but AV's are pretty smart at det... (by Zaita)
Problem with chessboard
 
Knight attacks everything that is on the board two rows above and one column left or right, two rows below and one column left or right, the right two columns a...
[5 replies] Last: This can't be the first assignment of the class. You must have done e... (by Disch)
cancastinate 2 strings
 
I may be spelling cancastinate wrong, so I'll explain. I asked a guy who works here *How* to add 2 strings into a single name. his words were "Cancastinat...
[3 replies] Last: Nvm thanks :) (by thenewguy)
Spatial / 3D sounds
 
Hey everyone, I am making a program in which you move a head around in a 3D space. Placed around this head are sound sources, the sound the user hears throug...
[13 replies] Last: Good. No problem. Glad you got it fixed. I am very proficient with the... (by nickburress2k2)
Memory Leak?
 
I have an application I have been working on for some time, and just started cleaning up the memory management when I realised my application was taking up near...
[12 replies] Last: The function no longer leaks memory. It is up to the caller to delete... (by jsmith)
Weird compiler errors
 
I really don't have a clue what's going on... error C2666: 'operator <<' : 19 overloads have similar conversions while trying to match the argument list '(...
[11 replies] Last: ha, so that is why it was working for me, you posted it without the co... (by guestgulkan)
Using >> and fprintf to access same file while open
 
Is it possible to use >> and fprintf to access the same file? The fstream is passed to a function. I use outFile >> to write to it. Then I want to use fprint to...
[1 reply] : Found the perfect solution in one line of code that redirects all outp... (by farmergeoff2003)
graphics.h on modern systems!!
 
I need urgent help, as how can I run graphics.h programs on modern system. My program compiles with no errors but it doesn't run. I use DosBox . Also tell...
[5 replies] Last: Thanks all of you I got the solution of my problem, I had not been pro... (by aryan838)
How to create a binary i/o file?
 
This program is supposed to ask the user if they want to open up an existing file, or create a new one. With an existing file, I have no problem, since it alrea...
[no replies]
by clros
ostream objects
 
Hi, I have this code: int main() { stringstream out2; ostream& out = out2; out<<"Hello\n"; cout<<out<<endl; return 0; } ...
[4 replies] Last: Ok, Thanks! (by clros)
How to create a binary i/o file?
 
This program is supposed to ask the user if they want to open up an existing file, or create a new one. With an existing file, I have no problem, since it alrea...
[no replies]
by Sieves
strings
 
I am writing a program that creates word search puzzles... i load the words from a file as a string into an array string words i need to know how i can break...
[3 replies] Last: More info. on the string class: http://cplusplus.com/reference/string... (by moorecm)
Overload function problem
 
Hi everybody, i'm having these two errors with the program below; 1) error LNK2019: unresolved external symbol "double__cdeclcalcTotal(int,double)" (?calcTot...
[5 replies] Last: Using unsigned int will not prevent someone calling the function wit... (by Silvermaul)
unresolved external symbol
 
Everytime I call a function to populate a struct array I get this error: main.obj : error LNK2001: unresolved external symbol "void __cdecl Populate(struct ...
[2 replies] Last: Wow I've been fighting with this for a week and all it was was mismatc... (by lance5057)
Using regex in sscanf
 
char c, s1 ,s2 ; sscanf(t,"%c id='%[^']' style='color:%[^']'>",&c,s1,s2); Why don't we need the & in front of s1 and s2? ...
[1 reply] : Because they are arrays, which will decay to pointers in this case. (by firedraco)
by satya
Hash Map lookup
 
Hello All... I have a map with signature <string, X> (X: typedef struct{double.. }X;) This map is having 1600 C 2 (1279200) entries indexed on string. size o...
[4 replies] Last: Thanks for the reply.. well, i implemented the one map only because ... (by satya)
by sisi
Two different objects acting the same way
 
Hi everyone, I have some problem and really hope that someone will help me :) I have pointers to objects of the same class. Lets assume that every object ha...
[9 replies] Last: Thank you all for your kind replays. Maybe I just couldn't clearly de... (by sisi)
February 2011 Pages: 1... 34567... 25
  Archived months: [jan2011] [mar2011]

This is an archived page. To post a new message, go to the current page.