Search:

Type: Posts; User: pkananen

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    4,269

    i know what the difference between the degrees...

    i know what the difference between the degrees is, just want to know if anyone has any stories of the real difference it makes in the world
  2. Replies
    8
    Views
    4,269

    computer science or computer engineering??

    right now i am a comp sci major, but i am considering becoming a comp engineering major. i think i would like the more hands-on work. some other people have said it would open up more opportunities...
  3. Replies
    9
    Views
    2,035

    is "data structures and algorithms" a book? ...

    is "data structures and algorithms" a book? because the book for the data structures class i am dropping is called "data structures and algorithm analysis" i will be studying it before i take the...
  4. Replies
    9
    Views
    2,035

    wow, good idea. i guess if i was really...

    wow, good idea. i guess if i was really ambitious, i could simulate a day of buisness, and random int generators could determine how many "items" would be "bought" each day, and i would gain that...
  5. Replies
    9
    Views
    2,035

    Program Ideas Needed

    ok, i need some advice. i am a sophomore computer science major. i took my first c++ class last year, my second last semester, and i was taking data structures this semester. i missed the first...
  6. Replies
    10
    Views
    16,534

    those aren't working. the second one doesn't let...

    those aren't working. the second one doesn't let me input a new value for my variable
  7. Thread: Arrrrrggghhh

    by pkananen
    Replies
    17
    Views
    1,662

    why is there a 'double' in front of (mass*......?

    why is there a 'double' in front of (mass*......?
  8. Replies
    10
    Views
    16,534

    how do you check to see if input is an int?

    if i want to take the input of a user and check to see an int, how do i do that?
  9. Replies
    4
    Views
    1,639

    scanf question

    could someone tell me what the "%7s" means in this:

    scanf("%7s",&record.field3);
  10. i know those header files are wrong. i usually...

    i know those header files are wrong. i usually use the non-.h ones, but for some reason i didn't here. thanks.
  11. #include #include ...

    #include <cassert.h>
    #include <conio.h>
    #include <cstdlib.h>
    #include <iostream.h>
    #include <fstream.h>
    #include <string.h>
    #pragma argsused

    using namespace std;
  12. why does my compiler (borland 5) not recognize strtok()?

    i have
    #include <string.h>
    but it doesn't recognize strtok()
  13. could someone show me how to read in a string from a file...

    and how to use strtok() to parse it up in c++. i am planning on using getline(). thank you in advance
  14. can someone give me a brief explanation of relative and sequential files??

    and how to go from a seq. txt file to a relative file in c++
  15. Replies
    8
    Views
    5,694

    i found out that structs are the best way to do...

    i found out that structs are the best way to do this. i don't know anything about those though. i found this.

    The project consists of loading a random file.


    Students using The C Language,...
  16. Replies
    8
    Views
    5,694

    yeah, i have no idea either. i never really...

    yeah, i have no idea either. i never really learned this stuff before. so do i use a linked list or something? i am so confused.
  17. Replies
    8
    Views
    5,694

    what does this mean to you?

    this is for my data structures C++ class. this is the lab description. I feel pretty confused. can anyone tell me what this would mean to you?

    "Change your sequential file into a relative file,...
  18. question about assignment operators/copy constructors (c++)

    i am trying to make a new class object (MySquareMatrix)by doing this:

    MySquareMatrix C(A); // making a copy of 'A' called 'C'

    the only thing is that when i try to access 'A' later, it has the...
  19. Replies
    5
    Views
    1,268

    ok...i guess that makes sense, but i feel like i...

    ok...i guess that makes sense, but i feel like i don't know what i should do next. what would i set a + b equal to?
  20. Replies
    5
    Views
    1,268

    i made the operator non-member because my prof...

    i made the operator non-member because my prof said to.

    here is the operator:

    MySquareMatrix operator +(const MySquareMatrix &A, const MySquareMatrix &B)
    {
    double sum;
    int order =...
  21. Replies
    5
    Views
    1,268

    defining objects in a non-member operator?

    ok, i have two matrices a and b. they are objects from a class. so i write a non-member operator + to add them. the new matrix is called c. if i declare the matrix c in the operator then the body...
  22. what does "member function must be called or its address taken" mean?

    anyone know?
  23. Replies
    3
    Views
    1,699

    can i call member functions in the definition of...

    can i call member functions in the definition of the operator?
  24. Replies
    3
    Views
    1,699

    quick c++ operator question

    my prof gave me this stub for an operator:

    MySquarMatrix operator +(const MySquareMatrix &, const MySquareMatrix &);
    {
    // add matrices a+b
    }

    MySquareMatrix is the name of the class, but this...
  25. how to dynamically allocate double dimensional arrays/vectors with 'new'??

    can anyone help me? its in a class.
Results 1 to 25 of 25