
please wait
by S7krs
Method Default Argument Fetched Internally from Class?
|
I need to pass a parameter to a method. Said parameter may sometimes not be passed, then, it needs to default to an internally stored value. class simplic... |
Oct 27, 2012 at 12:46pm
[6 replies] Last: Well Vlad I need to set something whilst returning at the same time. (... (by S7krs)
|
by dcftci
vector function erase
|
hi, I have a 2D vector and now I want to erase a certain row. I used vector.erase(myvec.begin()+temprow) temprow is the row number assuming that first row is... |
Oct 27, 2012 at 12:15pm
[6 replies] Last: @ slider57: Like cire said, OP probably uses a vector<vector<CustomCl... (by Catfish2)
|
by Hashimatsu
math problem
|
I want to make a program and have it explain to C++ that my int x is smaller than '<' my int z . Something like this: int main() { int x, z; x ==... |
Oct 27, 2012 at 11:11am
[4 replies] Last: You could create a class containing two elements; int less, int more. ... (by S7krs)
|
by NCflorida
Load List Not Working Correctly PLEASE HELP!
|
Hey guys I'm currently writing a program that does a file and then loads the list then must print them. Something is going wrong and I cannot figure out what it... |
Oct 27, 2012 at 10:30am
[2 replies] Last: Another thing to note. Write you code in pieces, then test those piece... (by slider57)
|
by dcftci
text file directory
|
hi, how do I put a text file in the same directory with my cpp codings so I can open the file and take something out of it? |
Oct 27, 2012 at 9:17am
[7 replies] Last: thank you guys! I finally figured it out and it got me thinking that i... (by dcftci)
|
Lower case-upper case |
Please help me to write a program to convert lowercase string to uppercase string Please!! |
Oct 27, 2012 at 9:00am
[5 replies] Last: @Catfish2 Your solution is very good & portable as well - the only do... (by TheIdeasMan)
|
by Fransje
SDL_FreeSurface() when surface goes out of scope
|
Hi all, if I have for example this function: void DrawImage() { SDL_Surface* image = SDL_LoadBMP( "image.bmp" ); SDL_BlitSurface( image, NULL, s... |
Oct 27, 2012 at 6:13am
[2 replies] Last: Ok, thanks! (by Fransje)
|
by Atlas742
cout help
|
Hi, its been a long time since I've done any programing. Here's my problem, I can't get cout to work even in this simple test program. Using microsoft visual... |
Oct 27, 2012 at 5:50am
[2 replies] Last: (facepalm) I can't believe I forgot main. Thanks. It has been a really... (by Atlas742)
|
by bigman40
statistics program pulled from .txt file
|
Hey every body once again here for some help, not as much as help as before, lol and thanks again for help last time it really taught me a lot... I have writ... |
Oct 27, 2012 at 5:38am
[14 replies] Last: sure will i will get back.. (by bigman40)
|
by geekocoder
problem with scanf
|
what does the following statement mean??? scanf(" \"%[^\"]\"",s); |
Oct 27, 2012 at 5:30am
[1 reply] : Read this: http://www.cplusplus.com/reference/clibrary/cstdio/scanf/... (by TheIdeasMan)
|
by mixxd
What data type to use?
|
Hey all. Uber beginner here. I'm curious as to what indicates what data type one should be using when writing a program. I understand that each data type (bo... |
Oct 27, 2012 at 3:10am
[3 replies] Last: Thanks very much for the addition, that was informative. Yeah I wasn'... (by Moeljbcp)
|
by bosox99
Causing a delay in a program.
|
I'm writing a program, and I need to cause a delay for several seconds. #include <iostream> using namespace std; int main(){ int x; //I want to ... |
Oct 27, 2012 at 2:49am
[1 reply] : @bosox99 Add #include <windows.h> so you can use the Sleep function... (by whitenite1)
|
by degausser
Reversing the input of an array.
|
For this assignment, I have to reverse whatever the user has input. So, if the user were to input: 123456789 I have to make a program that outputs: 987654321... |
Oct 27, 2012 at 2:18am
[10 replies] Last: Ended up with: char score = {'\0'}; (by degausser)
|
by Showdon
Help
|
So I had started this off wrong and will go back to delete my first post. The assignment states: In Lab 10 you were asked to write a 4-function program to ca... |
Oct 27, 2012 at 2:09am
[2 replies] Last: I have to merge the numChildren and getIncome function into 1 function... (by Showdon)
|
by kready
help with overload program
|
I have this program that needs to overload the increment and decrement operators to increase the date by a day and decrease the date by a day,respectively. comp... |
Oct 27, 2012 at 1:39am
[8 replies] Last: the text or errors is "dateType does not name a type" but i do see wha... (by kready)
|
by Merriak
Need help with a password program assignment
|
Hi there, I am having some issues editing a program for my lab. The assignment requires converting character arrays into strings in order to enhance the secu... |
Oct 27, 2012 at 1:32am
[7 replies] Last: Awesome! Thanks! I completely overlooked that! Works perfectly now. :) (by Merriak)
|
How to find the median? |
Hi, i have the mean and i also sorted the program but i need to know the function for median in c++? just point me in the right direction here is my code #in... |
Oct 27, 2012 at 1:23am
[1 reply] : If you've sorted your values, the median is either the middle one (if ... (by andywestken)
|
by jaynajay
Calculator program using Functions
|
The required Functions in the program are: 1. showMenu 2. getNumbers; 3. getOption 4. addNumber 5. divideNumber; 6. subtractNumber; 7. multiplyNumber; 8... |
Oct 27, 2012 at 1:22am
[3 replies] Last: Whew! Finally, I was able to put this together. Could you please go th... (by jaynajay)
|
by Tiger58
Random number generator isn't working???
|
I am using the directive "#include <ctime>" and I have the following set up: seed = time(0); srand(seed); Thing is, it works fine when I use the simple a... |
Oct 27, 2012 at 1:07am
[7 replies] Last: I see, yea I was running the same program over and over again. Thanks ... (by Tiger58)
|
by wordman
Array counting loop not working
|
I'm having a problem with the sum counting the data being pulled in from my inputfile. I can display the input file correctly but the sum it not counting right.... |
Oct 27, 2012 at 12:47am
[no replies]
|