Beginners (Page 58)

Construct Greedy Random Solution
 
The function has to generate a solution for a candidate using greedy random solution? I figure to us...
[1 reply] : Do you mean this? https://en.wikipedia.org/wiki/Greedy_randomized_adap... (by LB)
Getting numbers from a data file
 
I do not have a code that I need help with. I would like to ask how do I get a line of numbers from ...
[1 reply] : Don't use .open() and .close(), use curly braces instead: //...code...... (by LB)
Loops
 
This is code that is going into a function that when put into the program will add Roman Numerals ...
[12 replies] Last: Now any non-roman-numeral character will break the loop. If that's wha... (by LB)
by fc3s
Help with GPA calculator problem
 
Hi, I keep getting a red squiggly line under my "<<" symbols and I don't know why!! #include<ct...
[3 replies] Last: first you must put the comparison and then the bracket for instruction... (by dariusd7)
Error: Expected primary-expression before...
 
Error: Expected Primary-expression before kid. I don't know what's done wrong //Function proto...
[1 reply] : line 14 remove the second student (by Little Bobby Tables)
by genson
PI Code
 
I need help with an assignment, I don't know how to go about this in order to calculate my data. I ...
[6 replies] Last: Can I see the code you used? (by giblit)
String variable?
 
I was writing a very, very piece of simple code. #include <iostream> using namespace std; ...
[6 replies] Last: Goto is bad, because it makes code look like spaghetti. How spaghet... (by heyyouyesyouiloveyou)
Linked List C++
 
Hello. I am studying this sample code for linked list class node implementation. I've studied this ...
[4 replies] Last: How does it exactly keep track of the head node? Again, thank you fo... (by jshm415)
Comma operator
 
I do not get how the value of y is not 16, could someone explain why? bool someValue = tr...
[9 replies] Last: A semicolon only ends statements. With the comma operator, you can hav... (by LB)
translate this c languange into c++
 
so im only learning c since im fairly new and i would like to translate this code to c++ so that i c...
[12 replies] Last: The first loop does not store the temp anywhere. The second loop valu... (by keskiverto)
What is NEW operator? (for what use is it)
 
for what use is that new operator? why should you use statement with new .. when you can declare ...
[2 replies] Last: http://www.cplusplus.com/reference/new/ Here (by Jamerack)
by Gasper
I need help with my homework
 
User writes 2 numbers. How much is the whole part of the number and how much is the decimal part of ...
[1 reply] : The following code may be sufficient for your purposes: #include <io... (by MagicalForestElf)
by iluv41
Guessing game question
 
I'm writing a program where the user has 6 chances to guess a random number, but I cannot think of a...
[3 replies] Last: its a bit like the gumball game that alot of begginers try to use: ... (by Gabriels727)
Could someone explain me map<string,int>
 
Hello could someone explain me this particular codes as i dont understand them quite right: map...
[4 replies] Last: Thank you guys you are the best. I have found all that on www.cplusplu... (by lolek4551)
Passing arrays as an argument to a function
 
I thought I was done with this code, but when I try to compile it it says invalid conversion from 'i...
[3 replies] Last: You should go back and read more about arrays, because you are making ... (by booradley60)
A program likes Bejeweled game
 
Write your question here. Oh, hi, I have a problem: Example, I have a matrix: B B C E D D E B A ...
[12 replies] Last: If the algorithm finds 2 duplicates, it would only remove the second o... (by Jamerack)
overloaded ostream and binary arithmetic operators-template
 
I am having difficulty with my template version of an overloaded ostream and binary arithmetic opera...
[no replies]
save in a mkdir
 
Write your question here.So how would i make it to where i save say a txt file in a folder that is c...
[7 replies] Last: > Windows uses backslash character as separator between files forward ... (by ne555)
by kixx94
I need help with this homework
 
I am completely new to programming and I need help with my homework assingment, I have to give it in...
[no replies]
Things I should know before learning OpenGL?
 
Hi everybody my name is Scott, I am new to this website and also fairly new to Programming C++. I ha...
[no replies]
Pages: 1... 5657585960... 120
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.