Beginners (Page 82)

by esolve
multiple definition of variables in global.h
I have some variables which are used in different source files. so I create a global.h and put all v...
[4 replies] Last: if I should not use global variables, then what should I do? Make th... (by jlb)
Multiplication table
Write a program that displays a multiplication table. Ask the user for the ending number then displa...
[5 replies] Last: If you're truly lost, and can't even figure out how to start, here goe... (by Michael5)
undefined reference issue
I am in a pickle. I keep getting an undefined reference error in any member function or friend that...
[4 replies] Last: return a reference with the operator + . add the member to this memb... (by dhayden)
const vs. #define
I was wondering, because of the difference between defining "const" and setting "#define". Just tryi...
[17 replies] Last: Your code on line 1 is invalid. (by LB)
Text output not in rows
Hi guys, I'm trying to print a table of data to a text file, but all the data is printing on the sam...
[4 replies] Last: Thanks alot that was very useful (by footpot)
Reading a file and outputting to new file
What I am wanting to do is take the data from the third and fourth columns of this document: 1 C...
[3 replies] Last: stupid me that uses stdin/stdout the_input = open('input.txt', 'r') ... (by ne555)
Not sure if i nailed it
Last time i needed help this was the best way i got help from, there is so many smart guys in here, ...
[1 reply] : [quote=jhsyber]What am i doing wrong? Please explain what makes you th... (by LB)
Visual Studio (C): Debug Assertion failed; .exe has triggered a breakpoint
Hello. I am doing an assignment for my Intro to Programming class. Our instructor provided us with t...
[9 replies] Last: I get compile errors with what you posted. Lines 10-14 all need to be ... (by AbstractionAnon)
Making a multiplication chart/table
Write a program that displays a multiplication table. Ask the user for the ending number then displ...
[3 replies] Last: I'll give that a go, and also thank you for the tip! Didn't mean to ma... (by ianheinze)
I'm having a problem with my HW "Dice Roll"
I'm supposed to write a code using an array in order to tally up how many times each face of the die...
[13 replies] Last: You've mentioned it only once. Sorry. You did have multiple messag... (by AbstractionAnon)
by C0UG3R
C++ Class Constant Defining
I'm writing a program for a class where I have to make a stack and do some stuff with it. I got it a...
[4 replies] Last: as long it is not static you can. (by Ericool)
by Dazzer
General question about operator overloading
Hi folks, At the moment I'm learning about operator overloading. I think i have more or less g...
[4 replies] Last: Hi, Surely you can figure that out ? Given a function add (a, b) w... (by TheIdeasMan)
Inventory Class returning a negative inventory
Problem; Item Number (identification), Quantity, and Cost of item are all displaying large negative ...
[9 replies] Last: I know I need to call the setTotCost function, this is why the TotCos... (by cire)
C++ ring Buffer
I am wondering if anyone have some tips to how I can make a ring buffer in c++. It's need to be able...
[9 replies] Last: > ring_buffer( std::size_t cap ) : buffer(cap) {} Initialise the bu... (by JLBorges)
how to end the loop by input a string to double
This is my homework. I am asked to write a program that let user input several numbers and then calc...
[1 reply] : You're making things way more complicated than it needs to be. The onl... (by integralfx)
C++ primers Ex 1.11
Exercise 1.11: Write a program that prompts the user for two integers. Print each number in the ran...
[6 replies] Last: Don't miss the next gripping episode! (by kemort)
Uninitialized Local Variable Error
Problem; I'm getting an "Uninitialized Local Variable" error from VS. My problem before was the prog...
[1 reply] : void setItemNumber(int) { ItemNumber = ItemNumber; } This just se... (by integralfx)
Really confused
For my C++ class Here is what i need to do i have this so far and...
[no replies]
Coin flip simulator repeating until heads appears
So I'm writing a program that pays out an amount 2 n where n is the number of the toss in which the...
[8 replies] Last: This topic might help. (by integralfx)
Declaration inside while
Why I can't declare variable inside while loop like if or for loops? int main() { //sum = 2+4...
[6 replies] Last: You can use a declaration there but it appears to me it will not be ... (by kemort)
Pages: 1... 8081828384... 106
  Archived months: [sep2015]

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