General C++ Programming - October 2011 (Page 7)

Little help with some Homework.
 
I am currently enrolled in a C++ class online, and I am a little behind as it has been a few months ...
[no replies]
Taking an Input from a C++ Gui into another C++ program
 
I am currently developing a C++ program that does all the mathematical calculations, prints items to...
[no replies]
Trouble with char to string errors!!!
 
Hi there, I'm kind of a noob and have a software engineering assignment... Heres the question. 10...
[1 reply] : Assuming you're having problems with bracketstack.push(str.at(i)); ??... (by andywestken)
Although I have included header file multiple times without using include guards, the code compiles without no error
 
I have a question about include guards. I assume that if you include your header file in multiple so...
[5 replies] Last: No problem! :P (by friedEggHead)
by bruice
header files were included in the program, but cannot use them for errors
 
J just complied my program which include the header file BFSCfourier.h and pack_c.h.the BFSCfourier....
[1 reply] : These are linking errors, you need to link the library of pack_c.h wit... (by EricDu)
Finding Last Name and FirstName in Alphabetical order??
 
My teacher wants us to make a program that goes through two lists of students, if you enter a 10 it ...
[no replies]
Problems with segfaults.
 
I'm trying to code up a homework assignment (http://web.mst.edu/~price/cs53/fs11/h7.htm); When I run...
[2 replies] Last: If you use a debugger, it will identify for you the line that segFault... (by Moschops)
Swapping elements of arrays
 
I have a 3 dimensional array, of the form bool bit[L*L] where L is the size of the thing I'm...
[2 replies] Last: I agree with bartoli -- but be aware that it increases your bookkeep... (by Duthomhas)
vectors
 
my question is regarding the max size of a vector (not the capacity of a vector!). the myvector...
[2 replies] Last: thanks...cleared my doubt (by coolcoder)
So I am trying to display numbers in different formats
 
Here is some things I need for the program to do and this is in C by the way first line: integer...
[3 replies] Last: Er, so far you have only posted problems getting numbers, and you ha... (by Duthomhas)
by amika
convert hex string to uchar[n]
 
Suppose that I have a number in hexadecimal notation with size 2n , like "aa00F234AA" . I want to...
[1 reply] : int chhex(char ch) { if(isdigit(ch)) return ch - '0'; ... (by Syuf)
Loop problems
 
Unhandled exception at 0x779015ee in hw7.exe: 0xC0000005: Access violation reading location 0x33612b...
[1 reply] : (fall = false) You must write == for comparisons. = is for asign... (by bartoli)
whats the value of z?
 
int z=1; CT::CT() { z=2; } CT::~CT() { z=3; } void main() { ...
[1 reply] : Where? Is it really hard to follow, though? You know that new calls th... (by hamsterman)
How to write to specified file directory?
 
How would I prompt a user to enter a directory and then write to it? I've used ofstream to open a di...
[1 reply] : std::ofstream file1("/unix/absolute/path/to/file"); //Also valid on ... (by helios)
std::bad_alloc for 2D arrays
 
Hi all, I have a large 2D array in a loop, in each iteration of the loop i want to expand that ar...
[8 replies] Last: I reimplemented that whole part using a single vector which just store... (by mohsaied)
How to turn it into a function
 
double radius; string input = ""; for(;;) { cout << "Enter the radius of a circle...
[1 reply] : instead of getline(cin, input) to input a string number and then conve... (by buffbill)
8 Queens problem.
 
ive been having a few problems writing this program, the problem is to place 8 queens on a chessbo...
[no replies]
how to smooth arbitrary values without using an average
 
hi there, i'm doing a fan controler for my pc, and i'm having some problems smoothing the fans' acce...
[2 replies] Last: i was experimenting with other methods too, but in the end, yours was ... (by closed account 236Rko23)
Recursive function problem
 
Im trying to create a program that will employ a recursive that will estimate the square root of a n...
[1 reply] : I think that your initial formula is wrong: instead of nextguess = .5(... (by tfityo)
multidimensional array in a struct leading to core dumps
 
struct s { string s1; string s2; vector<float> v1; vector<float> v2; vector<...
[3 replies] Last: Try breaking up the array. Instead of allocating a huge 4-dimensional ... (by helios)
October 2011 Pages: 1... 56789... 36
  Archived months: [sep2011] [nov2011]

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