General C++ Programming (Page 30)

Tile Replacement and Collisions in SDL
 
Hello people, I'm quite new to SDL and I need this game to be finished VERY soon for the TSA state c...
[1 reply] : void Tile::show() { //If the tile is on screen if( check_col... (by fine858)
the sieve of erastosthenes
 
Can someone help me get this code to run PLEASE? #include <iostream> using namespace std; ...
[8 replies] Last: @ kbw THANK YOU SO MUCH FOR YOUR HELP! I have fixed everything. (by dadapro)
by IsaacD
The size of my disk?
 
I'm trying to write a program that without caring about the file system writes bytes to a disk. Here...
[5 replies] Last: hmmm that might be a good idea. it might be worth it to see the source (by Little Bobby Tables)
Problems with Doubly Linked List
 
Hello, im new to this forum and C++. I am doing c++ program to read coordinates from text file into ...
[2 replies] Last: thank you for your respond. I sorted problem out (by marijus5012)
Making a class 3D vector on C++.
 
I want to define a class Vector, representing a 3D vector with the following methods: display - to ...
[2 replies] Last: First of all, do you understand what a vector is? To put it simply, it... (by NT3)
by KQ5
Error: expression must have (pointer-to-) function type)
 
On line 7 of my code I declared a constant in the global scope called pi. I then later tried to use...
[2 replies] Last: Thank you (by KQ5)
output numbers from a set of list that weren't used
 
This is one part of my program, I need a loop that checks through the input(specifically the agent n...
[1 reply] : _ indent your code _ http://www.parashift.com/c++-faq/istream-and-eof.... (by ne555)
by Wake
ifstream file path
 
Hi, need some help, I am using the code below to read a file, but I can not enter the file pat...
[3 replies] Last: thanks for help! I use \\ (by Wake)
What do "new int[2][3]" ?
 
What do and what data type return this expresion ? new int I have tried this: in...
[8 replies] Last: Here is the solution: // m is a matrix of 2 dimensions whose dimens... (by DavidIRE)
by AceK
Program to run my webcam
 
Hi everyone, I want to write a program that is going to turn on my webcam and then display whatever ...
[1 reply] : This is kind of complicated for a forum. You could check out OpenCV an... (by ac517)
by Kap
segmentation fault.memory error when looping over the function
 
Dear all, It is been several days that I am stucked with the segmentation error and I do not know a...
[4 replies] Last: OK, double* p is a local variable to the solvep function. So every tim... (by ac517)
by CRooky
Sales Exercise 02 any ideas..?
 
Hey everyone im working on this assignment for my c++ intro class what i need to do is..start my pro...
[1 reply] : The compiler isn't finding a definition for lastName. // Step #11 ... (by wildblue)
Weather analysis assignment
 
I am having a huge problem. I've been assigned an assignment where I am supposed to ... 1. Declare t...
[1 reply] : Reading/writing your files: http://www.cplusplus.com/doc/tutorial/file... (by mutexe)
shifting bits away and shifting bits back
 
Value x is a 32-bit unsigned integer 3: 00000000000000000000000000000011 If we use bitwise-shi...
[2 replies] Last: In other words, when we perform right shift which clips away the leas... (by mutexe)
2D array + switch statement to move char
 
Hi guys just making typical console game where hero moves with w a s d. However, in my code, whil...
[no replies]
WORST Case Time Complexity
 
I am finding the Worst Case time complexity for Bubble Sort, Selection Sort, Insertion Sort, Linear...
[1 reply] : http://www.cplusplus.com/forum/beginner/126196/ Yes insertion sort wi... (by Smac89)
by cpd
if statements not working?
 
I'm trying to figure out how I'm supposed to include the string into the if statement. In this, my l...
[3 replies] Last: Here's the pseudo-code: 1.) Accept user input number 2.) Does the use... (by xismn)
signness of 0
 
Is it really needed to specify 0 as an unsigned integer? I mean 0 is always 0 regardless it's signed...
[5 replies] Last: I think in that particular expression, the signedness of 0 is irreleva... (by helios)
Prime Number Long way
 
So let's say I have couple numbers 10 13 22 99 10000 345 5834 5567 how i test if they are p...
[1 reply] : For large numbers that would require too much memory for all the numbe... (by giblit)
Multidimensional Matrix
 
Hi everyone, First of all, sorry my english (I am spanish and I don't know writing english very wel...
[7 replies] Last: I have been seeying the boost library docs from your link but there g... (by Cubbi)
Pages: 1... 2829303132... 57
  Archived months: [feb2014]

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