General C++ Programming - February 2015 (Page 8)

Lost with Looping
 
I'm trying to create a program that loops "x" number of times, where "x" is going to be a user-input number. I've seen many tutorials, but none are able to h...
[2 replies] Last: Thank youuu. :) I've got the whole program done, my buddy just wanted ... (by KyuubiCalvary)
by WAKS
how to make a tile map?
 
Hello! I'm making a 2D rpg game. Right now am I using one large background image that I move around the screen. Since it's one large background image, it use a...
[no replies]
by doug4
Char stream
 
I have a project where I need to process large chunks of data that can be coming either from a file or from memory. I figured the easiest way to abstract this ...
[1 reply] : You can easily take any old stream you want and replace its streambuff... (by LB)
selective runtime check
 
Hi everyone, I'm working on comparing different sorting algorithms' efficiency and wondering, is there any way to check a running time of a specific block of...
[2 replies] Last: Great info, thank you! (by Mephisto777)
Need help finishing code
 
ASAP if possible class SadPirate : public Pirate { public: SadPirate(string n, int numP) { favColor = "blue"; // Set the name here. // Set the numParr...
[1 reply] : do not double post.. (by mutexe)
Convert image to 8bitmime
 
Hi, I'm trying to write a rest sdk client for Facebook integration. But I stuck at upload user photos. https://developers.facebook.com/docs/graph-api/refer...
[no replies]
by mutexe
unique_ptr and error 'deleting function'.
 
Hello, Been away from c++ for a few months now (apart from answering a few questions on this site). I was trying to see if i could do a simple program using ju...
[5 replies] Last: gotcha. Cheers fella. (by mutexe)
parse a string contains number and characters in c++ from file
 
hello!! I have a text file which contains many sentences. I am trying to extract only the numerical values from the string that conatins characters,numbers and...
[1 reply] : 1. Read each line into a std::string variable (e.g. using std::getl... (by LB)
default parameter
 
I make a function void fun1(int x=10, int y=20, int z=30){ // code } int main(){ fun1(,y,)// I want to pass 2nd parameter value //other values are ...
[2 replies] Last: thnx actually more than thax really good one. very smart tics. (by sujitnag)
std::ifstream eclipse and Win32
 
Hi, I'm using eclipse + boost + mode -std = c ++ 11, but the compiler gives me error, this program works properly on linux but I need to compile it on Windo...
[9 replies] Last: Hi, You ask me where encode is Declared? well this is the link ... (by raulpuro)
file i/o nightmare using fstream
 
Hi there! I've been trying to implement a database for a game I'm making, and I have a big problem. My database has for content player profiles, which are ap...
[2 replies] Last: Yeah that's what I just figured.... I'll do that. Thanks! AeonFlux121... (by AeonFlux1212)
Conway's Game of Life Code
 
Hey guys, I have this project as an assignment and I've run into a problem I just can't seem to solve. When I run the program, it does one iteration of all peri...
[1 reply] : Remember to use code tags. #include "stdafx.h" #include <iostream> #... (by Militie)
Reading and Writing files
 
I have to write a program that sorts names and grades from a file and output them to another. For example: Name: Peter Parker Exam 1: 95 Exam 2: 90.625 ...
[2 replies] Last: Thanks for the help, I stored the data line-by-line as you said, and I... (by JumpKick)
inheritance in classes, im not shur how to do this, please help.
 
here is what I did so far #include <iostream> using namespace std; class Adress { protected: string name; int age; public: void setAge (int a) { age=a;} ...
[no replies]
please help with class(.h) file
 
\\I have no idea what I'm doing wrong #include <iostream> using namespace std; class Address{ private: string streetName, city, state; int zip, stree...
[4 replies] Last: THANKYOU SO MUCH, and for your time to I cant believe I didn't notice... (by isaacthebro)
using decrement operator in recursive function argument list
 
Im using a recursive function to sort array. The decrement operator is used to eventually get to base condition in function. Used debugger the size-- expression...
[3 replies] Last: 1. the variable is never used after that line 2. after that line, the ... (by LB)
C++ for Rockstar Games' Social Club?
 
Hello there. I have a question regarding a certain job. If you look at the following link: http://www.rockstargames.com/careers/position/3bd063db/rocksta...
[2 replies] Last: [quote=heepoo]i think it uses UDP port to connect to servers, because ... (by Z e r e o)
FUNCTION OVERLOADING:Would this have been the best way to print the name and gpa or was there an easier way
 
#include <iostream> #include <string> using namespace std; struct studentType { string name; double gpa; }; // this function returns the bigg...
[11 replies] Last: Thank you Konstantin2 and dhayden for the advice. (by programmercarlito)
Highest Per Column in an Array
 
Hey guys, i'm new in C++ coding and I need some help with a programming challenge i was assigned. I am so confused on just how to do the highestPerQuarter funct...
[no replies]
Random Character Generation
 
aba
[8 replies] Last: you can use boost.random just read it's documentation and use it (by heepoo)
February 2015 Pages: 1... 678910... 26
  Archived months: [jan2015] [mar2015]

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