Beginners - October 2008

double-precision floating-point numbers?
 
I know that there are floating numbers in c++ but want to know if there is double-precision floating-point numbers? Why do I ask? Because I learned lua before c...
[2 replies] Last: Thanks for the help. What do u add the begging of the variable? (by willia23)
How to select random number
 
i have certain inputs how to select a random input from it to process the selected one.
[2 replies] Last: Here are two links to help point you in the right direction. hope t... (by ja23jr)
debugger problem?
 
I don't think I changed any settings or anything but I may be wrong.. this has happened on two different computers now and I don't know what I'm doing. I'm tryi...
[1 reply] : I think you should pause your program to see variable values (by Bazzy)
event only numbers?
 
Okay, I'm trying to do a lot of my labs for my C++ class because I'm a little behind so please try to answer.. I can ask tomorrow in class but just wanting to k...
[3 replies] Last: I figured it out.. It was "process only even" numbers.. It took about ... (by computernerd89)
by amyotm
NEW Specific IF question
 
My IF is preventing me from correctly validating an array of chars properly. Each char has it's own class as shown below. I am only capable of classying white s...
[3 replies] Last: I assume you replaced all the if( a='x' ) with if( a == 'x' )... (by jsmith)
doubt in return
 
I have a doubt pertaining to the keyword 'return'. The doubt is as follows: (i) What is the difference between return 0; and return (0); ? (ii)Can we end...
[6 replies] Last: thanks jsmith once again. (by chandangang)
by amyotm
Problem solved
 
I asked earlier for help for strcpy. I finally realised the problem but now I have an interesting issue. During the string copy process characters will go miss...
[6 replies] Last: That's helped quite a great deal. Thank you very much. Perhaps you cou... (by amyotm)
How do I not overwrite information
 
I am new to C++ and we are writing a program that calculates values from outside functions and then outputs them to a file. There are approximately 1000 values...
[2 replies] Last: I got it thanks...I just had to keep the file open instead of closing ... (by trzachar)
by amyotm
Problem solved
 
Hey, I was just wondering how it would be possible to enter the contents of an array through printf, or if it's possible. I thought it would have been easy ...
[1 reply] : You could printf() a temporary value, then store it to the array I sup... (by firedraco)
c++
 
and i had another question. by testing a program with values that are close to values that will change the execution of a program is called????? and what is the...
[2 replies] Last: Is this a homework question? You don't explain yourself properly (by Umz)
C++ Prime CHecker
 
Hi I am a beginner in C++ and would like someone to give me an idea or push me in the right direction of how to solve this question , It is related to classes ...
[4 replies] Last: Prime number calculation algorithms are so hideously inefficient anywa... (by jsmith)
Number of characters in an integer
 
I need to determine the number of characters in an integer. In other words, 1254 would have 4 characters. Sounds really simple, but I'm really slow in figurin...
[4 replies] Last: I didn't understand Scipio's answer until you explained it a bit more ... (by Ideasite)
by Vector
Not reading .txt file
 
I have this code, and for some reason its not reading the text file.. #include "stdafx.h" #include <iostream> #include <fstream> #include <string> #...
[6 replies] Last: The only time you will HAVE to use it is when you are trying to have b... (by firedraco)
by Claymz
making atanf2 with atanf
 
hi, im trying to make atanf2 function (float MyArcTangent(float y, float x);) with atanf function (..). But im having problem with the autput values, i ca...
[10 replies] Last: *cough*Ithoughtitwasobvious*cough* It's not like the function is sudd... (by firedraco)
range/tolerance check
 
Hi all New to C++: how do i do a range check for a number to be within , say +/- 1e-5 of xxx? 1) : what is the syntax for e-5 to write as a constant? ...
[6 replies] Last: The stl::string class has >100 member functions. That doesn't make mon... (by exception)
Header File Issues
 
#include <iostream.h> //"iostream.h" also doesn't work main() { cout >> "test"; return 0; } What's wrong you ask? Nothing, exept the fa...
[7 replies] Last: I think you're using an old book. read some tutorials here and get you... (by Poke386)
cin.get() doesn't always work.
 
I've been working on a text-based RPG, and I use cin.get() a few times, with a "Press Enter to Continue" statement. I've used it a few times to break up the sto...
[6 replies] Last: put a cin.sync(); above your cin.get(); (by Poke386)
by taklct
leap year
 
The return type of isLeap is bool which has a value of either true or false. Complete the missing part of the following program: #include <iostream> usi...
[3 replies] Last: isLeap is declared as an integer function, but does not have a return ... (by Faldrax)
Assigning value to char pointer
 
Hello, I am not able to understand the following concept Main.cpp int main() { char* temp=(char*)malloc(32*sizeof(char)); temp =66; ...
[3 replies] Last: In both cases you are leveraging behavior that is not defined in C/C++... (by jsmith)
by amyotm
strcpy problems.
 
I do need some help. I don't know if anyone here could help me out about this but here's my issue; I have an array tline[10 (the number of lines allowed) ][2...
[3 replies] Last: The syntax "a.b" is used when a variable "a" has a type that is a stru... (by jsmith)
October 2008 Pages: 123... 20
  Archived months: [sep2008] [nov2008]

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