Beginners (Page 89)

Beginner on Classes!
 
!!Can anyone help me out with this question so i can get started in writing a program for it... and ...
[11 replies] Last: Line 22: You're still not initializing feet. Line 29: Why did you... (by AbstractionAnon)
why put a reference in an "operator" when overloading an operand
 
Hello. I watched this lesson about function overloading(about increments) and I'm just wondering why...
[2 replies] Last: First, know that what you have there is a very bad idea. I'll get to ... (by NT3)
by Ardaos
how to use getline() properly and how to use strcpy with a string a const char*
 
I get an error when I try to use cin.getline(line). Also, I can get strcpy(line, tempString) to work...
[7 replies] Last: There are several compilation errors in the above code. Line 14 o... (by Chervil)
I am receiving a run time error
 
I am working on a homework problem and I am receiving a runtime check failure #3: the variable selec...
[7 replies] Last: hackmattr, would I just put case 0: Sign = aries; cout <<"Aries\n"; ... (by tangren17)
Find non-numbers in a file
 
So I have an input file like: "1 2 3 4 A B C D" The vector contains only the numerical values ...
[1 reply] : You may add something like this after the while loop: if(!inputFile.eo... (by coder777)
Loop test
 
Why the program exit before I can choose the mathematical operation? #include <iostream> usin...
[8 replies] Last: nice one :) sorry for bothering you You aren't bothering me :)... (by mutexe)
Why is the output this? Please help, hurry..
 
why is the output = 9? #include<iostream> #include<conio.h> using namespace std; int main() {...
[4 replies] Last: is it because "012345678" are 9 digits so i=9? No. Well, not exactl... (by mutexe)
Hmm Cant get this right!!
 
Hey i am new to use C++... This is one part of my 200 line calculator and the problem is the Name.....
[1 reply] : Don't mix gets with std::cin . Instead use a simple std::string . ... (by abhishekm71)
Why isn't this string if statement working?
 
I could've sworn iv'e done this a million times #include <iostream> #include <string> int m...
[5 replies] Last: Just kidding (by turtlesavage)
by asd182
pic32 printer programming
 
Hello, I am a newbie in pic microcontrollers programming. I've got SnadPIC pic32 starter kit with p...
[no replies]
Can someone explain this to me?
 
Write your question here. I was looking up code to be able to extract individual integers off a s...
[1 reply] : Modulus 10 will give you the rightmost digit. Dividing the number by 1... (by Peter87)
by Mahkus
No input files error??
 
Why am I getting a no input file error here? Shouldn't the code input values for the double linked l...
[1 reply] : Why am I getting a no input file error here? What does that mean? Li... (by coder777)
OOP
 
what is better in these two code in terms of oop http://codeviewer.org/view/code:43d7 or http:...
[2 replies] Last: so youre saying in the first one that it is like a normal function and... (by Lorence30)
How can I add intergers from a file and assign the sum to a variable in this program
 
Hello, I was wondering if anyone could help me with a small problem that I have. I am trying to writ...
[1 reply] : 1. while -loop http://www.cplusplus.com/doc/tutorial/control/ 2. How ... (by keskiverto)
Error: expected ';' before "cost"
 
I'm writing the code for a program to calculate the total cost of a meal at a restaurant and I'm pre...
[6 replies] Last: Apologies for my unnecesary duplication. (by kemort)
Fixing an error involving calling on a Class
 
Hey guys, This is my first time posting here so hopefully I'll be understandable. I'm taking CS 1...
[4 replies] Last: You are right LendraDwi. It compiles that way. I couldn't figure out h... (by patrickweiss52)
by Nabour
How can I make my code repeat?
 
I have a Homework assignment due. I have it mostly done but i am drawing a blank on how to get it to...
[2 replies] Last: Try this while(true){ //your code } or do{ //your code }whil... (by LendraDwi)
Take percentage of each input as it is being input
 
Hello, here is my version of Pseudocode for what I am trying to do, which I believe is quite simple ...
[1 reply] : Use float or double instead of int (by LendraDwi)
'Else' without a previous 'if"
 
I am trying to make a program that asks user input of a number, if it is prime the program will save...
[7 replies] Last: Thank you. I appreciate your taking the time to help me better underst... (by MissPrimrose)
functions
 
string print(string id){ return id; } What is the outcome of statement cout<< print(string id...
[1 reply] : There is no output because there is a syntax error in the statement c... (by LB)
Pages: 1... 8788899091... 103
  Archived months: [aug2014]

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