Beginners - October 2008 (Page 7)

'double' to 'float' warnings
 
I need a some help with my homework. I can not figure out why I am getting these errors 'double' to 'float' warnings and double to int starting at line 45 (i...
[9 replies] Last: That would work, but if you aren't planning on doing anything else wit... (by firedraco)
problems with functions
 
So here is my assignment: Purpose: Implement algorithms using functions (topic of chapters 5 of the course textbook). Program Description: Compute the p...
[1 reply] : Ok, looking over you code, I noticed a couple of things... 1.) Use ... (by firedraco)
Question about Arrays and Strings
 
Question 1: About Arrays Must I specify a size when initializing an array? In my program the user enters a number into the console, and i want to create a...
[3 replies] Last: You will need to do this: char* userAnswers = new char ; ... (by firedraco)
by Zyerne
Input from file and vector<string>
 
I'm trying to create a little program that will help me disect some .txt files I have. I've tried going about it several different ways but cant seem to get my ...
[1 reply] : Well if you mean read up until a certain character per each line, you ... (by firedraco)
Trouble with Factorial in C++
 
Hi everyone, I'm currently in my first semester learning how to program in C++ and i'm running into a problem trying to make a formula to calculate the follo...
[3 replies] Last: 1 + 1/1! + 1/2! + 1/3! + 1/4!...+ 1/n! double result = 1.0; int... (by Zaita)
Radix Sort
 
I'm trying to implement radix sort into my program. Radix sort should take as input 2 parameters, RANGE and BASE. RANGE will be the highest value of integer t...
[2 replies] Last: Well it sorts when base is 9. I'm just not sure how to implement the ... (by mherald81)
by ruby09
Hi I am new to c++ and having problems with....
 
I am just now learning about function prototypes. Can anyone help me answer the folloing questions? 1)I know that function prototypes are useful for avoiding c...
[7 replies] Last: It all makes sence now... thanks (by ruby09)
why no output?
 
This program is supposed to read 10 integers from an input file, save the largest and smallest integer to an outfile, and compute the even and odd integers and ...
[2 replies] Last: Thank you for your help! I changed some things around and this is wha... (by fg8ty64)
How can I count words in a BinarySearchTree
 
Hello I have a Binary Search Tree that reads words from a text file. I want to make a method that counts every same words and prints something like this: word...
[6 replies] Last: Since it is a binary *search* tree, I assumed it was sorted (of course... (by exception)
copy constructor
 
suppose we have a class as class integer { int m, n; public: integer () {m=0;n=0} integer (integer & i) {m=i.m; n=i.n} MY QUES IS THAT m and n ...
[7 replies] Last: thaks bazzy and guestgulkan, i got it now (by Pritpal singh)
Graphics
 
Hi, I'm semi-new to C++ and I'm looking for a little help regarding a windows app that I'm trying to create. I'm trying to send my friend and application that l...
[7 replies] Last: Download Visual Studio C++ Express. The Visual Designer used to cre... (by Zaita)
by Foe89
multiple integer output
 
Alright(I've asked before, didn't get a clear answer), this program uses a sentinal controlled loop(-99) and calculates the greatest and least number of integer...
[5 replies] Last: Without imposing hard-limits in your application you have to go throug... (by Zaita)
Advice needed on how to start this simple program
 
I need help getting started on this program. I have to write a program in C that calculates the perimeter, area, and centroid of a triangle. The user inputs t...
[1 reply] : http://en.wikipedia.org/wiki/Distance#Geometry http://en.wikipedia.or... (by cjmalloy)
Displaying 2d Array contents like a Graph (coordinates)
 
I'm having difficulty displaying the contents of a 2D array like a graph's coordinate system - i.e as standard, is displayed in the top left of the output, b...
[4 replies] Last: That worked. Thanks for the reminder about limits and the cout tip. Mu... (by Sophisto)
hi for every one...
 
Hello i'm new here and new for learning C++ language ,so i hope to find the one who guide me to learn it Kind regards
[2 replies] Last: By the way Tornado2: delete ur post from here http://www.cplusplus.com... (by Smok006)
class program
 
hi i tried this class working but theres an error in line mentioned below plz help me rectify that /*1. Make a class called "point" with two integer dat...
[1 reply] : U can't declare int a and int b there. If u want u have 2 choices: fir... (by Smok006)
Quick Toggle question
 
Is there a quick one line way to toggle a value? i.e. instead of... if(togglevalue) togglevalue = 0; else togglevalue = 1; Thanks!...
[7 replies] Last: cool beans! (by aeson25)
constructors
 
suppose we have a class which has both DEFAULT CONSTRUCTOR A::A() and DEFAULT ARGUMENT CONSTRUCTOR A::A(int = 0) the default argument constructor can be c...
[2 replies] Last: I salute your answer guestgulkan . Compiler should throw back a cou... (by Umz)
class prog
 
hi i tried this prog on classes but its having an error in line as mentioned below help me figure it out /*1. Make a class called "point" with two in...
[2 replies] Last: thanks i got it now (by Pritpal singh)
hi for every one...
 
Hello i'm new here and new for learning C++ language ,so i hope to find the one who guide me to learn it Kind regards
[no replies]
October 2008 Pages: 1... 56789... 20
  Archived months: [sep2008] [nov2008]

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