
please wait
by cm123
having trouble, how would i loop this?
|
i'm having some trouble figuring out how to loop this... i would like to loop until the user enters a valid input when validating the inputs. please help!! than... |
Nov 28, 2016 at 11:53am
[1 reply] : 1. Global variables like const double PI should be declared outside ma... (by gunnerfunner)
|
by ArmenHeat
Making a extremely simple Tile game, tearing my hair out
|
Hi, I've been trying to make a tile game using C++ for the past week. I thought that I could follow a game making tutorial using SDL2 on youtube, cannibalize... |
Nov 28, 2016 at 11:19am
[1 reply] : SDL2 should be fine for what you're trying to do. Note that Tutorials ... (by Peter87)
|
by mmgh
debugging segmentation fault with lldb
|
Hello, I wrote an MPI Master-Slave program and sometimes I get segmentation fault on one of the slave nodes. It does not happen all the time. For example if ... |
Nov 28, 2016 at 10:43am
[3 replies] Last: no, i believe it initialises the blocks of RAM where the variables are... (by Jaybob66)
|
by Chief0sa
Grade averaging calculator
|
I am writing this program for a project and I can not get this to run at all. It executes the first cout command and then the command prompt disappears. If any ... |
Nov 28, 2016 at 10:14am
[2 replies] Last: If you are using microsoft visual studio c++ then use system("pause") ... (by bird1234)
|
by ash54546
Printing from a specific point in a string and onwards
|
I'm using C and I was wondering how you could take a text and look for a specific character and start printing only from there. Here's my code. #include... |
Nov 28, 2016 at 10:13am
[2 replies] Last: strchr() will find the character and return a pointer to it. becaus... (by Jaybob66)
|
by oeyeahs61
Printing a stack
|
Hello everyone. I am just started learning c++. In the code here, I try to print the stack, but getting a segmenmentation fault. Any help appreciated, thanks in... |
Nov 28, 2016 at 9:46am
[6 replies] Last: its printing the 4, followed by the address of the cout object, becau... (by Jaybob66)
|
Program Crash When I try to Find a Number in List |
Everything in my code works except for the part when I try to find a number in the list. If I try to find a number that's not there when there's something in t... |
Nov 28, 2016 at 8:02am
[1 reply] : = is assignment operator and == is equality operator. It is ea... (by boost lexical cast)
|
by tweaktwe
Helppp with linked list in C++
|
Hey guys, i need help with my code. The program specification is to create a phone directory using linked list. i've done everything i know but the program sto... |
Nov 28, 2016 at 7:31am
[1 reply] : You never exit the switch instruction. You need to encase your switch ... (by Golden Lizard)
|
by cnewb31
Which line of code is better?
|
Which code of line is better, and why? if ((i + 1) % 3 == 0) or if (i == 2 || i == 5) |
Nov 28, 2016 at 6:26am
[1 reply] : The two are not equivalent, are they? If i is guaranteed to be in ... (by JLBorges)
|
by DesmondLee
Error in Array
|
Enter score of 200 students.Each score is associated with and index number in the list. Calculate and display the average score, highest score and lowest score ... |
Nov 28, 2016 at 4:49am
[6 replies] Last: @Chervil. Thank you very much! that was really a good explanation and ... (by DesmondLee)
|
by LukeShin
Help! database return function
|
hi! I need help I'm not sure what did I do wrong for this program. I get errors on the compiler. please help me! this is the error: Pokemon.cpp: In function 'M... |
Nov 28, 2016 at 4:45am
[1 reply] : Functions attackMove(), healMove() return Move objects but there is no... (by gunnerfunner)
|
by kevinros
tic tac toe board into an array is not perfect!
|
Write your question here. My problem is why the my tictac toe board can´t looks like the original file. The input file is: X O . . . . . X . This is the s... |
Nov 28, 2016 at 4:31am
[no replies]
|
by MistahMoose
Array Segmentation Fault char vs int
|
Hi All, Little bit of a weird thing happening here, Curious why this works: char GameBoard ; for (int i =0; i <= ROWS; i++) { ... |
Nov 28, 2016 at 4:10am
[4 replies] Last: I think that you need to share you output expected to have more idea o... (by kevinros)
|
by kmce
getline function no instance of overload function
|
Solved the problem |
Nov 28, 2016 at 3:32am
[no replies]
|
by anpkcpsc
Reading file to Vector
|
Hello, im having trouble reading the text file to vector. And writing what is read into another file. Can someone help. Thanks. As of now, it only reads the fi... |
Nov 28, 2016 at 3:25am
[8 replies] Last: Thank you. i figured it out. It was the loop. Thank you. (by anpkcpsc)
|
by Xexix322
I honestly don't understand this insanely-fast efficient prime
|
I have come across this piece of code and the second method (Efficient Prime) finds insanely fast, even it is much longer than the first version (Classic Prime)... |
Nov 28, 2016 at 3:19am
[2 replies] Last: Also, I try removing this line : isPrime(N); This allows the ef... (by integralfx)
|
by AchillesO23
Pointer-to-obect error//(int[int]) error
|
My code will compile and put the numbers in order but I getting errors on all the letters that are in the arrays. How do I get rid of this? Thank you. #... |
Nov 28, 2016 at 3:02am
[4 replies] Last: Thank you it worked. xxxxxxxxxxxxxxxxxxxxxxx Actually when I tried it... (by AchillesO23)
|
by noodel
string stuff
|
Hello. So I need to execute a word thats given, but letters have to change their places, 1st letter with 2nd, 3rd one with 4th one... I think I need one more va... |
Nov 28, 2016 at 1:02am
[2 replies] Last: Actually the program will take care of whitespace itself, we don't nee... (by gunnerfunner)
|
by Hanager
C to C++
|
Hello i need to change this line code from c to c++ but i dont know how int main(){ int k = 0; string text; using namespace std; cout<<"text... |
Nov 27, 2016 at 11:12pm
[2 replies] Last: thanks, i use getline(std::istream, &text); (by Hanager)
|
by bluefrog
digit count of number as lambda
|
Is it possible to make the function below into a lambda? int digit_count(int number) { int digits = 0; if (number < 0) digits = 1; // remove this ... |
Nov 27, 2016 at 11:11pm
[1 reply] : As far as I know, you can turn pretty much any function into a lambda.... (by integralfx)
|