Search:

Type: Posts; User: Azmeos

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,660

    thanks

    thanks
  2. Replies
    4
    Views
    5,660

    String is not recognized?

    Here is my main function:



    /* CSE 231 Project 5 Solution
    This file simulates the madlib game by reading a user inputted
    file which contains the story line embedded with #XXXX#.
    */
    ...
  3. Thread: 3D Vectors

    by Azmeos
    Replies
    17
    Views
    2,918

    Ok, so magnitude = sqrt(x^2+y^2+z^2); where...

    Ok, so

    magnitude = sqrt(x^2+y^2+z^2);

    where x, y and z are really x1-x2, y1-y2, and z1-z2 ?
  4. Thread: 3D Vectors

    by Azmeos
    Replies
    17
    Views
    2,918

    I see. So, then I just multiply (or do I add??)...

    I see. So, then I just multiply (or do I add??) those new values to the current coordinates? And we still have to deal with the issue of the speed. How does that come in? Just a multiplication? And...
  5. Thread: 3D Vectors

    by Azmeos
    Replies
    17
    Views
    2,918

    Hrm, I still don't quite understand. What am I...

    Hrm, I still don't quite understand. What am I dividing it by? Please explain a bit more.
  6. Thread: 3D Vectors

    by Azmeos
    Replies
    17
    Views
    2,918

    black - by normalizing do you mean to take the...

    black - by normalizing do you mean to take the cross product?

    fib - I don't quite catch what you mean. Could you explain a little furthur?
  7. Thread: 3D Vectors

    by Azmeos
    Replies
    17
    Views
    2,918

    I guess I have to calculate the angles? I am...

    I guess I have to calculate the angles? I am given three pieces of information: The current coordinates, the desination coordinates, and the speed. For now, direction of the spaceship does not matter...
  8. Thread: 3D Vectors

    by Azmeos
    Replies
    17
    Views
    2,918

    3D Vectors

    Here's what I'm doing:

    Moving a space ship from one point in space to another point in space at a constant speed.

    Here's my question:

    How do I calculate the per-second vector components of...
  9. Replies
    8
    Views
    1,232

    PLEASE use code tags. do a SWITCH sentence......

    PLEASE use code tags.

    do a SWITCH sentence...


    switch(sign) {
    case '*':
    answer = first_number * second_number;
    break;
    case '+':
  10. Replies
    8
    Views
    1,232

    #include #include int...

    #include <stdio.h>
    #include <iostream.h>

    int main()
    {
    int first_number = 0;
    int second_number = 0;
    int answer = 0; //adding 1st and 2nd number here has no effect... since they are both...
  11. Replies
    5
    Views
    1,674

    And those questions are...? You still have...

    And those questions are...?

    You still have some spelling errors:
    sruct attribs should be
    struct attribs

    I also think you need to
    #include <string>
  12. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    For all of you who were helping me with it,...

    For all of you who were helping me with it, thanks... I figured it out!
  13. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    Can anyone help me?

    Can anyone help me?
  14. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    Thanks guys, for helping me... however... when I...

    Thanks guys, for helping me... however... when I tried JawiB's code, it runs each one 7 times... which I don't want. it should run it once, checking through each one 7 times. here's the updated...
  15. Replies
    6
    Views
    8,951

    http://www.webopedia.com/TERM/D/DLL.html

    http://www.webopedia.com/TERM/D/DLL.html
  16. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    I have added comments to show what I believe this...

    I have added comments to show what I believe this does... Please correct me if I'm wrong. And if there's an easier/better/right way to do it.

    (it says PHP but that's just so you can see the color...
  17. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    ok, I made that change... but I'm trying to...

    ok, I made that change... but I'm trying to isolate the problem of why my program won't work (properly) ... Do you think this is all working properly? This part, at least.
  18. Replies
    16
    Views
    2,422

    Why not just store it as a member function in a...

    Why not just store it as a member function in a class?
  19. Replies
    10
    Views
    2,721

    mhmm.

    mhmm.
  20. Replies
    10
    Views
    2,721

    #include using namespace std; int...

    #include <iostream>
    using namespace std;

    int main()
    {
    int i=1;

    cout << i; /*i=1*/
    i++;
    cout << i; /*i=2*/
  21. Replies
    16
    Views
    2,422

    First off, please use [ code ] tags... second...

    First off, please use [ code ] tags... second off, instead of putting


    int test();

    all by itself, just move the function above the main() function so that the compiler understands.

    Like...
  22. Replies
    10
    Views
    2,721

    ++count; Increases count by 1. count--;...

    ++count; Increases count by 1.

    count--; Decreases count by 1.
  23. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    I actually did change it to this... const...

    I actually did change it to this...

    const unsigned int bit[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
    int binValue = 0;
    int count = 0;
    int j = 0;

    for(int k=0; k <...
  24. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    Thanks everyone, with your help I figured it out....

    Thanks everyone, with your help I figured it out. Now it works, the binary is converted properly. Now I just have to figure out how to get it to read up to a non-multiple of 8 ... Say I have a 10x10...
  25. Thread: Bits byte

    by Azmeos
    Replies
    34
    Views
    3,521

    Here is a simpler version of what I'm trying to...

    Here is a simpler version of what I'm trying to do...


    #include <iostream>

    using namespace std;

    int main() {
    int val = 255;
    int result = 0;
Results 1 to 25 of 65
Page 1 of 3 1 2 3