General C++ Programming - April 2015 (Page 10)

cross reference problem
 
I cant get the following code compiled. The following code is an abstraction of the problem I met in my development. How do you usually solve this kind of probl...
[2 replies] Last: Files cannot inlucde each other. In test1.h it is completely unnecessa... (by coder777)
Literature on performance of C++ algorithms
 
Hey guys. I've been on a programming competition last week, and I scored 5th place in my city, which is disappointing for me since I worked hard and REALLY wan...
[1 reply] : And how can even know that my code will work with 100000 inputs You t... (by kbw)
/help please
 
//can someone help me solve this question, i don't understand the code and what is is needed from me? I have a test coming up and id like to understand, Thank y...
[1 reply] : Q) Identify where the vulnerabilities are in the given code below an... (by keskiverto)
Roulette and Cards Project
 
//Project 2 #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; main() { int game, i, b, r, d, choice, draws, card, probability, ...
[no replies]
C++ coding problem
 
So for a homework assignement i was suppose write a C++ program to determine which movie production is the most cost-effective domestically and globally based o...
[1 reply] : I straight c/p'ed your code and compiled fine (after including the mis... (by TheM0nk)
expression convert from infix to prefix
 
Can someone post pseudocode to convert expression from infix to prefix as mentioned below: plz do ASAP thanks.. Your expression evaluator should contain follow...
[2 replies] Last: i want pseudo code algorithmi found earlier thanks (by bali971)
filling an array with strings
 
I need to fill an array with a list of strings and am having trouble figuring this out. i want it to look like this Warrior Wizard Archer Thief
[1 reply] : Like so: std:string string_array = { "Warrior", "Wizard", "Archer", "... (by coder777)
by R57x
Array Problem
 
Hi Guys I Have Problem int main(int argc, char** argv) { char array ; int i; cin >> array; i = array + array ; cout << i; r...
[2 replies] Last: the type of array is char ‘1’ ASCLL is 49 ‘6’ ASCLL is 54 49 +... (by PoorMonk)
by codas
allegro 5
 
how to jump an object in allegro 5 by using gravity concept in which when we press a key, our object jumps and come down within some time without pressing any o...
[1 reply] : http://fixbyproximity.com/2d-game-development-course/ Here is a pretty... (by pnoid)
by c1885
string to int
 
I am trying to convert a string to a signed int from a file: -1 2 3 4 5 6 7 8 9 Trying to use atoi with no luck. val = atoi(line); did not work . ...
[5 replies] Last: My code reads one integer at a time, but since your file has only one ... (by keskiverto)
sorting a dynamic 2d array?
 
Hello, so I have a code to finally create a user designated dynamic 2d array that is filled with random uppercase letters. However, I cannot figure out a way t...
[1 reply] : please use code tags and indentation. (by anup30)
Pass vector element as a function parameter
 
I have a global vector of structs that is dynamically resized, and the way I use it is by push_back elements in the vector and pass a reference to that element ...
[6 replies] Last: Thanks for the explanation. The program is multi-threaded, it's just t... (by dhayden)
Exe error.
 
I am writing a simple program (more of a template for later programs, really) to quickly program quizzes to help me in school. There are no compiling errors, bu...
[12 replies] Last: Good luck. Learning can be hard, but once you start working on a proje... (by muffin1)
Any standard on how to define operator overloading type
 
Is there any standard or guidelines which say when to declare an operator overloading function as friend and when as in class member? Thanks
[5 replies] Last: thanks (by csstudent123)
by saisr8
inheritance
 
please help me with the following question class Parent { char name ; protected : int son; public: void inputdata(); void outputdata(); ...
[2 replies] Last: (VI) You can check it's size with sizeof operator, but I think it'd be... (by TheHardew)
Putting a save game feature in a game
 
hello peoples, so i have a question i am making a game that will be similar to zork and will be setup similar. I want to put a save game feature in it to save w...
[1 reply] : You just need to code methods that will store the game state attribute... (by cnoeval)
Reading/Writing Files - Is this correct?
 
I need someone to run this code for me (or just read it if you're an expert) and tell me if it is syntactically correct and if it runs smoothly. If not, it woul...
[1 reply] : You forgot to post your source file OP, how can we know if this is rig... (by Computergeek01)
I need to add an exception in this code, not sure how to do it.
 
This code works fine, it allows me to convert a hexadecimal to a decimal. I used the ascii chart. I need to add exceptions when the user enters in something i...
[no replies]
by Flippy
Please assist me make a simple and easy text-based minesweeper game!
 
Hi Guys! I am a noob in C++ programming. I have lots of ideas and stuff in my mind limited however only to the stock knowledge I have. I have to make a simpl...
[no replies]
some problems with cout vector<vec>
 
hello can someone fix my problems. i have no idea what is not working. i got this code with a vector<int>. i only changed this <int> to <vec> and nothing is ...
[7 replies] Last: ¿have you overload the insertion (>>) and extraction (<<) operators t... (by ne555)
April 2015 Pages: 1... 89101112... 28
  Archived months: [mar2015] [may2015]

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