General C++ Programming - November 2009 (Page 2)

Array problem
 
Hello, I'm having a little problem with my app. I created a MFC app, then I put something like: MYSTRUCT array1 ; When I ran the app, it crashed. I thou...
[2 replies] Last: Useful information, thank you. (by walker88)
Is a pointer readable/writeable?
 
I know it's possible to find out i just don't know the command. any help?
[8 replies] Last: They probably use Structured Exceptions which are different from C++ e... (by kbw)
by mar11
casting
 
Hi all, i have some trouble by understanding the data type casting. Please consider this code struct test{ int a; int b; int c; }; unsigne...
[4 replies] Last: For the record... this is something you should never ever ever do. ... (by Disch)
c++ cgi
 
Is there any program which allows me to compile my c++ program in windows that would be binary compatible with Linux servers
[5 replies] Last: No, but it can be used as a cross-compiler. At least I think so. (by helios)
My sad Array-pit...
 
I am slowly understanding the very basics to C++ and thought I could do some useful array information containers looking something like this: int dexterity =...
[1 reply] : You should make a struct eg: struct Soldier { string name; ... (by Bazzy)
by brnksk
while,for causes
 
I have a problem with my programs here is what should be done Make a programme to find average, min and max grade from a serial ( unlimited ) grade of stude...
[7 replies] Last: could anyone post an array version of this prob ?? also an algo to de... (by brnksk)
dev-C++ question
 
Hello, I'm using the latest version of dev-C++. I'm wondering what is the ANSI C++ standard for that compiler.
[5 replies] Last: There's no such thing as C98. The C standards are C89 and C99. The C++... (by helios)
Simple Mouse Program
 
Ok, so my code is horrible I know. I am inexperienced and this was the best I could do with my knowledge. Basically the function of the program is to record the...
[3 replies] Last: It was the GetAsyncKeyState command that was slowing everything down, ... (by ultifinitus)
by Zendet
Repeat without array
 
lets say i had this int times' cout<<"enter times you want to repeat"; cin>>times; ----> cout<<"Hello what age are you?"; cin>>age; <--...
[2 replies] Last: You can use for loop,while loop and do-while loop on your code but fra... (by us3rn4m3)
zipped or unzipped
 
Hello Folks, I have to open a file that can either be zipped or unzipped, but is a text file neverthless. I can use gzgets(from zlib.h) for the zipped versi...
[3 replies] Last: http://lmgtfy.com/?q=zlib+library+C%2B%2B+tutorial (by chrisname)
dbgheap.c error
 
Hi all, I get an dbgheap.c (Line 1806) error when I try to free the space which was allocated. Unhandled exception at 0x77154684 in prep.exe: User break...
[2 replies] Last: Thanks that makes sense I think this is it. (by FJaegerstaetter)
by Zendet
Project need ideas
 
Hello, im doing a project and need some help. my project is have to make a program for 5 judges. at the start the first thing asked is how many competitors a...
[no replies]
by nrose
Moving elements in my array
 
im trying to write a program that will shift the values in my array one space to the left. im not sure if im going down the right path though. any help would be...
[10 replies] Last: Most complete code! I hope it helps... #include<iostream.h> #inclu... (by us3rn4m3)
pointers in structures..
 
Why are all my pointers inside structures out of scope? I am really tired right now and my head is splitting from six months of stress(not over this problem ju...
[2 replies] Last: Well can you explain what really you want to output in your program.De... (by us3rn4m3)
makefile
 
hi i have to make this makefile and im really not sure with this extra cpp file in it, here they are. (using CC compiler), thanks! class1.cpp class2.cpp ...
[1 reply] : http://www.gnu.org/software/make/manual/ http://oreilly.com/catalog/m... (by kenshee)
by hicks
Implementin this function into my program
 
Hey guys I have been having trouble implementing this New_Position function into my code, that I have already made. We are supposed to use the New_Position func...
[5 replies] Last: bump (by hicks)
Why my string is losing its value
 
I was trying to figure out why my size_t variables were returning -1 when using the find_first_of() function for agggesss when I realised the string that it was...
[2 replies] Last: Ok thanks, I changed getline() to give a new variable 'fileContenetTem... (by mcleano)
Parallel Arrays
 
Hi, Im new here. I'm having a difficulty trying to write a program with one-dimensional parallel arrays. The two arrays are the 6 ids with string and output ...
[1 reply] : Here's a loop that searches for a string. As you can see, processing ... (by kbw)
by jcylam
How do i join two programs together each written by two people
 
I have a program that reads input and converts them to useful input for my program. The problem is that they both hav int main. What should i do? is it as si...
[3 replies] Last: ok i did that (change the main to a function and call it when i run my... (by jcylam)
functions and arrays assistance please
 
The function char findMonth(int) is supposed to return the month that corresponds to the number entered by the user. The int lowestRainfall () function is ...
[2 replies] Last: The real problem is that you are trying to use char arrays to represen... (by kbw)
November 2009 Pages: 1234... 16
  Archived months: [oct2009] [dec2009]

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