Search:

Type: Posts; User: MegaManZZ

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,635

    fstream is just not working for me..

    I've been having a lot of problems with fstream lately..
    for my class theres this source code that won't compile... i was hoping someone could help me shed some light...


    #include<iostream>...
  2. Replies
    2
    Views
    1,461

    AAAAAAHhhhhhhhhh silly me.. learnt something new.

    AAAAAAHhhhhhhhhh
    silly me.. learnt something new.
  3. Replies
    2
    Views
    1,461

    typedef a function pointer question..

    typedef void (*fp)(int i, int j);

    void typedef_func(int i, int j)
    {
    cout << "i = " << i << " : j + " << j << endl;
    }

    int main()
    {
    fp obj;
  4. well put Fillyourbrain.. thnks

    well put Fillyourbrain.. thnks
  5. difference between returning a 'int&' instead of a 'int'

    can someone tell me the difference, pros and cons of both the following functions.


    class Node
    {
    int data_;
    Node* prev_;
    Node* next_;

    public:
  6. Replies
    7
    Views
    1,158

    thanks for the reply guys.. did anyone have a...

    thanks for the reply guys..

    did anyone have a way of
    showing me how to properly make an int * and on another line dynamically allocate memory to it. and then insert data into it and "cout" it
  7. Replies
    7
    Views
    1,158

    simple question regarding pointers..

    Hey guys.. I'm hoping for some clarification on this situation i created.

    i was playing around with pointers and this situation came up.
    (please forgive me if im just being absent minded and it's...
  8. Replies
    4
    Views
    1,444

    thanks guys, that helps.. It was a dumb...

    thanks guys, that helps..
    It was a dumb mistake!
    guess i didn't get a good nights sleep :)
  9. Replies
    4
    Views
    1,444

    learning Templates.. having problems..

    this code is giving me an error. im still trying to figure it out and getting frustrated..
    seems like a simple problem. here i is.



    #include <iostream>
    using namespace std;


    template...
  10. god bless these forums.. thank you foxman.

    god bless these forums..
    thank you foxman.
  11. plz help with deleting class deconstructor.

    **just realized my topic title makes no sense.. apologize ahead of time.

    I'm having a hard time with this code.. plz help me out..



    #include<iostream>
    using namespace std;

    char...
  12. awesome... I'm pretty sure i get it now. Thanks...

    awesome...
    I'm pretty sure i get it now. Thanks for the help.
  13. thanks Elysia for you concern, but i'm already...

    thanks Elysia for you concern, but i'm already aware of all those things you have mentioned. I just was looking for the answer to a particular question.

    As for the answers that everyone has...
  14. switches and classes... so very very confused :( plz clarify

    would really appriciate someone clarifying a couple of questions for me..

    first question:
    I typed this code in


    #include<iostream>
    using namespace std;

    char input[101];
  15. Replies
    19
    Views
    2,301

    I'm not sure if thats the solution he's looking...

    I'm not sure if thats the solution he's looking for.. ill take it to account tho.. anyone have any other solutions.?
  16. Replies
    19
    Views
    2,301

    simple pointer-to-func question.

    Im doing a homework assignment and am stuck on a question which i feel should be rather easy, but is giving me a really hard time. Please help a guy out.

    how can you pass a "void pointer" to a...
  17. Replies
    4
    Views
    915

    could you possibly give me an example?.

    could you possibly give me an example?.
  18. Replies
    4
    Views
    915

    string question.

    how could i achieve the following.


    string monthChoice, dateChoice;
    int dayChoice, yearChoice;

    cout<<"enter month";
    cin>>monthChoice;
    cout<<"enter day";
    ...
  19. makes sense ill give it a try

    makes sense ill give it a try
  20. need some more help with interegers in loops.

    inside my function, i need these statements to work.
    the function is.

    void enter(struct date *pdate, char desc[ ])




    check = 0;
    while(check != 1)
  21. Replies
    5
    Views
    1,517

    this is a class lesson and the example uses...

    this is a class lesson and the example uses gets??? dunno why but it does.. other then that everything worked fine!!
  22. Replies
    11
    Views
    2,011

    cool. but why isn't the comparison working lol:)

    cool. but why isn't the comparison working lol:)
  23. Replies
    5
    Views
    1,517

    please help with a string comparison.

    i need to input a month and check to see if the month exists in the array.
    here is the code.


    char monthNames[2][10] = {"jan", "feb"};
    int check = 0;
    while(check != 1)
    {
    ...
  24. Replies
    11
    Views
    2,011

    well i guess it's c. It's a c++ class tho but...

    well i guess it's c. It's a c++ class tho but they gave a c example to work with.. sorry i will post on the c board.
  25. Replies
    11
    Views
    2,011

    this is a homework assignment.. the only header...

    this is a homework assignment.. the only header thats included is
    #include <stdio.h>

    does that support std::string?

    also is there a faster method of getting the same result?
    or better method.
Results 1 to 25 of 47
Page 1 of 2 1 2