General C++ Programming - October 2011 (Page 34)

another question about sdl.
 
i do realise that i have asked a way to many questions lately, but thats in a way how i learned so please bear with me XD. this is more of a question than a ...
[7 replies] Last: nevermind, it worked on my laptop so the problem was caused by my comp... (by even821)
Function Pointer
 
I want to use some functions as arguments for another function. I found out that it can be done using function pointers. But the pointer must have the same typ...
[6 replies] Last: Well yes it can be done that way! Can't Imagine why didn't this come t... (by Nisheeth)
Header files are not compiling
 
Hi there. I'm having a problem with my windows project, because it the main.cpp is not compiling with the rest of the program.. I'll try to explain. I'v...
[3 replies] Last: Could it be that the file that you have open in the IDE is not the sam... (by closed account 1vRz3TCk)
The Coding for a guest House
 
Hi Guys, I am new to programming at a Local Technikon.I was trying to test my basic programming skills but could not go far. I was attempting the question Bello...
[1 reply] : What do you have already? (If you post code: use the code tags!) We... (by Gaminic)
unordered_map sort problem
 
Hello, I've come to the situation i need to sort unordered map. Here's the example code: class CGridSortFunc { public: CGridSortFunc(ROWCOL nRowCol)...
[2 replies] Last: You may be right. At that case i'll use map instead or make a class wi... (by a399235m2)
by bilyed
Executing an exe as extern process
 
Hello Everybody, I have an old program in c and I would like to modify in order to execute a binary file. The binary that will be called takes a long time of...
[2 replies] Last: thank you hamsterman... I'm gonna test it (by bilyed)
sdl for visual studio 2010?
 
yesterday i tried to learn sdl, but i couldnt seem to write any programs that didnt generate some sort of errors. so i hink i might have installed the wrong ver...
[1 reply] : http://www.libsdl.org/release/SDL-devel-1.2.14-VC8.zip You might have... (by helios)
Sorting a file with names
 
Hey guys what im trying to accomplish is to sort an array of names and scores from a file with the first line being a number of how many names and scores follow...
[1 reply] : Can you please give an example input and how it should be sorted? It's... (by Serious Sam)
by emc2pp
getline keeps end of line character
 
Hello, I am reaaly having trouble with getline, it seems that it is reading the eol '\r' character and storing it in the string. if the first line of test.txt i...
[8 replies] Last: mik2718 and Duoas, you are right I didnt pay attantion, I was creatin... (by emc2pp)
Letter guessing game, errors of the code that i do not understand
 
//Guesses letter game #define _CRT_SECURE_NO_DEPRECATE #include <stdio.h> #include <ctype.h> #define MAX_GUESSES 6 //function prototypes int main...
[10 replies] Last: yes i believe i do want to do that. This is all play game is: //this ... (by xokelz04)
Any clue why my delete function isnt working?
 
#include <iostream> #include <ctime> #include <cstdlib> #include "SortedList.h" #include "List.h" using namespace std; const int LISTLENGTH = 10000; ...
[1 reply] : I'm going to go out on a limb and say something is wrong with your Lis... (by Disch)
Undefined reference to SortedList::SortedList()
 
This is my main file, it keeps giving me these errors about how i have an undefined reference to SortedList and its member functions. #include <iostream> #...
[1 reply] : This means the linker can't find the bodies for those functions. Make... (by Disch)
by gladi
help with functions explaining
 
hi guys i would like to get some brief explanation for these functions. I don't have a good vision on this code. so kindly guys can please..please :) give some ...
[4 replies] Last: please i need some help (by gladi)
by kidman
Class dependencies in unit testing
 
Hi I am trying to test a class that calls methods in other classes. I need to isolate this class from the other ones and let the method being called return c...
[1 reply] : Simple: Exclude your original HelperClass from your project and add a... (by webJose)
by Pyrius
Amount of times a program is used?
 
I'm trying to make a program that uses file I/O to count the amount of times the program is used (ie the first time it is run it prints out that it was run once...
[2 replies] Last: Thanks a lot! The program runs perfectly now. (by Pyrius)
by dspain
sqlite blob fields in c++ 5.5.1
 
im having trouble displaying a blob field in a console game i made. here is the function: int look(void) /* inspect current room */ { short lo...
[no replies]
Code not compiling properly
 
hi guys, i am supposed to write a blackjack program for school, and below is what i have so far. The program is not complete yet, but when i try compiling it (w...
[4 replies] Last: thanks for the feedback, i scrapped this, and made the program with co... (by heatedcrows)
Mastermind with coloured 4 pegs
 
hello guys . I am new to c++ . so can someone send me a code for mastermind game with 4 coloured pegs . if anyone has . please
[7 replies] Last: at least they asked. And asking is for free ;) (by Chriscpp)
Basic Pipes
 
Trying to get basic pipes to work. I need a pipe for each child process that will take the STD_ERROR to be saved and read at the end by the parent process in se...
[no replies]
Writing carriage returns to files
 
How can I do as the title says; everything that's written to the file appears on one line. Also how can I give the file I'm opening a user-defined file name ...
[11 replies] Last: Mohammed Abdul don't edit your post to another question, post a new ... (by Chriscpp)
October 2011 Pages: 1... 3233343536
  Archived months: [sep2011] [nov2011]

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