General C++ Programming - July 2011 (Page 21)

data corruption in structs
 
I've got a struct outlined as such: struct PidStruct { string KeywordValues[NUM_OF_KEYWORD - 14]; //only need the first eight keywords string HwInfo ...
[3 replies] Last: You are. There are 22-14 = 8 elements in KeywordValues. There is no 16... (by hamsterman)
Shared Object File
 
What is Shared Object File? When C++ compiles it creates an executable file right? What is shared object file and where does that come in the comp...
[1 reply] : I don't know much about the subject of compilers and such, so I'll jus... (by webJose)
by Drue
Deploy Iss
 
This is probably a really stupid question, but I'm using MageUI.exe (ClickOnce) to manually deploy one of my programs. What does it mean if you update with ...
[2 replies] Last: Ok. Thanks. (by Drue)
by atcdva
homework help
 
We are trying to understand how to assign a name to a digit. We are taking a nummerical amount (float) such as $123.42 and need it to display one hundred twenty...
[2 replies] Last: Does the 42 have to be words as well? Getting the front is easy. First... (by wolfgang)
by LB
std::exception(const char *const&, int) second parameter??
 
I am using VC++2008 Express and for std::exception's constructor, there is a second parameter of type int. What is this parameter? In the definition of the clas...
[2 replies] Last: So should I derive from std::exception and make my own exception class... (by LB)
What is wrong with this line?
 
After checking with console output lines, I have determined that the below line is crashing my program, but I have no idea why. Whenever I give input that woul...
[8 replies] Last: After further testing, It looks like a piece is added to the to check ... (by blueeyedlion)
sets
 
ghjkhjkhjk
[16 replies] Last: tnx for your help. (by gujinni)
How to compare two string arrays
 
Hello, I am writing a program in C++(using MFC for GUI) that takes in a string input from user. After reading user input, I want to check to see if it contain...
[13 replies] Last: Again, charlist is a two-dimentional array of CStrings. The syntax yo... (by kooth)
by alhanz
Removing a specific text from a textfile
 
Problem Solved Thanks!!
[7 replies] Last: Did you move the end of the loop like I mentioned? That may make all t... (by Galik)
by shank8
Word Scramble Help
 
I am attempting to create a program that scrambles words so that the first letter and last letter of a word stays the same while the rest of the letters get mix...
[9 replies] Last: thank you for the tip and link Galik (by shank8)
TCP/IP Sockets
 
I was learning about sockets/internet programming and was wondering why getaddrinfo() returned a linked list of addrinfo structs. Shouldn't it just return one s...
[1 reply] : There can be multiple IP addresses per hostname (by mackabee)
SDL linker problem
 
my headers are #include "SDL.h" #include "SDL_image.h" #include <string> and i am getting these errors 1>------ Build started: Project: SDL P...
[1 reply] : You're not linking to the SDL library. I would see about excluding 'ms... (by Computergeek01)
Assistance Needed: 2D Path Finding
 
Since I want to learn how to develop AI, I'm starting now with basic 2D path finding. So far I have this code: #include <iostream> //------------------...
[4 replies] Last: Hmmm... Perhaps it's me that's the issue. Thanks for looking anyway, C... (by closed account zb0S216C)
wstring null termination
 
Are wstrings null-terminated? The reason I ask is because for string/wstring.size(), it won't take the null character into account, and I know strings are null ...
[6 replies] Last: wstring is a class and will give you all the facilities automatically.... (by writetonsharma)
need help with remove duplicate in a array using functions
 
I'm creating a array to output intergers in increasing order, i have a problem with when the result outputs i dont want it to tell the repeated number, i think ...
[3 replies] Last: I changed it for you. 1. index start from 0, so it should be i < len... (by writetonsharma)
fabs not working...
 
hello again! Today I attempted to write a program using the fabs function but it said that fabs was undeclared.... please help! Thanks in advance! the code i...
[2 replies] Last: thanks that really helped! (by GeckoLink)
TLS and object with constructor
 
Hello, I have several global variables which are objects of user defined classes. I need to instantiate them with the thread attribute by using "__declspec (th...
[1 reply] : If you're working with Windows, you could check out this example: htt... (by webJose)
C++ packet sniffer
 
Hello guys. Soo... i have some knowledge about C++, i read (and understand) some networking, and i want to implement my own packet sniffer. The problem is that...
[2 replies] Last: I think wireshark can be used for this. its opensource. http://www.w... (by writetonsharma)
[Linker error] undefined reference to `play(int)'
 
i am having a problem with my code. I keep getting: [Linker error] undefined reference to `play(int)' ld returned 1 exit status im pretty new at progr...
[2 replies] Last: play(aSecretNumber); You're trying to call a function called play t... (by Moschops)
logical error!
 
the compiler doesnt display error so i dont know if there's one...... here's the code:: int addsup() { int f, n; sup s1 ,s2 ,s ; ifstream flin("supp...
[3 replies] Last: sup s1 ,s2 ,s ; - type missing (is sup a type?). Also, you can only u... (by writetonsharma)
July 2011 Pages: 1... 1920212223... 30
  Archived months: [jun2011] [aug2011]

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