General C++ Programming - March 2012 (Page 19)

Program ocassionally crashing
 
My current program seems to be working fine most of the time, but every once in a while it will crash randomly. It's giving no error and when it does work, it w...
[2 replies] Last: I literally facepalmed at this. I fixed the exact same problem earlier... (by garanon)
Undefined reference error
 
I get the following error when i compile my code, any ideas? Thanks! i:\gw\lib\crt2.o(.text+0x8) In function `_mingw_CRTStartup': ...
[1 reply] : Common problem with conflicting compiler versions, frequently seen wit... (by Moschops)
Quiz
 
So, I'm trying to make a quiz about myself for my friends, and to further my knowledge of C++. My only problem is, I need help writing their answers to a text ...
[2 replies] Last: I've heard that goto is a horrible option to use, buy with my limited ... (by paulthepenguin)
help
 
write a program that reads in ten whole numbers and that outputs the sum of all the numbers greater than zero, the sum of all the numbers less than zero( which ...
[2 replies] Last: we aren't going to write this for you. Write what you can and edit you... (by Need4Sleep)
Creating a program that reads in student name and test score
 
I have looked through the forums and I did not find a topic with a program question similar to mine. I am having problems with setting up a program. The guideli...
[4 replies] Last: Wow!!! Thank you!! I wasn'y expecting this much. I guess first thing i... (by cmalbert23)
by shamjs
TNT Array2d
 
Hi All, im quite new to tnt libraries,im little doubtfull about Array2D my question is whether i need to clear an Array2D variable before using the same vari...
[no replies]
char array
 
How would i compare the cout data to a literal ex: 0, 1, 2, 3... The program should compare the data and perform isalpha, islower, etc. #include <iostrea...
[1 reply] : I dont quite understand what you're saying, but ill take a guess. You ... (by Need4Sleep)
by januou
How to enter " as string or character
 
Hi everyone, first of all thank you for reading this it's very kind of you. The problem I have is that I want to enter " as a string or character for example...
[1 reply] : Use a '\' to escape it: std::string str = "Carlos says: \"He is the ... (by firedraco)
Convert an int to a string.
 
Hey guys I was wondering how you can convert an int to a string. Thanks for the help in advance! -TheNewKid-
[4 replies] Last: I'd like to point out that lexical_cast is already quite fast, about 6... (by Athar)
by jimctu
vector causing memory errors on destruction
 
Hi everyone. I am with an annoying error that I cannot manage to fix. I have a class that have some attributes that are vectors of ints and doubles. When the...
[10 replies] Last: You might consider modifying the destructor for grasp so that the addr... (by cire)
by hard
Debug Error!
 
Run-Time Check Failure #2 - Stack around the variable 'X_array' was corrupted. Hi everyone, little help needed!!! What does this error means, well basicaly...
[2 replies] Last: made a silly mistake in a for loop, started from i=1! changed to i=0 :... (by hard)
URGENT Help Please, input file not closing
 
Can anyone help? It's not closing the file when I'm reading in a file. I'm using a Linked List implementation where list.Insert(temp) is a function to add that ...
[4 replies] Last: Nevermind i got it. You cant put comments in a .data file youre readin... (by rguid17)
by LB
Can C++11 cannot dynamically call function? (1,2)
 
Say I have a function pointer or std::function object, and I have a variable to hold the return value and a std::vector<boost::any-like container> of parameters...
[23 replies] Last: Did you not read my previous post or something? I've already explained... (by LB)
Creating a User Interface with C++ & Visual Studio
 
Hello there. I'm trying to create a multi timer program. I've gotten most of the groundwork done as far as the meat and potatoes goes, but I'm having trouble wi...
[2 replies] Last: Text boxes. They would hold numbers, in the form of xx:xx. And there w... (by closed account 365X92yv)
Help need for the Error C6061
 
Hi , I have created a class for pinging using socket programming . I have the function in the class . int SetupForPing( char* host , int ttl , SOCKET& s...
[4 replies] Last: thanks guestgulkan ,...thats solved my problem Thanks all of you... (by bluecoder)
Looping switch statements
 
Hi Everyone, I've been coding out a type of case statement that would repeat itself. For example, the program will display a certain menu with a series of optio...
[3 replies] Last: U can use do { ---- ---- }while(...); or u can do by using a infini... (by SUH)
Please help me with this run time error
 
i get this run time error when i try to run my program 1>c:\users\administrator\desktop\project3\project3\familybudget.cpp(42): warning C4700: uninitialize...
[3 replies] Last: Thanks for the quick reply, i did initialize those three values to '0'... (by nasty92svx)
by Zapeth
Trouble with understanding Boost.Asio
 
Hello I am currently tring to realize a server program with Boost.Asio. Since I am rather unexperienced on that topic I simply took the example code as a bas...
[5 replies] Last: > the two handlers handle_read() and handle_write() are actually calli... (by JLBorges)
C++: Having troubles with functions and dynamic memory allocation (heap)
 
http://pastebin.com/Y1n51yKC - Full source http://pastebin.com/D8kN7wDa - The gist of it My program undergoes a run-time error every time I uncomment l70-72(1...
[3 replies] Last: I should've said naive. I'll have to pass on doing your homework. (by cire)
MY PROGRAM WONT COMPILE BECAUSE OF A LINKER ERROR.
 
I've written a small program using separate compilation. My class is in a file called BankAccount.h and my implementation file is in a file called BankAccount.c...
[10 replies] Last: i have one question though. when you use separete compilation, do you ... (by ayanda83)
March 2012 Pages: 1... 1718192021... 49
  Archived months: [feb2012] [apr2012]

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