General C++ Programming - November 2011 (Page 30)

Game engine for 2d game
 
Hello, I'm coding a platform-style possible puzzle game with some other elements to it in C++. I started using SFML but I'm thinking that there might be some g...
[no replies]
by GAD
graphics.h
 
when I write any code using a functin in <garphics.h> ,compiler givs o error. But,following error occurs on user screen:EGAVGA.BGI file not found by Graphics ...
[4 replies] Last: Don't forget to mark as answer (by Dinesh subedi)
by kdog04
min. array with function..so close!
 
l; } system("pause"); return 0; }
[6 replies] Last: Some of your variable names aren't right. Your compiler should point t... (by mzimmers)
Very basic question please help !
 
#include <iostream> using namespace std; int main() { int poeni; cout << "Points: "; cin >> poeni; switch(poeni) { case:poeni<20 case:poeni>40 co...
[2 replies] Last: Put ';' after case statement ()ends. Also give case label before ':'.... (by GAD)
How to make certain numbers equal certain strings
 
I need this understanding because I am doing a slot machine exercise, and for whatever random number between 0 and 3. How would I code it so that if a certain n...
[5 replies] Last: We know nothing about the "Image" type. From the OPs posts, I presume ... (by Duthomhas)
C# DLL in C++, help please
 
hi, i having some problem here. I have a DLL written in C# but I need to re-write it in C++ using visual studio 2005. I have no C++ knowledge..o.O so could some...
[no replies]
by borok
Calculator
 
i'm doing a program, having some issues with it. I did a previous calculator program, and now i have to use it with functions. #include <iostream> #inclu...
[12 replies] Last: A void function cannot return anything so you wanna change the variabl... (by cullenT)
by razia
stack
 
I wanna use stack for postfix expressions any one give me the source code for using postfix expressions in stack
[3 replies] Last: oh sorry I thought you are well known about stack.In above code templa... (by Dinesh subedi)
by bogdan
DAG to Strong-Connected Graph
 
Hello everyone! Here is my problem: I have a directed acyclic graph and I want a good way to find out how many and what are the edges I have to add for crea...
[no replies]
minimmum spanning tree
 
implementation of minimum spanning tree using binary heap in c or c++???????????please write code in c or c++ ...
[1 reply] : I've created code for you which you can use as a template. class B... (by shacktar)
Please Help Having issues with pseudocode
 
Now i am not asking anyone to "do my homework" I need help understanding what I am doing wrong. I am unavailable to get with the teacher as its an online class...
[4 replies] Last: A-1-3-074) DECLARE local string variable named defaultChargeLiteral ... (by dpsht316)
File I/O to linked list
 
Hi everyone!! Can anyone help me with my problem? I have a assignment to input values to a singly linked list from a file and than output it. But I when I ru...
[4 replies] Last: I doubt that! sometimes complete solutions are fare better easier to ... (by Karajic)
Vector Problem By Pointers
 
hi every one. i have a struct which contains a vector<int>. when i define a pointer of that struct and try to add elements into that vector. i get this excepti...
[7 replies] Last: i should've used "new" instead of "malloc" *sigh* neither. MyStruct... (by ne555)
Problem with my Return Functions
 
So right now I have two big problems. I am trying to create a slot machine. There are 4 images I can have. Obviously if all 3 images are the same, I win, if the...
[1 reply] : The code is quite long and without [cоde] tags. But one problem with... (by tfityo)
by borok
binary number
 
how can i check if the number that is entered is a binary number? i tried with code.find(), and code.find_first_of()... if the user input a string that contai...
[11 replies] Last: #include <iostream> #include <string> using namespace std; i... (by borok)
Problem with my Code
 
The goal of this code is for the user to input the Book, chapter and verse of the bible and my program will search an input file and return the verse to the use...
[3 replies] Last: The problem is that you get no output and I get the output above. Once... (by Moschops)
Having problem with STACK
 
i know this question is very simple but i dont know how to write an easy C++ programm using Stack,i wll very thank full if somebody help me my question : writ...
[7 replies] Last: gimbilak in this programm i cant undrestand where we reversed the int... (by guitarherosix)
I need help with a program
 
I am stuck at trying to loop information of a file that includes cities and their latitude and longitude into a structure array. My structure is called Place an...
[1 reply] : You should declare your structs earlier than the loop. So move Place ... (by guitarherosix)
Help with template class
 
Hello all, I have written the following templet class, but I am having trouble getting the + overloader to work properly. Can someone please give me some assis...
[5 replies] Last: Thanks for good topic ! (by ledien)
Whats Wrong with my code?
 
#include<iostream> #include<windows.h> using namespace std; int main (void) { int password = 6; cout << "Please Enter Password" << endl; ci...
[10 replies] Last: Interesting. I will look into it thank you! (by redacted178923)
November 2011 Pages: 1... 2829303132... 47
  Archived months: [oct2011] [dec2011]

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