Beginners - February 2010 (Page 19)

Place values (1,2)
 
How do I get a decimal like 0.99584585 to just 0.99?
[24 replies] Last: I think the op wanted to change the actual thing though. setprecision ... (by tummychow)
User input amount of Class objects in array
 
I am trying to understand how to create a user input amount of class objects in an array. I have tried declaring the object array index as a private int, an...
[2 replies] Last: Wow, I was unfamiliar with the term and concept, but I think I've got ... (by marmar9)
stuck on OpenAL
 
Hi, I wonder if you guys can offer a second pair of eyes on this. I am writing a basic audio library (container as opposed to function library) syntax error ...
[1 reply] : Where is the AudioLibrary type declared/defined?? In AudioLibrary.... (by guestgulkan)
Outputfile problem
 
My output file needs to be accurate to 2 decimal places but it displays three. Any advice? #include <iostream> #include <string> #include <iomanip> #in...
[2 replies] Last: do i set out precision just about the out section? (by sagaramin)
just curious
 
I'm in an Intro to programming C++ class. We are just getting to using switches. Which i'm not having a problem with. I'd just like to know how to get a program...
[13 replies] Last: Whenever you get input from the user, remember that the user will... (by Duthomhas)
by Kartik
Arrays or Objects?
 
Hi all, I am just getting into the world of OOP and I'm not totally sure in what situations it's better to use objects and when it's simpler to just revert t...
[3 replies] Last: In general an object-array wrapper is easier to use, more powerful and... (by tummychow)
by cppbeg
reading text file
 
v435gfr436gt
[4 replies] Last: let us see a piece of your code.. (by blackcoder41)
by Kairi
GCD
 
the greatest common divisor of two integers n1 and n2 is as follows: first find d to be the minimum of n1 and n2, then check whether d, d-1, d-2,....,2, or 1 is...
[5 replies] Last: @ Kairi Your teacher is not being helpful to just say "I wanted a di... (by Duthomhas)
by cppbeg
hello
 
vx44vf
[1 reply] : use the function _kbhit(); or _getch(); I see another system() func... (by olredixsis)
sizeof(array) returns different values in main() and user defined functions
 
Hello, everyone. I found sizeof(array) only works correctly in main() function. Could you please tell me why? ----------------------------------------------...
[2 replies] Last: Thanks for telling me. :-) (by lancelot)
what is the use of "using namespace std;"
 
what..is..it..it..is.not..working..with..programs
[8 replies] Last: another example, #include <iostream> namespace first { ... (by beginner at programming)
Delete a Pointer in an Array
 
Basically, I have a double pointer that points to a list of pointers that point to instances of a class and I need to remove one of the instances in the middle ...
[4 replies] Last: I really appreciate the help but I don't think you understand what I a... (by embmicro)
input random int and arrange from low to high
 
Hi, I just want to know the simplest way to arrange integers. Integers are inputed randomly into one variable at using a loop... after inputing 10 integers t...
[1 reply] : Use std::sort(). (by firedraco)
Validation
 
I am writing a program that corresponds to one of my other classes, of which is circuit analysis, but i need the user to enter only numbers when it asks for the...
[8 replies] Last: You are missing the point(s). The responses you have received so far a... (by Duthomhas)
Simple syntax question
 
I'm brand new to this and I've ran into a problem. Try not to laugh too hard. I have to write a program that calculates the breakdown of wages but for some re...
[3 replies] Last: We've all asked dumb questions at one point or another. Glad to help ... (by moorecm)
Sending Keystrokes To Other Windows
 
I was trying to make a program that would send keystroke to other application windows. After a lot of Googling I found this guy's code: http://forum.codecall.ne...
[no replies]
by ADii
How To Search and compare array using fileing
 
HI alll:), i need some Help from you guy'z... . . Em making DATABASE. .. .and save applicents Recoard.. .NIC, Name, father name,etc; but after that i want ko ...
[13 replies] Last: Well, this is getting nowhere. ADii, http://cplusplus.com/articles/... (by closed account S6k9GNh0)
Multiples
 
Does anyone have, or know where I could get a snippet of a function that accepts four integer values (two numerators and two denominators) and finds the least c...
[6 replies] Last: Sorry it took so long to reply but thanks you guys sooooo much!!! Help... (by cartpauj)
file binary data in array
 
I try to extract some data of a binary file, and put this data in a array, I have writed this code // VC5.cpp : Defines the entry point for the console appl...
[2 replies] Last: I have modified different line, no error in debug, but at the compilat... (by cedm237)
~CLASS
 
I'm just trying to get a handle on destructors at the moment. Are destructors only used when a class dynamically allocates memory with new or pointers? For...
[3 replies] Last: Destructors are called when a an object either goes out of scope or is... (by iharrold)
February 2010 Pages: 1... 1718192021... 32
  Archived months: [jan2010] [mar2010]

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