
please wait
by FighterCoder
More LNK Errors
|
I recently got more LNK errors when compiling my code: Error 3 error LNK2005: "class Shop s" (?s@@3VShop@@A) already defined in basic.obj C:\Users\Dylan\Docu... |
May 29, 2015 at 9:01pm
[13 replies] Last: Yep that worked, cheers man :) I appreciate it a lot. (by FighterCoder)
|
by Carson2006
Consistant portable pausing of the console
|
Hello all, I am trying to stop using the system("pause") command to pause the console, since I understand that it conjures demons, and will get me kicked ou... |
May 29, 2015 at 9:01pm
[5 replies] Last: Yes. What istream::sync() does is makes sure that the input stream ... (by Duthomhas)
|
by helloannieCx
Please Review My Number Guessing Program
|
Hi, I just recently started learning C++, and the objective of my last project was to have my program asks the user to think of a number then it would attempt t... |
May 29, 2015 at 8:55pm
[3 replies] Last: Well, the MultInputCheck looks like a good idea. It would be even bett... (by andywestken)
|
by ctaylor4874
If statements not executing correctly
|
My first If statement always executes in the studentFeesCalc(char typeOfStudent, int hoursTaken) function, even when I enter a number that is not true in the st... |
May 29, 2015 at 7:40pm
[5 replies] Last: Gamer2015 that makes a lot of sense, and thank you for breaking it dow... (by ctaylor4874)
|
Difference between postfix and prefix increments? |
I always seem to get confuse what is the difference between postfix increments and prefix and how to use them. To be more specifically when do you know you need... |
May 29, 2015 at 7:18pm
[7 replies] Last: Ok I understand now. Thank you for this. Yeah, I thought it did that,... (by closed account yR9wb7Xj)
|
by rahul820
Complex nUmber
|
I dont have any idea in complex number??How can i declare complex number ??how can i take input through complex number??how can i declare complex number through... |
May 29, 2015 at 7:01pm
[1 reply] : Did you read the complex reference page? http://www.cplusplus.com/refe... (by AbstractionAnon)
|
by Macpon7
Feedback on my first "real" program
|
Hello! I started reading the C++ tutorials on this site a few days ago and finally made it to functions. As a practice exercise I decided to write a simple tex... |
May 29, 2015 at 5:22pm
[3 replies] Last: Meanwhile... I think the code looks good. A few minor points. 1. in... (by andywestken)
|
singly linked list |
i just started reading about linked list and doing it from scratch int main() { struct node { std::string name; node *next; }; node ... |
May 29, 2015 at 4:41pm
[8 replies] Last: That code works fine, I don't think it does undefined behaviour. (by shadowmouse)
|
by Slashdash
If statement
|
Greetings. I'm having a problem with an if statement, and I was wondering if you could help me out. if ( xTest + 11 == 11 && yTest == 4 || yTest == 6 || yTes... |
May 29, 2015 at 4:04pm
[4 replies] Last: if(xTest==0 && (yTest==4||yTest==6||yTest==8)) (by shadowmouse)
|
by spsrijan
Solve Sudoku using Backtracking
|
I'm trying to write a program that solve a given sudoku puzzle after pressing enter. But the program terminated after pressing enter without doing anything. I t... |
May 29, 2015 at 3:57pm
[1 reply] : I think there may be an error in line 119 ... The problem here is th... (by andywestken)
|
by ttuethao
Abstract base class
|
Hi! I am writing a program and recent encountered a problem with the concept of "abstract class". In a simplified form, my problem is: I have a function f(x), w... |
May 29, 2015 at 3:45pm
[4 replies] Last: Hmm, OK. I found that virtual function should not be declared as "inli... (by ttuethao)
|
by megatron 0
Generic Programming: How to make things independent?
|
I've been thinking a lot about generic programming lately and how it can benefit me. Though I have came across something I'm not sure of. Either I am doing it w... |
May 29, 2015 at 3:17pm
[4 replies] Last: I was suggesting maybe providing an abstract base class, from which t... (by megatron 0)
|
by jhykima
Character Arrays
|
Hello! I am new to C++ and I am having a difficult time understanding why the following code is not compiling. It says I'm doing an invalid conversion. I'm not ... |
May 29, 2015 at 2:33pm
[2 replies] Last: ... oh my goodness. I'm so dumb. Thank you. (by jhykima)
|
by KANwa1987
Array - Diagonal
|
Hello all, I have a home assignment to write a short C++ program that would display an array of n columns and lines (square array) whose values would be dist... |
May 29, 2015 at 1:58pm
[4 replies] Last: I'd say it is the smaller one of row and column-number. Thank you!... (by KANwa1987)
|
by sajis997
getline function and get rid of escape characters
|
Hello forum I am reading line from a file using getline and I want to trim any escape characters from the string read by getline. Any hint on that ? Thank... |
May 29, 2015 at 1:16pm
[3 replies] Last: getting rid of them is not the same as trimming... to trim characters ... (by Gamer2015)
|
by FighterCoder
Write a file
|
In my game i would like to have a function that writes the balance of the player to a file, i have already made a file and got a function to read it and put it ... |
May 29, 2015 at 11:25am
[8 replies] Last: Okay cheers (by FighterCoder)
|
by user1994
Finding the non-zero smallest integer in anumber
|
Hi.! I'm a beginner .. I encountered a question to find the smallest non-zero digit in a number.. This is my work till now.. I am unable to apply syntax to my l... |
May 29, 2015 at 11:17am
[1 reply] : nah, it doesn't work if the number has a 0 in it, you should check tha... (by Gamer2015)
|
by lucasf100
Help for a little program
|
I've got one day to do this and I dont know what to do ..... Here is the Exercice : Create a class “School”, which contains 12 numbers – the number of... |
May 29, 2015 at 10:36am
[1 reply] : http://www.cplusplus.com/doc/tutorial/classes/ that should start you o... (by mutexe)
|
by PSYCHAMERON
Array-pointer issue
|
Hello, everyone. I need your help. Consider the following fragment of code: int *nobody; nobody = new int(420); int **p; p = &nobody; // ... |
May 29, 2015 at 8:53am
[9 replies] Last: Thanks to everybody. The more I learn, the more I realize how little... (by PSYCHAMERON)
|
by robingumbuza
Output VS 2003
|
You see, i am making a FlyFF private server, but since it concerns c++ i am making a question here I successfully compiled all the needed files to be compil... |
May 29, 2015 at 8:36am
[1 reply] : What has this to do with C++? Google showed this: https://www.facebo... (by coder777)
|