Search:

Type: Posts; User: imortal

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. I know this is alot of code for a Command line...

    I know this is alot of code for a Command line calculator but its i only made it to help me understand pointers and classes better.
  2. ...continued

    EDIT:: Fixed problem with contstructor.
  3. Problem with cin. I want the characters after input to stay on the same line.

    EDIT::: i fixed the problem with the contructor :)

    However, cin automaticly moves to the next line after input. Is there a way i can make Cin stay on the same line, so i can use the +, -, *, and /...
  4. Replies
    21
    Views
    2,967

    Ok, update, scratch that compiler error stuff...

    Ok, update, scratch that compiler error stuff with the .h. I didnt know that it was written different in C++.
  5. Replies
    21
    Views
    2,967

    When i delete off the .h, i get compiler errors....

    When i delete off the .h, i get compiler errors. Does it really make a difference anyways?

    Also, what excactly does "using namespace std;" or whatever it was, do?
  6. Replies
    21
    Views
    2,967

    Ok, i think i did this right, but it won't...

    Ok, i think i did this right, but it won't compile. Ill post the code and the compiler errors.


    #include <iostream>
    #include <stdlib.h>
    #include <fstream.h>

    class workingclass
    {
    public:
  7. Replies
    21
    Views
    2,967

    I have to use .h, thats why i do that. Someone...

    I have to use .h, thats why i do that. Someone esle already told me that above.

    jawib: I get like 12 errors when i try to compile that code.
  8. Replies
    21
    Views
    2,967

    For now this is fine, but i want to learn to...

    For now this is fine, but i want to learn to create my own constructors and destructors as well. Can someone give me some example code creating a class with just the constructor and destructor?
  9. Replies
    21
    Views
    2,967

    Ok, so basicly i don't have to worry about adding...

    Ok, so basicly i don't have to worry about adding a constructor and destructor, because the compiler automaticly does that for me?
  10. Replies
    21
    Views
    2,967

    Starting to get aggrivated with classes....

    #include <iostream>
    #include <stdlib.h>
    #include <fstream.h>


    class aclass
    {
    public:
    aclass();
    ~aclass();
  11. I'm having a really hard time understanding classes.

    As the subject reads, i'm having a huge amount of trouble understanding classes. The tutorials on this sight are good, but they don't give enough simple examples for me to follow on. What I'm having...
  12. Replies
    9
    Views
    2,035

    Never mind, i got it :) Thanks guys.

    Never mind, i got it :)

    Thanks guys.
  13. Replies
    9
    Views
    2,035

    what do you mean by collective...

    what do you mean by collective...
  14. Replies
    9
    Views
    2,035

    Trying to compare to strings...

    No matter what the strings are this program always reads them as different strings...


    #include <iostream>
    #include <stdlib.h>
    #include <string.h>


    int main(int argc, char *argv[])
    {
  15. Can you make this alittle bit more clear for...

    Can you make this alittle bit more clear for me...im really new to struct, and programming in general..
  16. Using struct in function. Allows me to declare, but wont let me call.

    Here is my code..


    #include <iostream>
    #include <stdlib.h>

    int bill(struct info(int id, int pass));
    struct info
    {
    int id;
  17. First (semi) usefull program. Big accomplishment for me.

    Well a while ago i started learning C. Then i toook about a month off from learning anything new, or even using what i already had learnt. I came back the other day to get goin again with it and i...
  18. Replies
    2
    Views
    880

    Ok, thankyou.

    Ok, thankyou.
  19. Replies
    2
    Views
    880

    Question on where to restart..

    I was learning C for a while, then took a couple month break from learning it. Now i want to get back into programming, but i remember so little that im going to just have to start over from the...
  20. Replies
    5
    Views
    1,019

    Hahaha, omg. Thanks. I completly forgot about...

    Hahaha, omg. Thanks. I completly forgot about input. Ill go add scanf now.
  21. Replies
    5
    Views
    1,019

    Need help wiht switch statements..

    Im learning switch statments and i cant get the output to show up in the counsole. Heres the code..
    #include <stdio.h>
    #include <stdlib.h>

    int main(int argc, char *argv[])
    {
    int a;
    ...
  22. where excatly would i put the strcmp in the "if".

    where excatly would i put the strcmp in the "if".
  23. the example you gave me looks like its from c++...

    the example you gave me looks like its from c++
    can you give me an example in plane C?
    thanks
  24. is there a way to use a char variable in an if?

    Hey, im pretty new and havent been able to get a good book yet so ive been using some tutorials i found on the internet.

    well my question is, is there a way to use
    a char variable in an "if"....
  25. i c, thanks.

    i c, thanks.
Results 1 to 25 of 28
Page 1 of 2 1 2