Beginners - January 2010 (Page 6)

#include libraries in header files?
 
I am somewhat confused about how to tell a header file to #include <iostream>. I am writing a header with functions that I will want to reuse many times, and I...
[2 replies] Last: If you are splitting these utility functions into a cpp and a header, ... (by Zhuge)
Char in C++, What is it.
 
I've been coding for a while and i'm working on variables now, I know some like int , or double , or bool . but I can't figure out what Char is for. can so...
[5 replies] Last: so that's why it is in qoute tags.. (by blackcoder41)
how to complete my code arrays :D
 
#include <iostream.h> int main() { int grade ; for(int i=0;i<20;i++) { cout<<"Enter grade: "<<(i+1)<<" "; cin>>grade ; } for (int j=0;j<20;j=j+...
[14 replies] Last: that would be done if you want some variables to locally defined in a ... (by pyschoder)
free c++ e-books
 
I have finished reading the tutorial from this website, and understand most of it, if not all. I was wondering where I can download some free e-books, so that I...
[9 replies] Last: Well thats reassuring... Although I do admit it does need to include c... (by mcleano)
General Windows API Problems (Visual C++)
 
I have been trying to test some things and I have recently run into a bizarre problem with outputting characters in a console application, among other problems....
[4 replies] Last: Thanks a lot! I have gotten it working perfectly. (by kevin06s)
Try-Catch Error
 
It gives a weird error (according to me). It says I didn't associate a try block with the catch handler, I tried already a few things, but the errors kept appe...
[11 replies] Last: 10 while loops would be better than 10 goto statements. The beauty of... (by kempofighter)
C++ From the beginning
 
Complete noob here! First can someone recommend what program to use and then how to set up the program. I think i can manage the rest then :) thanks in advance
[2 replies] Last: Thanks a lot for your help! I think i can finally make a start now :) (by dan fish)
Recovering variables from a file
 
I have a txt file which has the following format 34432 2008-05-30 10:24:36.761334000 34433 2008-05-30 10:50:23.063773000 34439 2008-05-30 12:49:40.909249000 ...
[2 replies] Last: Just as I thought. I know that the first 5 places will always be the s... (by zcharif)
OpenGL and dev c++
 
Hello all i trying to get opengl in dev c++ to work with it . i dont know why it dont work i read many tutorials how install it but i allways get errorä GL/gl...
[4 replies] Last: you must install glut lib in dev c++ in dev c++ chose Tools -> Chec... (by ggmann)
by joceps
Compilong C++ in VC++ 2008 express issues
 
Hi im new to programming, teaching myself, im currently using the V C++ 2008 express edition to learn on, and have found that im getting errors, ive searched th...
[11 replies] Last: It's better to make a empty project right click on source folder and c... (by gcampton)
static_cast<int>(num) to get define decimal???
 
okay so I'm writing a program that defines a time instead of HH:MM it is formated as HH.MM. User of the program inputs a time in this format (IE: 1.30 for 1:30...
[7 replies] Last: yeah I got a bit of an inaccuracy defining it as a floating point vari... (by miken68)
Please problem with Dev C++ 4.9.92
 
I following code does compile with problem, but is not running well #include <fstream> #include <iostream> using namespace std; int main () { char...
[2 replies] Last: and please in future use code tags ----------> the button on the right... (by gcampton)
Reading into a string
 
I need to read part of a line into a string and then skip to the next line and read in again and keep doing this until the end of file. the files look like this...
[6 replies] Last: Thanks for the very quick responses. I can always rely on the help of ... (by cbouwkamp)
by Raf Sa
what can I do here?!
 
Good day, I'm writing this program of a chocolate machine, and its NOT working! can anyone help me with it? #include <iostream> #include <fstream> #includ...
[5 replies] Last: in regards to indentation: if (next==Y||next==y) { ... (by gcampton)
Strings in Alphabetical order?
 
I'm not sure how to program things to appear in alphabetical order.
[3 replies] Last: a string version of gcampton's bubble sort.. #include <iostream> ... (by blackcoder41)
*Dur-dur* What's wrong with my code?
 
First, I'd just like to say, "FINALLY!" After searching around for 20 minutes, I found out how to register and login, and another 20 minutes were spent finding...
[10 replies] Last: LMAO! jsmith is on the money with that one! (by kevinkjt2000)
by Wylbur
Arrays as Properties of managed Classes
 
Hi all; Can you have an array as a property of a managed class in Microsoft C++ without having to use the gcnew function to allocate memory for the array?...
[no replies]
by XeonXT
Vector Objects - Maintaining Pointers?
 
How can one maintain a pointer to an object within a vector even when the vector will be resized often? Is there a good way to do this? To be more specific, ...
[7 replies] Last: Great, thanks very much to both of you. All questions solved :) (by XeonXT)
The string is messed up after erase
 
Hi, I was trying the erase method in the std::string. The string is "David Hardman Junior", and I try to erase everything after the first space. Right after th...
[5 replies] Last: The parameters for erase are: erase( starting_position, no._characters... (by mcleano)
Convert 4 bytes into a float
 
I've being trying to convert 4 bytes into a float with no success. Float: 0.1 The bytes are: 1: 205 2: 204 3: 204 4: 61 A formula for doing so wou...
[9 replies] Last: Where did the problem from in the first place. If you can't understan... (by kbw)
January 2010 Pages: 1... 45678... 24
  Archived months: [dec2009] [feb2010]

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