User Profile

Collapse

Profile Sidebar

Collapse
zerobinary
zerobinary
Last Activity: Sep 17 '07, 04:09 AM
Joined: Aug 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • zerobinary
    replied to c++ script help
    in C
    how do u change it so the user can decided whatever or not to enter their last name
    Code:
    #include <iostream>
    #include <string>
    using namespace std;
    int main()
    {
        string title= " the great";
        typedef string revolution;
        revolution heros;
        revolution rocks;
        cout<<"Enter your first name and last name and you will be hero:\n";
    ...
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    what difference will it make, if I change the return value of the loop from 0 to 1.
    and how do u include the last name in the app .
    I mean the want the output to be sth like this
    you are xxx cool the great
    I can't make a spacing between xxx and cool
    don't want to use \t space too much
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    How is that
    but with the reutrn value with 1 instead of 0 i don't c a difference
    Is there a difference between the value of 0 and 1
    Code:
    #include <iostream>
    #include <string>
    using namespace std;
    int main()
    {
        string title= " the great";
        typedef string revolution;
        revolution heros;
        cout<<"Enter your name and you will be
    ...
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    I got a problem
    cout<<"You are" + heros+title; how come it won't display that line.
    Code:
    #include <iostream>
    #include <string>
    using namespace std;
    int main()
    {
        string title= "the great";
        typedef int revolution;
        revolution heros;
        cout<<"Enter your name and you will be hero";
        while(cin>>heros)
    ...
    See more | Go to post

    Leave a comment:


  • zerobinary
    started a topic c++ script help
    in C

    c++ script help

    I got error like this is bloodshed dev c++
    13 C:\Documents and Settings\Admini strator\Desktop \heros.cpp expected unqualified-id before '}' token
    Code:
    #include <iostream>
    #include <string>
    using namespace std;
    int main()
    {
        string title= "the great";
        typedef int revolution;
        revolution heros;
        cout<<"Enter your name and you will be hero";
    ...
    See more | Go to post

  • zerobinary
    replied to organizing app and data
    in C
    u can pass values to this function, what goods does that offer.
    And for the return value, returning to that what good is that.
    Err, still don't quite get the example.
    Sorry about that, and the late reply.
    I am deeply sorry.
    See more | Go to post

    Leave a comment:


  • zerobinary
    started a topic organizing app and data
    in C

    organizing app and data

    I am reading a book right now, but I don't that this
    double grade(double midterm, double final, double homework)
    {
    return 0.2*midterm+0.4 *final+0.4+home work;
    }
    what does that means?????
    plz help
    And how does it work, declaring a variable inside and another.
    How to this help organizing app.
    And how does this return work.
    Plz help
    See more | Go to post

  • zerobinary
    replied to c++ script help
    in C
    I get it now thx
    for ur great help
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    or is it 4/2+1 and 4/2-1+1 then divided by two.
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    plz come back and help.
    I need ur help plz.
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    so is the fifth number divided by 2 but rounded up the decimal.
    so is 5/2 +5/2-1 then divided by 2
    so is 2.5 + 1.5/2
    but since they rounded up it is 3+2 /2 right?????
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    4/2 + 4/2-1 /2
    because of order of operation so is the ((4/2+4/2)-1)/2
    which is 2+2-1 which is three then divided by 2.
    but that is the first number plus second /2.
    not second number +the third one??????
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    so size is actually
    for example if i input these number.
    1,2,3,4
    size will contain 1,2,3,4
    instead of just 4 like counting how many numbers a there
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    any answer. Plz i need ur hand.
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    o so because size is vector double
    Which means it actually contain the number itself and not how many numbers there is right???
    It is Sunday, I know I am sorry for bugging u in Sunday.
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    Err don't quite get what do u mean by that.
    Sorry about that.
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    median=size %2 ==0 ? (homework[mid]+homework[mid-1] /2
    :homework[mid];
    sorry i still don't get it.
    I get the non-pc version how to compute median.
    Like if it is even divide the size /2
    for example
    10/2
    the median will be 5 number +6 number /2
    And the odd number is size/2
    then the number to that is the median.
    But the problem is isn't
    median=size %2 ==0 ? (homework[mid]+homework[mid-1]...
    See more | Go to post

    Leave a comment:


  • zerobinary
    replied to c++ script help
    in C
    no i just don't understand the script. Plz help
    #
    return1; // does that mean if this statement fail it restart the if statement
    line 28
    line 32-34
    #
    median=size %2 ==0 ? (homework[mid]+homework[mid-1] /2
    #
    :homework[mid];
    #
    //isn't homework[mid]= to homework homework[size/2] which is how many numbers
    and line 37
    <<0.2+midterm+0 .4 *final+0.4*medi an//isn't median...
    See more | Go to post

    Leave a comment:


  • zerobinary
    started a topic c++ script help
    in C

    c++ script help

    Code:
    #include <algorithm>
    #include <iomanip>
    #include <ios>
    #include <iostream>
    #include <string>
    #include <vector>
    using namespace std;
    int main ()
    {
    cout <<" plz enter your first name: ";
    string name;
    cin>>name;
    cout<<"Hello, "<<name<<"!"<<endl;
    cout<<plz
    ...
    See more | Go to post

  • zerobinary
    replied to c++ push back function
    in C
    docs for compiler ???
    All i want to know is what does it do.
    No need to push compiler to limit
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...