• Member Avatar for David W
    David W

    Replied To a Post in how to find standard deviation, percentile, and mode in dev c ++

    Or ...you could return a struct like this, after all processing done, to easily report the 'stats' for BOTH of height and weight ... (You could store weight stat's using …
  • Member Avatar for David W
    David W

    Replied To a Post in how to find standard deviation, percentile, and mode in dev c ++

    Your program logic flow could be made clearer by using individual functions for each 'job' ... A common way to get your data is to read it from a file. …
  • Member Avatar for David W
    David W

    Began Watching how to find standard deviation, percentile, and mode in dev c ++

    i need help for my school project in it. the function of the program is like a calculator that computes mean, median, mode, range, percentile, & standard deviation. and i …
  • Member Avatar for David W
    David W

    Replied To a Post in how to find standard deviation, percentile, and mode in dev c ++

    Your program logic flow could be simplified by using several functions ... one function to do each 'job'. Then you can simply call those functions in sequence. A common way …
  • Member Avatar for David W
    David W

    Replied To a Post in I'm new in the computer world...help me please v.v

    You may like to look at these C examples that emulate some of the functions and objects available in C++ Beyond Beginning Computer Programming in C ... http://developers-heaven.net/forum/index.php/topic,2598.0.html C SOME …
  • Member Avatar for David W
    David W

    Began Watching I'm new in the computer world...help me please v.v

    Hello Guys! :) I'm Shen. I'm new here and to programming also. I hope you guys could help me learn more about IT and stuffs 'cause I'm really interested in …
  • Member Avatar for David W
    David W

    Began Watching Program multiples of 3 or 5, and 3 and 5 special print

    Hi! To Everyone! Could you tell me how I can use GCC with that file comunicatoin, because : g++ main.cpp program1.cpp -o program1.exe - not valid - It didn't saw …
  • Member Avatar for David W
    David W

    Replied To a Post in Program multiples of 3 or 5, and 3 and 5 special print

    This is such a small problem that it seems more appropriate to just do it all in one short file: Note: the print logic flow can be made clear here …
  • Member Avatar for David W
    David W

    Replied To a Post in Multi data types in a line and read to struct

    Just change the top line in the example ... to: int fillAryFromFile( const char fname[], char Customer ary[], int max_size )
  • Member Avatar for David W
    David W

    Began Watching polynomial

    any programmer here???
  • Member Avatar for David W
    David W

    Replied To a Post in polynomial

    > any programmer here??? Many ... do you have a C++ coding question? Please show the code you have so far and any error messages. Please state the problem (you …
  • Member Avatar for David W
    David W

    Began Watching Multi data types in a line and read to struct

    Please help me in this code http://www.cplusplus.com/forum/general/140501/
  • Member Avatar for David W
    David W

    Replied To a Post in Multi data types in a line and read to struct

    Looking at what you had at the link you provided ... if the data in your file is all pre-validated ... i.e. ... 1) if the C strings are all …
  • Member Avatar for David W
    David W

    Replied To a Post in final assignment, please please please help!!!

    You are making it much harder than it is ... printf( ...) is a function int main( ... ) is a function Functions are really easy ... (once you 'see' …
  • Member Avatar for David W
    David W

    Replied To a Post in final assignment, please please please help!!!

    > Enter first letter (scan to see if letter, if not tell user to try again) >Enter second letter (scan again as above, see if letter 2 = letter 1. …
  • Member Avatar for David W
    David W

    Began Watching Disabling Letters and Special symbols

    Hi please help me, im trying to make a program that only accepts numbers. What can I do to disable letters and special symbols? for example, I enter "sffsdttsfsjfs" / …
  • Member Avatar for David W
    David W

    Replied To a Post in Disabling Letters and Special symbols

    > Hi please help me, im trying to make a program that only accepts numbers ... The presumption is that you are taking in a string then validating that string …
  • Member Avatar for David W
    David W

    Replied To a Post in final assignment, please please please help!!!

    > David, your suggestion i tried to use it, but the problem is this. The way the assignment is, it requires the user to enter one letter at a time. …
  • Member Avatar for David W
    David W

    Began Watching question on operator overloading []?

    Hi all, for the code shown below , every thing is okey except few things i output the obj[i](sure the [] is overloaded) with the overloaded << but inside the …
  • Member Avatar for David W
    David W

    Replied To a Post in question on operator overloading []?

    Not sure what you are trying to do in your class 'test' ... Is it supposed to be a class for arrays of integers with a pre-fixed maximun size? If …
  • Member Avatar for David W
    David W

    Replied To a Post in foo&(); what this means?

    You are right ... it is NOT correct code to return a ref to that temporary value. You need to have your compiler warnings turned ON. (You seemed to have …
  • Member Avatar for David W
    David W

    Began Watching foo&(); what this means?

    hi all, while i am learning the overloading operators ,i studied the following syntax ostream&operator<<(ostream &, classname&); i understand how it works but only something that i don't understand is …
  • Member Avatar for David W
    David W

    Stopped Watching foo&(); what this means?

    hi all, while i am learning the overloading operators ,i studied the following syntax ostream&operator<<(ostream &, classname&); i understand how it works but only something that i don't understand is …
  • Member Avatar for David W
    David W

    Began Watching foo&(); what this means?

    hi all, while i am learning the overloading operators ,i studied the following syntax ostream&operator<<(ostream &, classname&); i understand how it works but only something that i don't understand is …
  • Member Avatar for David W
    David W

    Began Watching Making a project into a program

    Hey guys. So I have made a little project but I want to give it to a friend to test it out. I am using Code::Blocks and I want to …
  • Member Avatar for David W
    David W

    Replied To a Post in Making a project into a program

    Your friend will need to have a compatible OS for your executable file to run on that OS.
  • Member Avatar for David W
    David W

    Began Watching final assignment, please please please help!!!

    I have an assignment that requires me to make a code to basically have the user input 5 letters into an array. The five letters then have to be checked …
  • Member Avatar for David W
    David W

    Replied To a Post in final assignment, please please please help!!!

    You could (loop to) take in all 5 char's into a C string buffer at 'one go' ... using fgets and a sufficently (extra) large buffer Then validate the 5 …
  • Member Avatar for David W
    David W

    Began Watching What is the difference between Static Variable and Ordinary Variable?

    What is the difference between Static Variable and Ordinary Variable?Which Variable is expensive to use in c++ programming?Give some resion?
  • Member Avatar for David W
    David W

    Replied To a Post in What is the difference between Static Variable and Ordinary Variable?

    Why don't you Google 'example uses of static variables in C++ or C' ... or something like that ... you will learn, by the 'where' and 'why for' of usage …
  • Member Avatar for David W
    David W

    Began Watching what is meant by range of data type i.e. char

    Hi there, I need explanation for the range of data type say character which is 1byte ranges from -127 to 127 or 0 to 255. I did not understand what …
  • Member Avatar for David W
    David W

    Replied To a Post in what is meant by range of data type i.e. char

    How many different codes can 8 bits hold? ...........................16 .........? ...........................32 .........? ... What you want each unique bit pattern to mean, is up to you. Do you know what …
  • Member Avatar for David W
    David W

    Began Watching String not naming a type

    My instructor provided this class for us to use. He hasn't answered the e-mail I sent, and this is due soon. I keep getting an error. I haven't touched the …
  • Member Avatar for David W
    David W

    Replied To a Post in String not naming a type

    So ... as @NathanOliver and @L7Sqr and other of Dani's friends have suggested ... you could use this, to provide only what you need to permit the program to recognise …
  • Member Avatar for David W
    David W

    Replied To a Post in Data from Text File into Dynamic Array

    Again @mike_2000_17, thank you for your thoughtful answers. I have pretty much, to-date, avoided using exceptions in C++, and instead, checked the various values returned ... or the error flag …
  • Member Avatar for David W
    David W

    Began Watching if else statement

    hi. can someone help me with this . req: if item code is A description is CHAIR witha a prize of 200 else if itemcode is B description is TABLE …
  • Member Avatar for David W
    David W

    Replied To a Post in if else statement

    A nice (general) way to handle questions like this might be to use a (data) struct (record) ... /* def'n of struct ... */ typedef struct { char code; /* …
  • Member Avatar for David W
    David W

    Replied To a Post in Multi-dimensional Vector

    Ok ... firstly you had a typo, I think in your line 1 above: > I have found how to declare a two dimensional vector like below: vector < vector …
  • Member Avatar for David W
    David W

    Replied To a Post in Multi-dimensional Vector

    No ... you can have as many D's as memory space permits. If you wish to define some new objects, and encapsulate functions and data relevant to those objects, you …
  • Member Avatar for David W
    David W

    Began Watching Data from Text File into Dynamic Array

    For the past while, I have gotten comfortable doing things a particular way when it comes to inputting data: i) create text file whose first entry is N, an integer …
  • Member Avatar for David W
    David W

    Replied To a Post in Data from Text File into Dynamic Array

    @mike_2000_17 ... I thought your code above looked pretty cool ... and so thought that I would test it out, when I had a chance ... using a C++11 compiler. …
  • Member Avatar for David W
    David W

    Began Watching overload assignment operator

    Am having real problem understanding what the problem is. Here is the code : Stack.h : #ifndef STACK_H #define STACK_H #include<Node.h> typedef int Stack_entry; class Stack { public: enum Error_code{succes,overflow,underflow}; …
  • Member Avatar for David W
    David W

    Replied To a Post in overload assignment operator

    Firstly ... take a look at this in your 'main' function: Stack outer_stack; Stack inner_stack; // probably want this here ??? for( int i = 0; i < 100000; ++i …
  • Member Avatar for David W
    David W

    Began Watching Multi-dimensional Vector

    Hi there. I have found how to declare a two dimensional vector like below: vector < vector < vector<int> > > myvector; My question is, how do I declare a …
  • Member Avatar for David W
    David W

    Replied To a Post in Multi-dimensional Vector

    No ... vector< vector< vector< int > > > myvector; Note ... you also could grow new objects ...'step-wise' as ... could code a class Matrix using a vector of …
  • Member Avatar for David W
    David W

    Began Watching typedef structure in C

    Hello Everyone, This question is quite hard for me to understand it. I have gone this further. your help will be appreciated. The program is used to calculate volumes of …
  • Member Avatar for David W
    David W

    Replied To a Post in typedef structure in C

    Sometimes looking at some similar problem code examples can give you ideas how to get started ... Suppose you had a Money struct ... typedef struct { unsigned dollars; unsigned …
  • Member Avatar for David W
    David W

    Began Watching Column of Asterisks

    How can i write a program that uses for print statements to print 6 pattern of asterisks?
  • Member Avatar for David W
    David W

    Replied To a Post in Column of Asterisks

    Can you code a shell 'hello world' program that compiles and gives the expected output? Well, if you can do that ... then think how you might print out all …
  • Member Avatar for David W
    David W

    Replied To a Post in homework

    > Your question and example output are really very well given to you ... Oops ... that is NOT the case ... the example output given when the balance exceeds …

The End.