
please wait
by hmlwin
Program is always giving same output
|
I am having some issues with assigning a's and b's new values, using there old ones to calculate them. My program output is always a=2 and b=1. Can anybody hel... |
Mar 16, 2015 at 3:05am
[2 replies] Last: oh crap! I can't believe i missed that! Sorry sometimes when I type fa... (by hmlwin)
|
by FrankRafa
Problems about running the user-defined times of programs
|
Hi folks, I'm doing some program about the craps game(rolling dice) and it seems just confusing that whenever I prompt the user for input of the number of t... |
Mar 16, 2015 at 2:21am
[2 replies] Last: No I see what is going on now.... I used = instead of == to set the eq... (by FrankRafa)
|
by alexBB
Segmentation fault. Core dumped (1,2)
|
This is a chunk of code that compiles but does not run. #include <math.h> #include <fstream> // std::ofstream #include <complex> #include <iostr... |
Mar 16, 2015 at 1:36am
[27 replies] Last: Thank you norm b. I will try to sort it all out tomorrow. It is my rec... (by alexBB)
|
by Bleedz129
delete duplicates from an array
|
I would like to delete duplicates from an array, I used vector for this problem. I am aware that we can do two for loops but I do not want a solution in O(n^2)... |
Mar 16, 2015 at 1:19am
[1 reply] : O( N log N ): // http://en.cppreference.com/w/cpp/algorithm/sort std:... (by JLBorges)
|
by lolapurple
Searching through a data file to match user input PIN
|
I am am trying to write a program to prompt the user to enter a 4 digit pin. If the pin matches a pin on the pre-recorded data file it should say "Access Grante... |
Mar 16, 2015 at 12:33am
[1 reply] : woudl you mind posting your errors? (by Little Bobby Tables)
|
by calisabeth
Iterating through arrays part 2
|
The problem wants me to print each number that is greater than 21. This is what I have. #include <iostream> using namespace std; int main() { ... |
Mar 16, 2015 at 12:15am
[1 reply] : Change this - for (i = 0; i <= NUM_ELEMENTS; i++) To this - for (i... (by TarikNeaj)
|
by gelier
Part 2:Basics of Array need help !!!
|
I know how to declare an array, but have no idea on this one. Assume that array named a, contaning exactly 5 integers has been declared and initialized. Wri... |
Mar 16, 2015 at 12:08am
[3 replies] Last: Happy coding! (by TarikNeaj)
|
by gelier
Basics of Array need help !!!
|
Write a statement that assigns to x the value of the next to last element of the array. 1 #define ARR_SIZE 30 2 main() { 3 int x, arr ; 4 5 6 r... |
Mar 16, 2015 at 12:07am
[4 replies] Last: yes, it worked but it must be x =arr -2; to next to the last number. T... (by gelier)
|
by calisabeth
Iterating with arrays
|
The problem wants me to print the average as well as the sum. #include <iostream> using namespace std; int main() { const int NUM_ELEMENTS = 8; ... |
Mar 15, 2015 at 11:47pm
[1 reply] : First, the loop is unnecessary; the result of sumVal / NUM_ELEMENTS ... (by keskiverto)
|
by Tanner
Some questions(need to know Java)
|
Hi,so let me introduce my prior knowledge before I get into my questions. I "know" Java, know isn't a term I would use if you asked me if I know java in real l... |
Mar 15, 2015 at 11:15pm
[4 replies] Last: To expand on question number 1. Import and include are similiar but on... (by Ismael Vazquez)
|
by SCB3
About outputting Ascii Characters
|
ii |
Mar 15, 2015 at 8:34pm
[4 replies] Last: sorted it, it was a int array as opposed to a char and I tried using ... (by SCB3)
|
by godric18
loop counter not increasing
|
hi so im having some trouble with my code i made a counter that should display the cycle. counter doesnt start from 1 it starts at 50 and stays at 50. i dont kn... |
Mar 15, 2015 at 8:08pm
[3 replies] Last: Your program is full of loops all over, specifically which loop are w... (by godric18)
|
by davtk8
csv format - PROBLEM - What I'm I missing?
|
I get a weird output from my CSV when entering data values on one line in the console. What I'm I missing? Expected: James Kai, 18.01.1996, London (in CSV... |
Mar 15, 2015 at 6:59pm
[3 replies] Last: std::noskipws /*and or*/ std::getline http://www.cplusplus.com/refe... (by closed account SECMoG1T)
|
saving multi dimensional array as a bmp file |
I have this algorithm that shows you the generation of a maze step by step and i want to output the final result ( array ) in a bmp image file , nothing too fan... |
Mar 15, 2015 at 6:36pm
[no replies]
|
by mighty asker
Random numbers (1,2)
|
Hello. After reading a few threads for generating random numbers, I discovered that this is the right way to use it: #include<iostream> #include<cstdlib> #in... |
Mar 15, 2015 at 6:30pm
[22 replies] Last: As a believer in determinism, I cannot accept that anything is ever tr... (by Disch)
|
by LadyInRed
"This" pointer
|
Hi, again I try to add two complex numbers using "this" pointer. In "Complex Suma(Complex z)" function the first number is represented by the curent object ... |
Mar 15, 2015 at 5:51pm
[1 reply] : Your Suma function is fine. The problem is you are adding the 'Add' o... (by Disch)
|
by LadyInRed
Add two complex numbers
|
Hi, I am beginner in c++, and i need help. Thank you. #include <iostream> using namespace std; class Complex { private: int a; ... |
Mar 15, 2015 at 4:55pm
[4 replies] Last: TarikNeaj i will be more precisely next time. Thank you guys! (by LadyInRed)
|
by elliott22
Function call requiring endline
|
My function calls below will only return a result if I include an endline after each function call. The functions are all basic get functions (code below). I a... |
Mar 15, 2015 at 4:35pm
[5 replies] Last: Thank you very much!!! (by elliott22)
|
by jakeculp
Contact List Program: Can't output all contacts
|
I have a program below that is suppose to allow for a user to import an existing contact list if they have one or create a new one. This works however now I wan... |
Mar 15, 2015 at 4:35pm
[3 replies] Last: Works fine for me except that only the first line of the file is read.... (by shadowCODE)
|
by Chimychangas
Quick question on global variables.
|
Hey guys, Just wondering, would this count as a global variable? It is currently placed within the private function of my class but I'm wondering if I move ... |
Mar 15, 2015 at 4:06pm
[2 replies] Last: Well, it's a typedef, not a variable. So global? Yes. Variable? No... (by Disch)
|