Beginners - October 2009 (Page 25)

by Shane
Are there any variable types that can hold infinite digits?
 
I'm trying to write a program that can find like the first million digits of pi, and I'm having some trouble finding a variable that can hold that many digits. ...
[2 replies] Last: jsmith is right, but I was trying to come up with another solution. As... (by joshky)
Default case not working
 
Hi, i am new to the forums and this is my first post, please bare with me. I am new to c++ programming, and i just had a quick question about a program i was te...
[3 replies] Last: No problem. (by firedraco)
by joshky
Large Data File Access
 
Suppose I have a very large data file that I do not want to read into memory for efficiency purposes. Can I tell ofstream to jump to a certain line of the file...
[4 replies] Last: If you write it at the end, how will you know where it starts? Duh,... (by joshky)
by baross
Counting Issue_ need program to count, format and enter data.
 
#include<iostream> #include <cmath> #include <iomanip> using namespace std; double VelocityCalculation(double initialVelocity, double time) { ...
[1 reply] : Please use [co de] tags and ask something more specific http://www.... (by Bazzy)
howto multiply, ignore whitespace on cin
 
Whee... hello. I'm compiling with Dev-C++'s default compiler (MingW, as I understand it), on Windows XP. I doubt either of these are significant, but oh well.....
[5 replies] Last: You forgot function parentheses after cin.ignore And pdat is a chara... (by Bazzy)
Random-access: What's wrong with this?
 
Hello I'm new to C++ and Im trying to practice simple random-access techniques. I tried to write this simple program where i enter information about a car at de...
[4 replies] Last: It does not seem that the size of the file is an issue, it seems that ... (by tizzle717)
keeping a variable in between two numbers
 
I have a variable named int tripHours. The number of hours is suppose to be at least one and less than 10,000 and if it is not there should be a statement that ...
[6 replies] Last: You should probably look in the tutorial section of this site first; i... (by Zhuge)
partial strings
 
Hello - I am having trouble figuring out how to pull part of a string variable out for an assignment. I must get a first name, last name and zip code, the...
[4 replies] Last: Actually I think you want std::string new_str = str.sub_str(str.begi... (by Zhuge)
by zsukal
How to get count line in file and reset position.
 
Hello. I make code whose get count line but not reset position in file. // ifstream file; int MyClass::count(){ int i=0; int pS = file.tellg(); ...
[no replies]
by DKB
Copyfile
 
ok, so first of all I'm a complete noob in programming and I've been trying to teach myself on and off for a little now, so don't be too hard on me ;) I was ...
[16 replies] Last: sweet, a huge thanks to everyone who helped. Ya'll are awesome. (by DKB)
climits error
 
I wrote following code and found following error while compiling with gcc #include <iostream> #include <climits> #include <limits.h> using namespace st...
[1 reply] : http://www.cplusplus.com/reference/clibrary/cfloat/ (by helios)
by Xianto
Problem with Hex and Char
 
Hello... I have a little problem with my program, i need to send over TCP a value... This is my function: char *HexToAscii(char *hexa) { int i...
[1 reply] : char* -- ie, C-style strings-- are by definition ASCIIZ (\0) terminate... (by jsmith)
whats wrong with my program
 
ok so I think my program can't find or create my files? im not sure. can someone please tell me whats wrong with this program #include <iostream> #include <...
[4 replies] Last: What is your OS, crappy vista might not let you access the root. Try p... (by turbozedd)
October 2009 Pages: 1... 232425
  Archived months: [sep2009] [nov2009]

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