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 calling the function because i set it to cout from within the f...
[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 after this. I have this code multiply the number I enter by ...
[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 the wiser. its for a school class project. i have found some ...
[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 Initializer. Note: Program does not take User Input at this stag...
[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 them to main. Could someone help me with the problem, i'm som...
[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 many times, but I just don't see where I went wrong. Can som...
[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 the free 2013 VS Express?
[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 error message: "Expression must be a modifiable lvalue" ...
[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); Using "fc" in cmd I found out that the executables are ...
[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 they press the enter key, but I don't know how to represent 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, especially in the event that a number is removed from the board. Us...
[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"); cout<<f; string& A ("hello");//Err ...
[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 values from the array. I am trying to figure out where I've m...
[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 struct i tried to call length using the words array/items/p...
[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 with this code. It's late and probally making some simple err...
[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" in "no project" (compiler: unknown) ===|" I don't understand...
[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 running after I input the values of x ,m , and n #inc...
[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 understanding the error code invalid conversion from 'int' to 'int*' [...
[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 supposed to take numbers from the user, sort them the report th...
[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 game started and continues until the game ends . any help wou...
[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.