Beginners (Page 71)

Linked list editing using remove and insert
 
I need to take the first linked list, and use the insert and remove functions to turn it into the se...
[1 reply] : Whose idea is this remove()? // List has A->B->C->D->E remove( D, B )... (by keskiverto)
Complete scrub: Issues with Class field with Pointer
 
I am doing a project for school and no I am not trying to cheat. I am genuinely trying to learn prog...
[12 replies] Last: What errors? There is nothing syntactically wrong in that block, exce... (by keskiverto)
average of an array is not working
 
What's wrong with this code? float cal , total; int i,prom; for(i=0;i<5;i++)...
[3 replies] Last: well.. i solved... it was just: double calif , total=0, aver=0; im... (by dualdark)
Infinite Loop
 
Hi, I am trying to write a program but I am getting an infinite loop and have no idea why, we just s...
[6 replies] Last: I think the last do-while loop is causing your problems. It you answer... (by MagicalForestElf)
Subtraction with #define
 
Problem: http://www.codechef.com/problems/TLG I have written a solution to solve the problem in the ...
[9 replies] Last: Yesterday, I realized that I had read the problem without regard. The ... (by dleanjeanz)
intro to programming course
 
i am currently a junior in high school, and this summer i will be taking an american sign language c...
[3 replies] Last: COMSC-110 Introduction to Programming 4 units SC • 54 hours lecture... (by Antone333)
Game Engine
 
So I'm using Allegro 5 to write a game. I wanted to know what exactly what goes into the Engine itse...
[11 replies] Last: If you want to learn the ins and outs of a game engine, I'd say wait t... (by TrevorHart)
Map and word count help.
 
I am writing a program to search through a .txt file and count how many times each word occurs in th...
[2 replies] Last: > It counts words but will create separate counts for eg.) Your, Your'... (by JLBorges)
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)
Pages: 1... 6970717273... 133
  Archived months: [feb2014]

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