Beginners - November 2016 (Page 27)

Bubble sort
 
I'm trying to write a function in a program to bubble sort an array. I'm not having any problems cal...
[1 reply] : The correct BubbleSort function is : void bubblesort(double sales , ... (by Brigavo)
by nu123
how to carry on answer
 
just a quick question about a code I have. hopefully ill be able finish the rest of the code myself ...
[no replies]
by nu123
cant finish code
 
iv been at this code for the last couple of days trying to make out how to do it but I'm still nun t...
[1 reply] : Write to an array and then You need to use pop_back in order to get ri... (by Univcplus)
Sudoku Checker Algorithm
 
I am building Sudoku Game for C++. I have completed the all of the basic functions for a Sudoku Init...
[no replies]
Can't return to int main()
 
Hi, my function ( float WriteResults() ) is unable to return to main and i'm not sure how to refer t...
[10 replies] Last: @wildblue oh yea that, thanks, it managed to solve the loop error. Als... (by Jacketto)
won't build
 
I cannot seem to figure out what I did wrong, but this code will not compile. I have combed over it ...
[1 reply] : #include <iostream> // cout, cin #include <cstdlib> ... (by lastchance)
Compiler Question
 
I have the full version of VS 2012. Will that suffice, or is it necessary to download and install th...
[no replies]
by rlake
Expression must be a modifiable lvalue
 
Hello, I was wondering if someone would please help me figure out why I am getting the following ...
[2 replies] Last: Thank you! (by rlake)
Should I use fstream.open()?
 
I found out that you can use "ofstream foo(path)" instead of: ofstream foo; foo.open(path); ...
[3 replies] Last: Yes agreed. In fact, as a general principle, the further away ofstream... (by gunnerfunner)
by Inig0
Enter key
 
I am having trouble with one of my class assignments. The goal is to mirror the user's input until t...
[9 replies] Last: Actually we can indeed get exactly what OP wants: #include <iostrea... (by gunnerfunner)
How to check elements of a vector<vector<short> > for a condition
 
How would it be possible to check the correctness of the a Sudoku board for inconsistencies, especia...
[4 replies] Last: I am not quite familiar with using sets, is there a way I can make the... (by CelestialX)
what is the difference between string& and const string& ?
 
what is the difference between string& and const string& ? const string& f("hello"); ...
[1 reply] : string& is a reference to a string while const string& is a reference ... (by gunnerfunner)
How to find the two largest values of an array
 
I need to write a function that takes in an array of ints and its size and prints the two largest va...
[1 reply] : Right now, the if statements in the for loop are nested, so the second... (by wildblue)
how should i identify this parameter from a struct inside a function from class?
 
I'm trying to write the set() function and the parameter of it should be length which is part of the...
[1 reply] : There are two lengths involved, because at line 12 two array objects... (by Chervil)
Code not working
 
Hey, sorry for the late post. Wanted to see if anyone can help me figure out what I am doing wrong w...
[4 replies] Last: #include <iostream> using namespace std; void generateRand(int , in... (by closed account 48T7M4Gy)
finding errors i don't know how to fix
 
I have a homework i need to solve, but i get this in build messages "||=== Build file: "no target" i...
[4 replies] Last: thank you! (by Deeyumm)
by yamada
program stops running (program in conditional and repetitive statements)
 
what is the error in this equation's program? it has no errors when compiling but it stops while ru...
[8 replies] Last: CarolStar, no more problems ^^ thank you ^^ (by yamada)
Trying to write a function that adds all the numbers in an array
 
I'm trying to write a function that takes adds all of the numbers from an array. I'm not understandi...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/202079/ (by closed account 48T7M4Gy)
Arrays
 
Hey, been working on this code for a while now, and it been having some troubling with it. It is sup...
[12 replies] Last: http://www.cplusplus.com/forum/beginner/202169/ (by closed account 48T7M4Gy)
Timer
 
i'm working on a game here ...and i need to show a timer ...which shows time passing by since the g...
[no replies]
November 2016 Pages: 1... 2526272829... 44
  Archived months: [oct2016] [dec2016]

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