
please wait
by lzdmnstr
Segmentation Fault in a for() loop
|
Hi, I'm pretty new to programming and I'm sure this is a quick fix. I've just been staring at this code for hours so nothing is popping out at me that would ind... |
Mar 10, 2011 at 8:35pm
[4 replies] Last: The q-0 is a mistake in my copying. It is actually q=0. However I'll l... (by lzdmnstr)
|
first program not working! |
ive been reading the tuts on this website and i made my first program but it doesnt work! here iz my program #include <cstdlib> int main(){ cout<<... |
Mar 10, 2011 at 7:05pm
[4 replies] Last: it works! thanks fili! (by DeadOverclock)
|
by navderm
debugging recursive functions
|
what is the best known method for debugging a recursive function ?? how do i make things print and make sense of things it is doing ? any standard or genera... |
Mar 10, 2011 at 6:51pm
[1 reply] : If you want something pretty, you can use a static variable inside the... (by Zhuge)
|
by subith86
How to find length of sub-array
|
Here is my piece of code: int b = { {4,6}, {-3,0} }; int b_length = (sizeof b)/sizeof(int); int *sub_b = b ; ... |
Mar 10, 2011 at 5:18pm
[3 replies] Last: Use a vector. (by rocketboy9000)
|
by ladman
String subscript out of range?????
|
i have this program for an school assignment. the goal here is to open an exicting data file, have it sorted, then add up the total gross for each individual an... |
Mar 10, 2011 at 3:58pm
[2 replies] Last: dude you are a live SAVER!!!!!!!!!!!!!!!!!! that fixed it. dont know w... (by ladman)
|
by Jawsh
How to read in a text file and store into an array?
|
HI everyone, I am trying read in a text file with a 10 by 2 array of values into my program and I would require the program to assign it back into another ar... |
Mar 10, 2011 at 3:22pm
[4 replies] Last: Thank you hanst99. I have came up with the code below and the output ... (by Jawsh)
|
by Dave1123
Returning an array from a function
|
Hi, I've googled this and found loads of threads, but none seem to help me. I am doing a project which requires me to use a function that uses an array from... |
Mar 10, 2011 at 3:20pm
[4 replies] Last: Brilliant! Thanks for the fast responses. (by Dave1123)
|
by ccole101187
HELP!!! (code problem) Qwik ?? about #s from the keyboard and add them together!!
|
ok so i used the code listed below, BUT when i build the solution an error shows and says that "cout, cin, and endl" are "undefined" I am using Microsoft Visua... |
Mar 10, 2011 at 2:53pm
[2 replies] Last: They are inside the std namespace. You can fix that by adding using n... (by Bazzy)
|
by Maxeipi
Problem overloading pre-increment operator (++)
|
Hi I'm not sure if this is a beginner's question... I'm trying to create a Date class and override some operators. class Date{ private: int _day, _month, _ye... |
Mar 10, 2011 at 12:34pm
[4 replies] Last: That worked :D Now why didn't I think about that...? Thanks. (by Maxeipi)
|
by arash
>> dont work with string type ??
|
I was just playing with MS VC express 2010 to remember C++ but I could not compile the following standard code for getting input and display it ! // a small C... |
Mar 10, 2011 at 11:04am
[2 replies] Last: DUMB mistake! thanks! (by arash)
|
by tonnot
Code to know memory use under windows without MSVC ?
|
I want to know the memory use (Windows) of my program written with Qt (So I have not MS). Can anybody tell me some useful (code or link) Thanks |
Mar 10, 2011 at 10:42am
[1 reply] : This describes the different kinds of counters and has a link on acces... (by kbw)
|
by kowbonez
Compiles fine but get error when I try to execute
|
When I try to run the program, it comes up with this error window: http://i.imgur.com/M1ClO.jpg #include <iostream> #include <string> #include <sstream> #inc... |
Mar 10, 2011 at 10:29am
[1 reply] : Your code throws an exception of type length_error; http://www.cpluspl... (by Moschops)
|
by bihcity08
Function exit to main (1,2)
|
I got a function that enters data to an array. When i call the function i want to store data in element 0 and then exit the function and go back to main. When i... |
Mar 10, 2011 at 9:10am
[22 replies] Last: You don't seem to have the right perspective of C++ logic. In this cas... (by closed account S6k9GNh0)
|
by GulHK
vector unique problem (1,2)
|
.......... |
Mar 10, 2011 at 9:02am
[20 replies] Last: I'm SORRY people. It was the actual code I have been working on so I r... (by GulHK)
|
by jpinckley
infinite loop troubles
|
im trying to write code for my previous boss but can not seem to get the program to be "idiot" proof. im wanting to have multiple checks so that when someone in... |
Mar 10, 2011 at 5:10am
[5 replies] Last: yea im using it (system("pause")) to get echo prints but its saving ev... (by jpinckley)
|
by soysause
Problem with palindrome
|
Hey guys, i'm having problems with my palindrome function. Sometimes when it is a palindrome with a space it declares that it isnt a palindrome and if there's a... |
Mar 10, 2011 at 3:04am
[2 replies] Last: and what's up with the break statement? your for loop is not a for loo... (by propohetjohn)
|
by Cheftoad
rand() help required.
|
Hello. I need to make a random number generator for numbers between 1 and 3. I also need to do this using srand and rand in two separate functions. My issue is,... |
Mar 10, 2011 at 3:04am
[4 replies] Last: +1 Zhuge. This code, for example, should work. You can try it for ... (by Disch)
|
by alex58765
Expand function
|
I am working on expand function, that asks to write a C++ command-line program that includes a main function and an expand function. The main function should as... |
Mar 10, 2011 at 2:27am
[4 replies] Last: The function is suppose to print the expanded string, re-allocate memo... (by alex58765)
|
by mzimmers
question about file organization
|
Hi, all - I'm writing my first C++ program for a real-world application right now, and am trying to figure out a good scheme for what to put in which files. ... |
Mar 10, 2011 at 2:09am
[12 replies] Last: if possible, i would write a function, that when called returns the st... (by propohetjohn)
|
classes confusion |
Ok I have 2 classes. Class core and ball. Class ball is inheriting cores public members. But I have a problem. Both classes use each others members, so what I d... |
Mar 10, 2011 at 1:58am
[2 replies] Last: Give us a small example of what you are trying to accomplish and we'll... (by PanGalactic)
|