General C++ Programming - May 2012 (Page 13)

How would I parse a text file to make paragraphs?
 
Ok so I am at a point in making dialogue in my c++ game. Lately I have been searching extremely for a way to parse a text file(as an example one line) and form ...
[5 replies] Last: Oh man thank you so much! With the help of the link and another thread... (by molma100)
OpenGL: Problem with meshes (1,2)
 
Hi there. I recently submitted a problem that was solved, and have found myself in the wake of another. I am trying to load in a .obj mesh of a simple bike, ...
[27 replies] Last: It's not a poor understanding of OpenGL, if you don't know what format... (by closed account o1vk4iN6)
Questions and suggestions
 
Hey everyone, What I'd like to do.. Learn C++. Me = Beginner with a small bit of breaking code.:) But I want to understand it now so I don't break it h...
[2 replies] Last: Thanks for clarifying. (by teratosis)
by arooj
C++ Scoreboard
 
This is my scoreboard, I was wondering how I could place a value inside each square of the scoreboard, for example, the x value. cout << "PLAYER SCORES" << ...
[2 replies] Last: No, the "a" loop will execute 1 time (a = 0 --> a <= 0). The "b" loop... (by doug4)
searching large file using char
 
I'm looking to read data from an xml or txt file that is upwards of 50Mb. However I am unclear how I should copy segments of data to the char so that I can do i...
[1 reply] : As long as you have not closed and re-opened the stream, each call to ... (by PanGalactic)
BST Inorder traversal
 
Hi, can someone explain me how to output content of BST in Inorder traversal ? I need this for the assignment, just spend whole night writing BST and i just ca...
[no replies]
Random Numbers
 
Hello every one...i need little help....i want to know that is there any way to use rand to generate random numbers between two limits let say from 0 to 100 suc...
[5 replies] Last: thank u all for your help....thanks very much :-)....... (by awaise17)
Just need a little help removing new line
 
Hi, I am making a c++ program that prints a calendar. The problem is that when a previous month ends on a saturday, my program will start the next month on a su...
[2 replies] Last: Thank you very much :) (by Chris Christoff)
by Jp P
C++ question game
 
Hi guys, i'm making a question based game with c++ and i was wondering a couple of things. I want the user to play the game with a different experience each tim...
[1 reply] : Although what your saying is possible, you have to remember that a 15 ... (by blueberry)
Chatting Application
 
I plan to make simple p2p Chatting Application. But I confuse at designing level of the application. Peer uses fix port number assumes 5678. may peers are fr...
[4 replies] Last: (2) How virus send recorded keystrokes to the hacker. Indeed, the vi... (by closed account 3TXyhbRD)
Hi need Support and Advice .. :(
 
Hi , i really like c++ and stuff i want to be a professional programmer but its hard for me to learn the language and i have a bad understanding of ive been re...
[7 replies] Last: Don't drop math class. (by Moschops)
by Kuzco
Is this ugly/bad code?
 
Hi there! *Waves* I'm making a program to sort all the series I got on my computer in a sexy way so I can search and stuffs, and I wrote this method to find ...
[1 reply] : This sounds like the job for regular expressions. modern C++ has them ... (by Cubbi)
Key Logger Help
 
#include <iostream> #include <Windows.h> #include <WinUser.h> using namespace std; int Save (int key_stroke, char *file); int main() { char i; ...
[2 replies] Last: Oh, Stupid Mistake Thanks! (by anikan1297)
Keeping my console window active all the time!
 
Hi all, I want my console to run in the background, and take in user input. It works like this: 1) The console starts. 2) The user moves to another ...
[1 reply] : The way you are trying to do it won't work. Google around "keylogger" ... (by Duthomhas)
by hrva07
double include
 
I have classes Shape and Document . Document holds Shapes. Document has a list<Shape*> _shapes . But I would like to have a pointer to Document in S...
[3 replies] Last: Thank You for your comments.. I did it the way Peter87 says.. (by hrva07)
Covert DateTime To a standard format
 
Hello my problem is to convert "Friday, 16 March 2012 12:45:11 +05:30" to "2012-03-16 12:45:11 z+05:30" i have tried to solve it by following code and i'm gett...
[2 replies] Last: Thank you very much kbw(4313) i solved my problem. (by harshavelocity)
by Snowzz
Passing a variable from one function to another
 
So i'm currently experiencing some problems passing one variable to my main. This is what I got so far. #include <iostream> using namespace std; int main() ...
[2 replies] Last: http://www.programminggeeksinchrysalis.blogspot.de/2012/04/functions-p... (by SirSmilesaLot)
problems with a tip calculator.
 
I'm having problems getting this program to build. (sorry for all the code!) #include <iostream> #include "calc.h" #include "percentFunctions.h" us...
[2 replies] Last: thanks man i'll try to fix up the header lol (by John McCrary)
"Program received signal SIGSEGV, segmentation fault"
 
I've never had this problem with any of my other programs. I was making a Kenken solver, but I need a 3 dimensional array. I created the array and dynamically a...
[8 replies] Last: Ah thanks, didn't notice that. I fixed it now :) (by ben1996123)
Learning velocity with vector math
 
Hello all, trying to learn how to use vector math and velocity position while rendering objects. The problem that I am having is that I do not understand the sy...
[3 replies] Last: Perhaps this webpage will assist you: http://mathworld.wolfram.com/Vel... (by closed account zb0S216C)
May 2012 Pages: 1... 1112131415... 41
  Archived months: [apr2012] [jun2012]

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