CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Aashi

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    907

    Re: string question

    got it... thanks..
  2. Replies
    2
    Views
    590

    Re: mod operator

    oops, ok, sorry. i just woke up did stupid mistake.. :D
  3. Replies
    2
    Views
    590

    [RESOLVED] mod operator

    hi,
    i've a confusion about this code:

    int main()
    {
    int rear=1%10;
    cout<<rear;

    return 0;
  4. Replies
    8
    Views
    907

    Re: string question

    i want to make a logic for converting infix expression to postfix expression: for this i need to have stack and string. I can use char array for this, i just want to try with string. So, how can i...
  5. Replies
    8
    Views
    907

    Re: string question

    thanks all, :)
    can anyone tell me which member function should i use for this purpose? from this site http://www.cplusplus.com/reference/string/string/
    i tried with find, compare..
  6. Replies
    8
    Views
    907

    [RESOLVED] string question

    hi all,

    suppose i've a string that has abc like:

    string str;
    cin>>str; // user enters abc
    for(int i=0; i<str.length(); i++)
    {
    //compare if str has 'a'
    // loop...
  7. Replies
    5
    Views
    650

    Re: want to push/pop

    thanks all :)
  8. Replies
    5
    Views
    650

    [RESOLVED] want to push/pop

    hi all, i want to something like this:
    e.g: a string abb
    push chars on stack :
    a
    b
    b
    pop chars from stack :
    a
    b
    b
  9. Thread: Templates

    by Aashi
    Replies
    3
    Views
    482

    Re: Templates

    thanks for replying :)

    and what about this one?
    template<class T> and
    template<typename T>
    are both same?
  10. Thread: Templates

    by Aashi
    Replies
    3
    Views
    482

    Templates

    hi,

    What's the difference between using
    #include <vector> and
    template<typename T> ??
  11. Replies
    0
    Views
    554

    [RESOLVED] contenation of chars

    hi,

    is there any way to concatenate characters of char type array in c++ ??





    thanks...
  12. Thread: Array of objects

    by Aashi
    Replies
    15
    Views
    2,110

    Re: Array of objects

    ok thanks..
  13. Thread: Array of objects

    by Aashi
    Replies
    15
    Views
    2,110

    Re: Array of objects

    i just want to do self practice, want to take all object classes and then to show it. if i have three classes, Date, Time and Show.
    then an array of type Show class has a date object and time...
  14. Thread: Array of objects

    by Aashi
    Replies
    15
    Views
    2,110

    Re: Array of objects

    yes, an array that will have an object of Stock class, an object of Date class and e.t.c
    just one example, because i'm confused about how this works..
  15. Thread: Array of objects

    by Aashi
    Replies
    15
    Views
    2,110

    Re: Array of objects

    thanks for replies guys,
    can anyone tell me about using array of objects for two classes? i want to operate them as arrays not using vectors for the time now. As i have shown my code where i did...
  16. Thread: Array of objects

    by Aashi
    Replies
    15
    Views
    2,110

    Re: Array of objects

    yep sure it would be like this:

    Stock *s1=new Stock[2];
    char n[29];
    int num;
    double val;
    for(int i=0; i<2; i++){
    cout<<"Enter name :";
    cin>>n;
  17. Thread: Array of objects

    by Aashi
    Replies
    15
    Views
    2,110

    Array of objects

    hi all,

    I do know how the array of objects work, as an example here it is:

    Stock *s1=new Stock[2];
    char n[29];
    int num;
    double val;
    cout<<"Enter name :";
    cin>>n;
  18. Replies
    3
    Views
    670

    Re: getting wrong output

    thanks,
    i always do silly mistakes :(
  19. Replies
    3
    Views
    670

    [RESOLVED] getting wrong output

    hi all,
    I'm trying for one hour and i'm tired of it. I also tried to debug it but don't understand why i'm getting wrong output.
    in my program, user enters day, month, year, hour, minute, second,...
  20. Replies
    11
    Views
    1,596

    Re: allocating and deallocating

    thanks,
  21. Replies
    11
    Views
    1,596

    Re: allocating and deallocating

    here's updated code, it's working but is this the right way?
    please respond..

    #include <iostream>
    using namespace std;

    class Example
    {
    private:
    char* str;
  22. Replies
    11
    Views
    1,596

    Re: allocating and deallocating

    alright then, can you please tell me about how can i get input from user in a main using setter function?
    i'm not asking for code, here's my code with constructor and destructor where i'm dynamic...
  23. Replies
    11
    Views
    1,596

    Re: allocating and deallocating

    it complies, takes input and then program crashes.



    I know, but i want to use this for learning.

    please tell how can i make my program working? it crashes after taking input.
  24. Replies
    11
    Views
    1,596

    [RESOLVED] allocating and deallocating

    hi all,

    my following program is not working, can anyone please tell me what's wrong with that?


    class Example
    {
    private:
    char *name;
    public:
  25. Replies
    5
    Views
    1,425

    Re: mysql question

    thanks guys, will do it :)
Results 1 to 25 of 98
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured