
please wait
by etsuper258
Values in array aren't printing right
|
I have a project where i'm supposed to input a list of values in an array and print them. My prints the values but it isn't the values I entered. Instead it pri... |
Nov 8, 2015 at 11:02pm
[8 replies] Last: Oops!! Sorry!!! Won't happen again! (by etsuper258)
|
by Tom Brown
do while loop with case
|
how can i loop this case, and prompt the user for for everything again, i should do more case but i can do that later i first need to know how to loop it ... |
Nov 8, 2015 at 10:07pm
[7 replies] Last: @ JayZom No need for apologies, it's all good :+) I would recommend... (by TheIdeasMan)
|
by anarelle
I'm wondering if this is an acceptable way of doing things...
|
To put it simply, I have a small program with these structs: struct Student { int id; string name; }; struct Course { int id; string name; }... |
Nov 8, 2015 at 10:05pm
[4 replies] Last: Ah, now I realize that you want to find the number of grades of EACH s... (by Kevin C)
|
by carlos22
overloading subscript operator (return typ)
|
I know that a return value is not enough to override a function, but is there a way to overload the subscript operator of a class, just to return the value (I c... |
Nov 8, 2015 at 9:54pm
[5 replies] Last: Can you provide an exaple describing what exatly do you want to do wit... (by Kevin C)
|
Sort Each Row of 2D Array in Ascending Order |
Hello all! I have a 2D array of doubles that needs each row sorted in ascending order. So if my array starts like: {0.7, 0.6, 0.5} {0.2, 0.1, 0.3} {0.9... |
Nov 8, 2015 at 9:51pm
[2 replies] Last: Can you use std::sort or do you need to implement your own algorithm t... (by JayhawkZombie)
|
by mishka005
Help me with my task
|
Task 1 Ulam spiral Implement a C++ program which describes the drawing process of an Ulam spiral. The program should ask the user to enter three variables: s... |
Nov 8, 2015 at 9:41pm
[2 replies] Last: //A program which describes the drawing process of an Ulam spiral #inc... (by mishka005)
|
_kbhit() Question |
I've just heard about _kbhit() and I don't know how to use it the right way. How I should write my code to show something on the screen every time the keyboard ... |
Nov 8, 2015 at 9:13pm
[8 replies] Last: It also works with _getch() Thank you (by cristicristi8160)
|
by espionage1
Help with my code please!
|
Create a new .cpp program that reads the data from this file using a while-loop. Call your program yourname_count_play.cpp, and save it to your folder. Your pro... |
Nov 8, 2015 at 8:24pm
[8 replies] Last: Took me a couple of seconds to spot the error this time, but without u... (by ShiftLeft)
|
by bastri
Doubt about const used in member functions.
|
In some cases we have "const" in two differents parts of the function 1) const char *Leer() { return cad; } 2) int Lee() const { return ... |
Nov 8, 2015 at 8:23pm
[3 replies] Last: If by parameter you mean the object that the function is being called ... (by Peter87)
|
by bastri
Doubt about why to use pointer* &array
|
Hi I have a doubt with a program that I created to still learning c++. In this program,after a lot of effort, I could do the thing that I wanted. This thing... |
Nov 8, 2015 at 8:23pm
[4 replies] Last: Thanks a lot (by bastri)
|
by TheToaster
Hash functions
|
So in my C++ book, it teaches how to create a simple hash function for use with a basic hash map container. But I dont understand one line of the code: ... |
Nov 8, 2015 at 7:21pm
[2 replies] Last: For extra fun, it could also have been written i[(unsigned char*)&key... (by Duthomhas)
|
Help with reading from files and calculating average |
l |
Nov 8, 2015 at 5:59pm
[8 replies] Last: There are several probable problems. First I don't see where you're e... (by jlb)
|
by Sinusxdx
A basic question about output of decimals
|
It seems very puzzling to me, but this simple code returns 0 and not 0.27. What am I doing wrong? #include <iostream> #include <stdlib.h> int main() { ... |
Nov 8, 2015 at 4:31pm
[3 replies] Last: This answer on StackOverflow quotes a small portion of the C++ standar... (by kevinkjt2000)
|
by roxicox
Measurement points task.
|
Hello! So basically my task is to make a program that handles measurements of the water height at different points of a river. Basically where the height is u... |
Nov 8, 2015 at 1:55pm
[1 reply] : Your program shouldn't even compile, unless your using a compiler spec... (by jlb)
|
by patstark76
Help with getting double value to work in functions
|
Need to write conversion code using functions, but computer returns integers and not double values. Am I missing something??? // // main.cpp // homewo... |
Nov 8, 2015 at 1:45pm
[1 reply] : Perhaps you need to review your textbook for information about functio... (by jlb)
|
by jakthebored
What can you do without including anything?
|
This question can seem silly but I can't formulate it any other way and I have not found a consice answer. ______________________________ What i want is an ar... |
Nov 8, 2015 at 1:32pm
[3 replies] Last: What can you do without including anything? Answering the question l... (by andywestken)
|
by vicbosh
VC++ 2010 Crashes when I debug my program
|
I have an assignment for my beginner's programming class to create a craps program, I have finished the code and it will build successfully, but when I try to d... |
Nov 8, 2015 at 8:20am
[no replies]
|
by ruroni24
An error
|
It says uninitialized local variable 'inputNum' used as an error on the first activity. How can I fix this? // Lab 5 - loops.cpp Working with looping str... |
Nov 8, 2015 at 6:25am
[1 reply] : int main() { cout << "Trung Pham. \n"; cout << "\nActivity 1 \n====... (by JayhawkZombie)
|
by kdrews
Vector code help
|
I am new to c++ and I trying to write a code using vectors to display numbers ,in between 10 and 101, received from the user. The problem i'm having is creating... |
Nov 8, 2015 at 5:55am
[1 reply] : In your main() you don't pass a parameter to Vector::fillVector(), eve... (by magnum pi)
|
by sigai90
PROJECT C++
|
Hi everyone..I'm new to C++ programming..i have this project which require me to connect Dev C++ to another program and obtain certain value from the other prog... |
Nov 8, 2015 at 5:07am
[1 reply] : What do you mean by connect to another program and what is the value y... (by ShiftLeft)
|