General C++ Programming - December 2013 (Page 20)

SDL game dev support
 
Hey guys, I have been trying SDL 2.0 lately and I have decided to make a Tetris game as my 1st game. I have coded to load a square and move around while it i...
[no replies]
Segmentation fault (core dumped) after program has ran
 
I've ran the code in both Windows and Unix. When I ran the program in Unix I got "Segmentation fault (core dumped)". After googling this I've read that it could...
[3 replies] Last: Thanks for the reply. I managed to find the workaround with your respo... (by AngryBenko)
by rev246
Function, Array, and Loop help for final?
 
Hello all. I need help with this program for my C++ final due tonight. I am able to do the functions, loops, and arrays just fine. When I enter the tree informa...
[1 reply] : that is because you are reading three values in same variable cin>>in... (by codewalker)
by aloo12
cartesian coordinates
 
guys i need help with defining cartesian coordinates in c++ for a rectangle....
[3 replies] Last: struct 3dPoint { int x, int y; int z; 3dPoint() : x... (by codewalker)
Getting core dump
 
Hi, I am executing following code and getting coredump, can anybody expalin where is the problem... #include <stdio.h> #include <string.h> #include <std...
[5 replies] Last: Hi Glandy, Its very very good explanation and very much helpful. Tha... (by Ajaycpp)
bool function
 
how to use bool to identified a identity matrix
[7 replies] Last: sorry,i solve it already.Thank you,is syntax error. (by Chin Pei Ying)
How can I make this code runnable?
 
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int players; int input; cout << "Welcome to the Fis...
[1 reply] : Post the code using code tags. to start, the end brace of the else sh... (by codewalker)
difference between int a=123 and int a=(123)
 
Hi, Please explain me what is the difference between int a=123; int a=(123); Please explain all possible differeances like memory management or anyothe...
[7 replies] Last: Hi, Thanks to all for giving very very good explanation. (by Ajaycpp)
c++ array max.
 
im trying to write a program that reads an array on non negative numbers and outputs the orginal array, then finds the max/2 and than out puts an modfied array ...
[1 reply] : You are on right track, but you are not filling the numbers in the arr... (by codewalker)
What do I need to do to make this game?
 
I'm trying to make a game that is very similar to the zombie dice game. There are 12 dice. 6 green, 4 yellow, 2 red. The green dice consist of 3 fish, 2 hoo...
[no replies]
by xxsjxx
keep getting these 4 errors.. leaning towards the simplify function
 
//.cppfile- #include <iostream> #include <iomanip> #include <cstdlib> #include "DollarsCents.h" using namespace std; DollarsCents::DollarsCents(int numD...
[3 replies] Last: Fix these lines DollarsCents(int =0, int =0); void simplify(); ... (by codewalker)
Could someone please help?
 
I am receving these error messages when I try to compile. 1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other...
[2 replies] Last: The CPP files where GameObject::clean and player::clean are implemente... (by codewalker)
C++ Input data from file, specific format
 
So this is my first time posting a question here so please bear with me. I am studying computer science for my bachelors, and I would like some help. We have cr...
[7 replies] Last: > Or are you putting there as a matter of practice? As a matter of ha... (by JLBorges)
Trying to debug cpp files in Cygwin
 
Assuming I installed the packages in this http://cs.calvin.edu/curriculum/cs/112/resources/installingEclipse/cygwin/ page, what would be the command to build an...
[no replies]
What am I missing to complete this program
 
http://i1209.photobucket.com/albums/cc397/DeathLigerX/Lab8.png I just want an idea of what I am doing wrong so I can finish this up today Edited Dec.6 4:28PM ES...
[8 replies] Last: Hey for all functions in declaration line is of char type whereas... (by upX86)
Determining index to place new value
 
Hello. I need help with function to determine where to place new element in sorted array. I want to use binary search to find index where element should be plac...
[3 replies] Last: Well, post the best code you have (the stuff you think or see working ... (by Duthomhas)
Trying to create a copy constructor
 
I need help with a copy constructor. I'm not really understanding them. I have a base class called Vehicle and a derived class called Car. class Vehicle {...
[6 replies] Last: I understand now! Thanks a lot. (by brownjas)
How to cout Boolean result in words?
 
So I want to go from having 0 or 1 to having words like false or true. I did it with an if statement earlier today, but I had to get rid of the whole bool thing...
[1 reply] : std::boolalpha http://www.cplusplus.com/reference/ios/boolalpha/?kw=bo... (by giblit)
C++ end of file error?
 
Hello, this is the error I am receiving. My program is crashing on the default data: > terminate called after throwing an instance of 'std::out_of_range' ...
[4 replies] Last: Yeah I don't know how to fix that while loop. (by Isolated)
Classes (base point.h and derived circle.h)
 
Programming Logic II Project #7 1. Given the base class header file point.h // Point Class Header File // Filename: point.h #ifndef POINT_H #define ...
[4 replies] Last: AHH! I knew it would be something small. I feel like an uber-dork now.... (by Chaemea)
December 2013 Pages: 1... 1819202122... 37
  Archived months: [nov2013] [jan2014]

This is an archived page. To post a new message, go to the current page.