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 "...
[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 o...
[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 ...
[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 lib...
[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...
[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 ...
[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 ...
[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 ...
[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 sim...
[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...
[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 wi...
[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 o...
[no replies]
by clros
ostream objects
 
Hi, I have this code: int main() { stringstream out2; ostream& out = out2; ...
[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 o...
[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 ...
[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 ex...
[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 LNK200...
[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...
[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 ...
[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...
[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.