Beginners - October 2011 (Page 54)

ASCII conversion problem
 
Hey everyone! (sorry in advance for my bad english, I'm french) I have to type a function that will get the content of a .txt file and then put the numbers i...
[2 replies] Last: Thanks for your reply! I dont' have to worry about that problem anymor... (by firutger)
Calculating the "speedFine" variable
 
This is the class declaration for FineCalculator ( int courtFee), I am attempting to calculate a speeding fine using the member function getFine( zone, speedLi...
[no replies]
Looping For Input
 
I've got a program I'm trying to write that generates a random number and then asks the user to try to guess that number. I've got it to run with if else code b...
[2 replies] Last: ///////////////////////////////////////// // xxxxxxxxxxxxxxxxx // CM... (by closed account 365X92yv)
Why did void main() return a zero?
 
So... I had to see for myself that void main() doesnt return anything, so I wrote a simple batch file: (note that return.exe is a program which does nothing bu...
[2 replies] Last: Because the system expects and needs the program to return something, ... (by helios)
Pointers to Class and DMA
 
I am pretty new to this, and I am completely lost as to what is happening. I am working on a project that require us to use Dynamic Memory Allocation and pointe...
[17 replies] Last: The error was fixed but a new one "variable not declared in this scope... (by edgofrea1ity)
Calling on Functions in Classes
 
Hello, This part of the code is from something bigger so that is why it is overly complicated. Basically I want to have the numbers 0-9 readout in order with ou...
[7 replies] Last: Thank you all sooooo much, this fixed my issues and my understanding o... (by forceface)
Where am I going wrong with my Pig Latin program?
 
I am currently working on a program for class that is supposed to convert English to Pig Latin. I've gotten it to compile with no errors, but when I execute the...
[6 replies] Last: Function indeed can be called in cout, but ONLY when it will return a ... (by closed account 10oTURfi)
Need help for this task !
 
My Beginning C++ teacher gave me this homework and I have no idea on how to solve it. Please somebody help me with the solution Write a C++ program to acc...
[1 reply] : You should have read this: http://www.cplusplus.com/forum/beginner/1/ ... (by closed account zb0S216C)
Bigint Class Problem
 
Ok so I have to do the classic bigint class for school. I have quite a few problems but I will focus on parts of the code that I'm most concerned about. The w...
[3 replies] Last: Take another look at the equality operator, it doesn't check the input... (by kbw)
cout to terminal
 
Hi all, I'm trying to go through the tutorial found on c++.com and the first thing is creating the classic Hello World program. I am using Ubuntu, the Bash she...
[6 replies] Last: This kinda sounds as if you'd misunderstood C++ for a scripting langua... (by hanst99)
Overloading == Operator
 
Hi, Here I have a class: class point{ public: const point& operator=(const point&); bool operator==(const point&) const; bool operator!=(...
[9 replies] Last: Ah, yes. In that case you will need to use pointers. But then you'... (by Disch)
Can't convert float to int
 
Howdy everyone! I'm fairly experienced in some other languages, but just learning C++ finally. Running into a problem that I can't seem to find an answer to. ...
[1 reply] : Well, I think I figured this out. I was stepping through the code to ... (by blatantninja)
dice roller: returning result totals
 
I'm new to C++ and this is only my second piece of coding. The problem I'm having is returning the totals of a series after the user chooses to end it. I don't ...
[no replies]
by kw1991
how do i use for loop to read from text file?
 
I have a text file with 30 records of peoples names and the dates they worked. A record would look something like this: 12 6 2011 John. The same person will be ...
[2 replies] Last: no i havn't declared my arrays what do you mean? do you mean just ... (by kw1991)
by Jordn
Compile error; was not declared in scope (but it was)
 
http://filebeam.com/4e063ad75275fa1b3d7c7ec430a32126 hello.h:594 Please I tried a lot of searching and rewriting before asking. Thank you for your time.
[6 replies] Last: I think you are going to the opposite extreme with those guideline doc... (by Disch)
by m4wk
Popping, pushing, and expanding queues!
 
Hey guys, so I'm having some trouble with this program I am trying to write. Here is the main code: http://pastebin.com/y6yQX8K8 So, I have to write the func...
[1 reply] : So I've been messing with this more and I would like someone to please... (by m4wk)
Help with Tab Command
 
Greetings! This is my first post in this forum. I hope everyone is doing well. I'm new to C++ and when I say new, I mean it's only been a month that I've even s...
[3 replies] Last: I used that formula twice in the program, so I'm not sure witch one ar... (by CroScorpiuS)
I would like for someone so explain time.h for me please
 
Hello, I just started c++ programming in college and there was a problem in my homework that said something about getting the total number of seconds elapse...
[2 replies] Last: Actually, I asked my professor if using <stdio.h> was OK and he said n... (by iLuvTofu)
Error C3861:Identifier not found
 
Hi, I am using atof function in my Form.h file of VC++ project. I have added a #include "math.h" in my .cpp file.but when I am building the project I am get...
[7 replies] Last: // Demo_C++.cpp : main project file. #include "stdafx.h" #include ... (by bhawna2285)
do while statement
 
Simple issue: Not able to figure out why the do portion is looping even if the response is any character other than Y or y. //BMI Calculator using user in...
[2 replies] Last: Thank you. It was an easy fix. :) (by Ashish Mishra)
October 2011 Pages: 1... 5253545556... 59
  Archived months: [sep2011] [nov2011]

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