Search:

Type: Posts; User: eazhar

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,383

    complex/imaginary numbers in c++

    Anyone know the syntax for allowing complex (a + bi) arithatic? Also what is the syntax for finding the square root of numbers? What headers do i need etc.?
  2. BIIIIIIG PROBLEM!

    #include <iostream>

    using std::cout;

    #include <iomanip>
    using std::ios;

    using std::setw;
    using std::setiosflags;
  3. wow i didn't expect you to rewrite the entire...

    wow i didn't expect you to rewrite the entire code :D But really it was meant to be that way because it was supposed to be simplistic code taken from the book and modified not necceraly efficient. ...
  4. okay i will ost the psudocode of what is supposed...

    okay i will ost the psudocode of what is supposed to happen:

    Initialize the suit array
    Initialize the face array
    Initialize the deck array

    For each of the 52 cards
    Choose slot of deck...
  5. pointers, arrays, and functions oh my (newbie Q)

    I have this program i modified that shuffles strings representing a deck of 52 cards. I've made it so it only deals 5 cards... similar to poker. Basically, im trying to create a function that will...
  6. Replies
    4
    Views
    1,472

    Im thinking that maybe i should include an if...

    Im thinking that maybe i should include an if statement but im not sure how i could incorperate that to "detect" two modes... After it goes through the frequency loop it totally ignores the other...
  7. Replies
    4
    Views
    1,472

    thanks i modified the code to: void...

    thanks i modified the code to:




    void median( int answer[], int size )
    {
    cout << "\n********\n Median\n********\n"
    << "The unsorted array of responses is";
  8. Replies
    4
    Views
    1,472

    arrays and functions (beginner q)

    edit since this question is more important than my other now:




    void mode( int freq[], int answer[], int size )
    {
    int rating, largest = 0, modeValue = 0;

    cout << "\n********\n ...
  9. Replies
    5
    Views
    1,415

    2nd question

    okay now im doing the second question on the link i've posted (3.13)




    #include <iostream>

    using std::cout;
    using std::cin;
    using std::endl;
  10. Replies
    5
    Views
    1,415

    New code

    #include <iostream>

    using std::cout;
    using std::cin;
    using std::endl;

    #include <iomanip>

    using std::setprecision;
    using std::setiosflags;
  11. Replies
    5
    Views
    1,415

    Pretty simple for you good programers...

    Im a newbie of course and im taking a class to learning c++. We are in the functions chapter and this is my code which i have made so far.... i have no idea where to go what to do etc.

    btw, I am...
Results 1 to 11 of 11