Beginners - October 2009 (Page 14)

file extension for c++
 
im losing my mind over this :x i use vista, what would the file extension be for the following? // my first program in C++ #include <iostream> usi...
[4 replies] Last: thank you (by imanoob217)
using <ctrl>-Z to end
 
hi, im trying to write a program to take in a bunch of information and then convert it accordingly. My only real problem is that we are asked to end the progra...
[3 replies] Last: See the example at the bottom of the article. (by helios)
problem with +overloading
 
so.. i have a 3 files.. fractalDriver.cpp complexType.cpp complexType.h i am getting a crazy error that i have no idea what it is.. but i know where it i...
[2 replies] Last: wow. that would completely make sense lol... thanks -_-... *sigh* (by vexstorm)
by gdsimz
multiplying a decimal to get whole number not working
 
Hi all, I am writing a function to return the number of coins needed to return to user based on the cashing_amount value. The below function works fine unle...
[1 reply] : Read: http://docs.sun.com/source/806-3568/ncg_goldberg.html Floatin... (by firedraco)
My compiler doesn't like my return function?
 
Hey all. :) I'm incredibly new to C++ (well, programming in general) and I'm getting an error message I can't figure out. It's saying "program 2 item.cpp(38...
[6 replies] Last: Yes, absolutely. (by John Galt)
by wachtn
Feedback please
 
This programs checks a files for duplicate lines and creates a new file that is duplicate free. Would you please review it and give me some feed back on how it ...
[7 replies] Last: I get it. Thanks! (by wachtn)
sequential files
 
The program should: Accept a series of names and addresses from the console. The user's input should be written to a text file in the CSV format described ...
[1 reply] : string *theField = split(firstLine, ','); split() returns a strin... (by firedraco)
Array of Objects
 
Okay I have an assignment I am having trouble with. I have to create an array of objects will use a virtual function. The way the assignment is supposed to be l...
[18 replies] Last: Huh, strange. At least you got it working though. ^_^ (by firedraco)
by gdsimz
need assistance with do while validation..
 
Hi all, Trying to determine why if user types a letter for double data type variable do-while validation gets screwy and an endless loop occurs using the fol...
[3 replies] Last: Because when you attempt to read an int and it fails because the input... (by jsmith)
by robezy
Trouble with filestream and stringstream..
 
Can anyone tell me why the last number of input read from file is printed three times in the below program. Thanks.. #include <ctime> #include <iostre...
[8 replies] Last: The problem is yours fails if there's more stuff in the stream, but no... (by kbw)
by JamesB
memcpy elements of an array
 
Dear All, I started trying to learn C++ about a week ago, so please bear with me here. I'm trying to build a function that will insert one element before an...
[5 replies] Last: Ah, gotcha. It seems memmove is the function for me. This works as i... (by JamesB)
Looping a switch statement
 
How can I make the default statement in a switch, loop back to the first case and reprint the cases if the user failed to press a valid option?
[4 replies] Last: http://www.cplusplus.com/forum/articles/6046/ Good ways to get input ... (by bluezor)
Compute Pi using arrays (code finished, but not working right)
 
I posted a thread related to this earlier but after redoing the code over and over I decided to start a fresh one. So here is what I have: #include <io...
[3 replies] Last: It worked!! Thank-you so much!!! :D :D :) I've been working on this a ... (by nautica17)
Math with chars
 
Whenever I try to print this I get: a n, a dash mark and two tildas stacked on top of each other it should print the number of letters it takes to get to a s...
[1 reply] : Convert to int or any type other than char right before outputting (<<... (by helios)
A factorial program that isn't returning the factorial
 
Hi there! This is my first posting. I'm new to C++ as well. I've included the code I've written for a simple factorial program. The program should only accept ...
[3 replies] Last: So it was a stupid, switcharoo mistake. Thanks for the keen eyes! I ap... (by dominic3176)
Can't run program (1,2)
 
Hi, I'm a beginner having problems with writing my hello world program. I am using the tutorial on this site, because it seems easy to understand. Allthough ...
[24 replies] Last: Worked after entering the ignore() command.. Find the lanquage rather ... (by ferrariandersen)
by Beaner
txt file spacing problems
 
I finished my program and I am required to put it into a txt file. My program comes out nicely when I run it, but when I send it to the txt file the spacing ...
[1 reply] : when you view the text file, are you using a proportional font or a fi... (by jsmith)
by joshky
Roman Numerals
 
I am working on an arabic to roman numeral converter. The following code works, if the user doesn't enter any zeroes and only 1 or less digits are greater than...
[4 replies] Last: actually I had a lot of errors where I copied and pasted the different... (by joshky)
Reading .txt file
 
I want to read a .txt file with multiple lines, like this example and output them in the program (format: Name/Amount of numbers/Numbers): Don 2 2 1 J...
[11 replies] Last: Ah now I understand, thank you so much guys ! (by bananaHUNT)
How to use VS2008 express and DirectX to draw a circle?
 
Just want to do some very simple graphics. Like a circle or a square. Any website teaches us how to do that? Thanks
[8 replies] Last: The DirectX samples are provided as part of the DirectX SDK and can be... (by jRaskell)
October 2009 Pages: 1... 1213141516... 25
  Archived months: [sep2009] [nov2009]

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