General C++ Programming - January 2012 (Page 33)

Help
 
hello.. I have a problem, I bet with my friend to complete a program but so far I have not done, this example program ( http://www.mediafire.com/?12naykpi66fvk...
[8 replies] Last: i want to create my out put from: http://oi39.tinypic.com/k1a0ig.jpg... (by munziat)
Will arrays store anything?
 
I wanted to know if, for a game, I can store a series of pointers to image data within an array to cycle through it and repeat the frames for an animation of so...
[12 replies] Last: cin.getline(arr,50,'\n'); cout<<"\n\t Reverse words are = "; for(in... (by Abdul Ghafoor)
Algorithm required
 
Your school has ordered some equipment that has been delivered in a number of very heavy cartons. Each carton has a serial number and the cartons are all lined...
[5 replies] Last: Ok so you want to generate all permutations first and then link those ... (by shankvee)
by codder
Generate strings
 
Hi all, I want to generate some strings by algorithm. There are some algorithm that generate alpha-numeric strings? I don't want something simple since i w...
[3 replies] Last: You still need to call srand(time(NULL)) to initialize random (by aquaz)
by och
libcurl POSTFIELDS and POST body
 
Hello, I need to create http POST request with POSTFIELDS and body. Something like curl_easy_setopt(handle, CURLOPT_POSTFIELDS, arg); curl_easy_setopt(curl_...
[1 reply] : It's not clear what you're trying to do. I suggest you read the tutori... (by kev82)
Side-by-side errors and other problems on interop with 3rd party dll
 
I'm not 100% new to C++, but it has been a while since I have used it. That said, I don't believe that this problem has much to do with syntax (though it would ...
[1 reply] : Do you have visual studio 2008 installed ? The 3rd party dll needs vs2... (by modoran)
Problem with cin.get()
 
I wrote this simple program: #include <iostream> int main() { using namespace std; char word ; char wordtoo ; cout << "Enter a word>"; cin.get(word...
[5 replies] Last: http://cplusplus.com/reference/iostream/istream/get/ If the delimitin... (by ne555)
Replacement For Form Feed? (1,2)
 
It appears that '\f' Form Feed no longer clears the screen, at least on the bash terminal type (unless someone thinks otherwise, in which case I will supply the...
[20 replies] Last: I still think it near useless... (But I'm glad you caught the fun!) (by Duthomhas)
Classes & References
 
(Attention: Crappy explaination) I need 2 classes to hold references to each other. Ima show example: class Foo { Bar &refBar; } //... class Bar { Fo...
[4 replies] Last: The reason you're finding this difficult to do is because it's very da... (by Disch)
Math Problem: Direction and Distance
 
I am making a Particle simulator thing and I couldn't work out the formula for finding the new position of a particle using only the direction and distance. If ...
[2 replies] Last: This was very helpful thanks (by closed account 2NywAqkS)
passing in ifstream and getting a word, without use of vector
 
Hi everyone, I have to create a function which passes in an ifstream& output and an ofstream. The ifstream is a file, which I need to take each word and tra...
[4 replies] Last: tokenize is not a standard function it's one you've got to write usin... (by andywestken)
Sound stops game?
 
Hey, I'm using the PlaySound function for my game but when it plays, it stops the game until its finished playing. How do I get it to play without stopping the ...
[8 replies] Last: I was wondering if there was something going on which was disrupting t... (by andywestken)
WHAT IS A CONSTRUCT IN C++?
 
Hi everyone, can somebody explain to me what a construct is.
[2 replies] Last: Thank you Albatross, this helps a lot. much appreciated, (by ayanda83)
by bamber
Iostreams
 
I would be grateful for help in solving the following.In lippman C++ primer 4th edition page p289 I am unable to figure out how to correct this code to run wi...
[no replies]
how do I tile texture?
 
I am trying to write a program using OpenGL and SOIL to display a picture. Currently it is stretching the picture over the area, but I want it to tile the image...
[no replies]
by Arya13
file handling doubt in C++???.....
 
when a text file is given in this format which is ordered and has no commas or any characters- 60 Rajkumar 70 Harish ... its clear that the file needs t...
[5 replies] Last: Read a line. Then from that line read one string, and numbers till the... (by ne555)
how do I create a subclass?
 
Suppose I have structure A; struct A { int Aint; } InstanceOfA; Now I want to create a new structure called B: struct B { int Bint; }; Such that I...
[4 replies] Last: you can do this: struct A { A() : b_(this) { } private: B b_; } T... (by aquaz)
iterators as parameters in template functions
 
Hi - I'm trying to create a template function. Here's the .h file: #include <iostream> #include <fstream> #include <vector> using namespace std; ...
[8 replies] Last: Where temp is an int32_t regardless of the template parameter type. S... (by bluecoder)
can anyone explain this line for me?
 
im beginner in c++.i try to understand this code but i cant find what is this code mean..can anyone explain this line for me? while(fp.read((char*)&iv,sizeof(...
[4 replies] Last: "the length of the size of the inventory structure soory i mean to s... (by bluecoder)
by GOLF O
Infine Loop problem
 
Hello, I have my program running into an infinite loop and I can't seem to find out where the issue is. int main() { const int arraySize = 5; ...
[5 replies] Last: As jim80y said you need to check for the fileIn.is_open() condition... (by bluecoder)
January 2012 Pages: 1... 313233343536
  Archived months: [dec2011] [feb2012]

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