General C++ Programming - November 2012 (Page 23)

Pointers?
 
I continue to get some crazy errors when trying to run this program. I'm trying to have the user input what each person's balance is. If I assign a value to eac...
[2 replies] Last: Wow I didn't even realize I put that in there. And would you look at t... (by mckizzlealmond)
Confused if and else if statements
 
I got this code that I am working on. It seems that it is too big to post on here. I have a lot of if and else if statements in it. It seems like some of them g...
[1 reply] : Don't be afraid. Please feel free to post it here, maybe someone will ... (by Imadatobanisa)
Anything wrong with this?
 
I want to know what questions I've answered are incorrect. Please mark the ones that are incorrect...and maybe a correction? Here are the questions: -----------...
[no replies]
by sir24
help with C++ project
 
developing a program your computer program should be very user friendly: the program should always allow the person playing to play first and the person pla...
[1 reply] : Your game is fine. (Good :)) If you want to make a player machine whic... (by Imadatobanisa)
necessary help
 
help me why the following code give me error t=-10:0.1:10; T0=1; V=1; x=V*square(t); w0=2*pi/T0; index=0; for k=1:2:5 index=index+4*V/(...
[10 replies] Last: use the Rebuild All option from the Build menu. (by LB)
by Kart
Code Tags please
 
Is there any chance the administrators of this lovely site put a notice to advice forum users (especially newbies) to use code tags? I have come across a cou...
[2 replies] Last: The should have a little javascript function that searches for common ... (by closed account 1yR4jE8b)
Read data from anarray and encode it? Code included!?
 
I'm writing a program that encodes the data in a text file. The text file contains ascii values. I need to get these values and convert all to 5,6 digit even nu...
[1 reply] : http://www.cplusplus.com/forum/general/85216/ http://www.cplusplus.com... (by cire)
My program isn't doing anything.
 
I wrote my program which is supposed to tell who is in the critical section and if there are 1 reader and writers exit or 2 writers exit. It's supposed to write...
[6 replies] Last: So I've been working on fixing some of the stuff. I got it output once... (by EatLearnLover)
How to pass a pointer by reference? C++
 
Hey Forum, I have read countless threads from others with the same question as mine...yet nobody actually answers it. They all seem to go in the direction of ...
[5 replies] Last: Everything is working fine now. Thanks to kg1992 and Nexius for both ... (by jazztrmpter)
How to save file data into 2-d array
 
I can save my file data into array now, but don't know how to put into 2-d array. This is my program: #include <iostream> #include <fstream> #include <strin...
[1 reply] : When you specify a position in an array you are essentially accessing ... (by pogrady)
by lvdp00
editing loop
 
hey , im using this following program to generate a random number between 0 and 0.99 , it only gives me one output at this time but i want 1000 ouputs , how do ...
[2 replies] Last: 4) Please use code tags for code (by Nexius)
How to do this (see post).
 
Say I created a polygon class. Later, I create classes that are derived from the polygon class. Now, if I want to create a function which will double de size o...
[1 reply] : Before I start, for (x=0; x<polygon::n; x++) This is an extremely unu... (by helios)
C++: Decoding and Encoding from file?
 
I have to decode and encode data from a file I just finished the decoding part. There is a file containing 5-6 digits integers that be separated by even or odd...
[no replies]
What does it mean when it say inconsistent DLL Linkage
 
I have this simple program, that I am using to test #include<ctime>, it works but when I compile it says- Warning 4273 'clock' inconsistent dll linkage. what ...
[6 replies] Last: Thanks for all the comments. I checked the content of time.h and every... (by mendozae)
need help with boost multi-threading
 
The program runs fine. I type in the ip adress i want to connect to and connect to the server fine, but after about 5 seconds i get this break-continue box mess...
[2 replies] Last: Connected is always true. It was old code that i just kept, but Connec... (by nano511)
choosing the input file name with the "-f" flag
 
Does anyone know the code with which I can choose an input file with a -f flag like in the example below: a.out -f input2.txt where input2.txt is the name...
[1 reply] : http://linux.die.net/man/3/getopt (by ne555)
URGENT help needed in implmenting substring for cstring!!
 
#include<iostream> #include<string> using namespace std; char* substring (char *s, int start, int end); int main() { char *s="university"; ...
[4 replies] Last: I dnt understand how the 2nd index gets the NULL, can u explain tht fu... (by ami1234)
by asra
number pyramid
 
Hi everyone, i need urgent help about this nested loop program need an output like this 1 2 3 4 4 5 6 6 7 ...
[4 replies] Last: hey guys, i have found the way :P (oh Lord! thanks am not feeling dumb... (by asra)
Manipulation of C-style strings?
 
I trying to read data from a file to a c-string, then go through the string and convert the ascii chars to 5 to 6 digits numbers, but im having trouble. The fi...
[1 reply] : I trying to read data from a file to a c-string, then go through the ... (by cire)
Unable to print my cout
 
#include<iostream> using namespace std; void introduction(); bool aretheyvalid(int x, int y , int z); void aretheysame(int x,int y ,int z); int roundsco...
[3 replies] Last: Yeah I fixed the statements for the aretheysame and it works. Thanks! (by bainofmyexistance)
November 2012 Pages: 1... 2122232425... 51
  Archived months: [oct2012] [dec2012]

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