Beginners - March 2012 (Page 22)

Arrange of txt files under one condition
 
Hello, My name is Carlos and this is my problem I'm trying to read one txt file, and pick up the 46 character of the first line, then if this character is a ...
[7 replies] Last: Basically what you are currently doing is: Read in a line. If the 47... (by cire)
by ctest
How to solve this problem
 
#include <iostream> using namespace std; int main () { double x, y ; cout<<"Please enter the value for \"x\", this program will prints the value of \"y...
[8 replies] Last: // ------------------------------ // This prog gets a DEPTH, and retur... (by Incis B)
srand troubles
 
#include <iostream.h> #include <windows.h> #include <time.h> int x, y, z, a, b, c; int numbers ; srand(time(NULL)); I'm being told: g:\c+...
[13 replies] Last: So are void functions okay for the others? it's only main that returns... (by NerdTastic)
conversion char to long long from record
 
Hi experts, need your help, i have problem with retrieve the data from record, here the code : long long temp_amount=0; temp_amount_usd = atoll(studen...
[4 replies] Last: thank you for correct sir, im still learn in C btw Thank you for a... (by ranuchi)
how good is your C++? (1,2)
 
how good is your C++? Plus how could you rate yourself. I'm currently at the state where I've realised that C++ is impossible to perfect and that proficiency/h...
[24 replies] Last: Sometimes the Report button gets accidentally pressed instead of Re... (by cnoeval)
Making a Zombie C++ game SDL
 
Making a simple 2d birds eye view zombie survival, I am woundering how to make a simple timer to use in my code in order to set a pace for the zombie spawns and...
[2 replies] Last: I'm in a similar position to you Schadek, learning c++/SDL stuff. As f... (by Shifty89)
by dadu
network programming
 
I'm a beginner in C programming and I want to start the c++ I would like someone who may help me to get the book that may help me to get a skills concerning ne...
[1 reply] : Beej's Guide is good. http://beej.us/guide/bgnet/ (by Moschops)
URGENT!!!
 
can someone help me. plissss.. #include <stdlib.h> float celsius_at_depth (int d, float c); float fahrenheit_at_depth (float c, float f); int main (void) ...
[7 replies] Last: No I don't have skype or facebook. (by Peter87)
for, while loops and switch statement
 
#include <iostream> using namespace std; int main () { const int NR_VOTING_STATIONS = 4; int votesForA, votesForB, votesForC, spoiltVotes; c...
[2 replies] Last: Thanx for the tips, it just I don't know how to end my while loop, cau... (by Stephie22)
program not working please help.
 
if its not to much to ask ive been learning C, and C++ for a while and im not used to the OOP anyway, here is the code // basic file operations #include...
[4 replies] Last: kay thanks I think I got it, i'll figure out here on out (don't you ha... (by TheRocketRocketMan)
How do i tell the complier what to do in a certain case of exception.
 
I would like you guys, if you reply, not to tell me the answer directly just like that. Make it tricky so i can understand something or put me do some mindmappi...
[3 replies] Last: This may also help: http://cplusplus.com/forum/beginner/65220/ http://... (by Stewbond)
Recursion program (1,2)
 
Hello, All! I am trying to make this program work and have hit a dead end. The assignment is to write two recursion functions: one that takes a string and rev...
[26 replies] Last: In this two examples firs example may by a little faster if you have s... (by Shinigami)
by findme
input text from one file to another file question
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main() { ifstream wormfile("worm.txt"); ofstream dtfil...
[2 replies] Last: for(int i = 0; i < 3; i++){ std::getline(wormfie, wormline); dtfile <... (by ui uiho)
by cdf
dyinamic allocation of class inside class
 
I need to allocate memory for objects inside another object. The child would be a private member of the parent, and the parent would have a constructor that rec...
[4 replies] Last: No... if I just try for i=1 i still get the seg fault (by cdf)
Weird Array problem?
 
I was experimenting with arrays and I stumbled upon a weird situation. My program stops running when a specific number is surpassed, I am not sure if it's due t...
[5 replies] Last: If you want to give a variable x for the array length(what you have tr... (by Cman87)
Access violation for arrays in Game of Life
 
So I'm trying to do Conway's Game of Life, but I'm running into errors while running it- it comes up at different points but always when dealing with one of the...
[4 replies] Last: http://www.youtube.com/watch?v=a9xAKttWgP4 just saying, (by Incis B)
Using try catch
 
I am trying to make a try catch where if a user enters a char into an int it catches it and returns an error message. How do I specify catch a char in the catch...
[1 reply] : You need to set the exception bits. #include <iostream> using names... (by Duthomhas)
by findme
program only reads first word
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main() { string word; ifstream infile("worm.txt"); ...
[6 replies] Last: Don't loop on EOF. [code firstline=13] while (getline(wormfile,worm... (by Duthomhas)
Inverse pyramid
 
I can't figure out how to make the pyramid only showing its outline --------* ------*--* ----*------* --*----------* ************ The code that I have outputs...
[1 reply] : You can start by having a variable storing the length of the base of t... (by Krahl)
by y4n
Determining price via column and row number.
 
Hi friends, I just want to know how to make the variable 'price' deleted after its last run. I have tried the delete price; but the value of price seems to st...
[6 replies] Last: @CJC0117 :-D Thanks for your clear explanation! I've corrected it by... (by y4n)
March 2012 Pages: 1... 2021222324... 71
  Archived months: [feb2012] [apr2012]

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