Beginners - October 2009 (Page 4)

Functions problem !!!
 
hi this is my first post. I need some help... I have the following code: #include <iostream> using namespace std; int date_birth(int year,int month,in...
[2 replies] Last: Thanks, helios for your quick replie. I am going to study pointers... (by DeepFreeze)
The Game i was making from a guide wont work
 
i was told in C++ Programming Secound Edition For The Absolute Begginer as far as my beginner programming skills can tell it looks exactly the same but still ...
[13 replies] Last: What book is it mbittel12? (by rej3kt)
Cannot convert char to double?
 
Could anybody tell me what's wrong with this problem. I'am an absolute beginner so don't assume anything? It's saying in the compiller that it cannot convert ch...
[4 replies] Last: Lol! I had a long day to be honest, and I can't believe I didn't spot ... (by JohnOPhelan)
for loop calculation
 
hi i was wondering in a embedded application, how long it takes one for loop to complete. if the CPU runs at 12Mhz clock speed in a RISC 8051
[2 replies] Last: If you are a masochist: 1) compile your code to an assembler source... (by Abramus)
by winten
Mix strings [beginner]
 
I was wondering how can i combine "mystring" to "url" string mystring = "com"; wstring url = L"http://www.google."; in java it could simply be http://w...
[3 replies] Last: bytefreez : Why is that easier than string str1 = "com"; string s... (by R0mai)
Having trouble using get
 
I have to write a program that pulls data from a file. I cannot get the get function to work though. It keep s giving me an error. Here is my code so far: #i...
[12 replies] Last: will do thanks for the help (by cbouwkamp)
by Regine
ARRAY PROBLEM(what should I do with this one?)
 
HELLO EVERYONE:) the program should run like this displaying an asterisks * ** *** **** ***** is this program correct? #include<iostream> #includ...
[1 reply] : #include<iostream> #include<conio.h> using namespace std; int ... (by screw)
by Tuthon
Program with calculate Meteorologic measurements
 
Hello I'm a beginner and I want to make a program with calculate Meteorologic measurements: base classe - time( hour, minutes). Derivative class - Meteorolog...
[9 replies] Last: I have a one code, but it must be variable little. Can somebody help ... (by Tuthon)
counters
 
I am trying to come up with a solution for finding the number of integers that i can input into an array. What i mean is i have an array with a set size, but i ...
[5 replies] Last: Alright, sounds good. I appreciate the help. Thanks guys. (by bwright)
by destro
Setting a word as a varible
 
I'm writing a word guessing game and i'm a bit rusty with my C++. What i can't seem to remember is how do i set a word as a varible. I mean do i use a string? I...
[4 replies] Last: Or you could just use a string for either one? std::string guess... (by firedraco)
Strings And Equality
 
hello. I'm trying to figure out how you could use strings, and show equality with user input. This code compiles, and runs, but doesn't do what I'm trying to ge...
[3 replies] Last: Both ideas combined worked properly, and displayed desired results. Th... (by pressence)
Incomplete Character genetor program
 
All right I'm working on a project for school and I have most of it working but I don't know how to get this last part working. I'd ask the teacher but he's awa...
[1 reply] : Maybe something like this: #include <iostream> //#include <string... (by psnurr)
ofstream as a data member
 
okay so I have a class & I want all it's member functions to be able to access an ofstream object... i.e class myclass { public: myclass(string fi...
[4 replies] Last: thanks kempo... i was trying to open file like when u init the ofstrea... (by DangerD)
Problem with string.length()
 
I am trying to write a function in a program that takes a string and outputs the last word. However, whenever i call up the fuction, i get a runtime error on th...
[9 replies] Last: But it is worth reiterating (pun intended, I think) that had you used ... (by jsmith)
char array in a class
 
I'm having some trouble using an array of char's inside a class. For example: class TEST { public: char mystring ; }TEST_CLASS; int main() { T...
[5 replies] Last: class TEST { public: // give it a constructor TEST() ... (by kempofighter)
Looking for a better way of getting/monitoring data
 
There is a bit of data that other objects need to look at but don't need to modify. So I created public const references to the private data as a way of gettin...
[6 replies] Last: thanks! (by AlwaysLearning)
Allow a string to accept spaces?
 
Hi there. I just worked out how to use strings a little thanks to this forum. I was wondering though, if it is possible to have a string array(?) accept spa...
[6 replies] Last: Hrm, I think he might be trying to make an array on 20 std::strings ra... (by Zhuge)
Template classes broken into seperate files?
 
okay im having a bit of a problem with this... this wont work.. //MushNode.h #ifndef _MUSHNODE_H #define _MUSHNODE_H namespace MushBase{ template <cl...
[2 replies] Last: thank you for your help! i will read both of those and see if i can fi... (by MushroomWobbit)
nested for loop problem
 
I'm working on a program that asks for a mooses speed and a distance and the output should read the remaining distance that the moose has traveled every second ...
[7 replies] Last: You need exactly one for loop. Although there are multiple ways of wr... (by jsmith)
cin.putback
 
I have a problem. how to use cin.putback. For example, i write a sentence "add 10 to 3" and i want to use cin.putback to find "add" and two number. and it sh...
[6 replies] Last: Perhaps if you were to post your exact homework assignment ... (by Duthomhas)
October 2009 Pages: 123456... 25
  Archived months: [sep2009] [nov2009]

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