Search:

Type: Posts; User: sawer

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,112

    Operator Precedence Puzzle

    Hi

    This is the code: Answer is below the code.
    I tried to solve it my answer was wrong.



    int main()
    {
    int i = 0, j, k = 7, m = 5, n;
  2. Yes so what is wrong with explicit CExample...

    Yes
    so what is wrong with explicit CExample c(5,4)

    In MSDN says:
    "Objects and variables declared as extern declare an object that is defined in another translation unit or in an enclosing scope...
  3. Thank you but i dont understand what you mean....

    Thank you but i dont understand what you mean.
    Could you explain this sentence.
  4. Thank you nothing wrong. I only want to learn...

    Thank you
    nothing wrong.
    I only want to learn if there is a way.
    I tried with extern keyword. But i think we cant use class with extern keyword.
    Am i wrong?
  5. Is there a way to use class wtihout header file?

    Hi
    For example i have .h and .cpp file that define my class like that:

    //a.h
    class CExample {
    public:
    int a,b,c;
    CExample (int n, int m);
    void multiply() ;
    };
  6. Replies
    2
    Views
    994

    Hmm ok. Thank you vart.

    Hmm ok.
    Thank you vart.
  7. Replies
    2
    Views
    994

    Deleting lnked list

    Hi
    I am trying to write simple linkedlist application. But i take error while trying to delete it

    #include "stdafx.h"
    #include <stdlib.h>
    #include <iostream>
    using namespace std;

    typedef...
  8. Replies
    5
    Views
    1,357

    Hmm, Thank you for this information. Understood.

    Hmm, Thank you for this information. Understood.
  9. Replies
    5
    Views
    1,357

    Invoking base class constructor

    Hi
    Please look this code

    // constructors and derived classes
    #include <iostream>
    using namespace std;

    class mother {
    public:
    mother ()
  10. Interesting run-time error in a simple class definition

    Hi
    Please look at this code:


    #include
    using namespace std;

    class MyClass
    {
    private:
  11. Replies
    3
    Views
    1,619

    Thank you. I wrote my codes wrong in my first...

    Thank you.
    I wrote my codes wrong in my first post.
    Sorry.
    I understood.
  12. Replies
    3
    Views
    1,619

    strcpy without new

    Hi
    For example i have a class, in that class there is a function that assign a string.

    void func(char * name1)
    {
    name1 = new char[strlen(this->name)+1)]
    strcpy(name1, this->name);
    delete[]...
  13. Replies
    8
    Views
    1,969

    Thank you. Here there is an information about...

    Thank you.
    Here there is an information about passing array with value to func.
    http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=241&rl=1


    template <typename T, size_t size>
    ...
  14. Replies
    8
    Views
    1,969

    array decade pointers information

    Hi
    http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=207&rl=1 here it writes:
    "Functions in C/C++ can't return or receive array arguments"
    Is this true?
    Can't we pass array to...
  15. Replies
    5
    Views
    1,531

    How can compiler determine signed unsigned

    Hi
    How can assembler determine that a number is signed or unsigned?
    we are looking first bit of a number for positive or negative.
    +0 i.e. 0000 0000
    -0 i.e. 1000 0000
    But how can compiler...
  16. Replies
    5
    Views
    1,142

    Thanks friends for answers. I don't want to...

    Thanks friends for answers.
    I don't want to solve special problem , i only want to understand what compiler writes to exe when virtual function callls.I think, i confused a lot so i can not define...
  17. Replies
    5
    Views
    1,142

    How does code find correct VTBL?

    I know there are so many questions about virtual funcion.And sorry for this question but i really don't understand how code finds correct VTable(not function)

    I read here :...
  18. Replies
    4
    Views
    2,779

    Destructors in STL?

    Hi
    I see that all stl components have destructors.
    string s;
    s.~string();

    But i know that we don't need to delete stl componenets.I read all stl components automatically delete themself.Is this...
  19. Replies
    9
    Views
    11,923

    ok thanks friends

    ok
    thanks friends
  20. Replies
    9
    Views
    11,923

    stl containers allocation in heap or stack?

    Hi
    I am new to stl.
    I see that we don't need to delete our containers
    For example:
    vector <char> vec;
    But why?
    Here, Does vec allocate in heap or stack by default.I heard that Although we don't...
  21. Replies
    9
    Views
    4,761

    Thanks for all answers Mad_guy thank you. Your...

    Thanks for all answers
    Mad_guy thank you.
    Your answer give me a new perspective.I think you are right.Now i am looking for this book.
    I see that linux is not well documented.And also while...
  22. Replies
    9
    Views
    4,761

    ok thanks xhi and joeprogrammer I am...

    ok
    thanks xhi and joeprogrammer
    I am downloading Linux Device Drivers book thank you.It seems perfect book.
    Also your answers are useful friends now i am looking kernel.org.
    Good works
  23. Replies
    9
    Views
    4,761

    starting linux's source code and kernel

    Hi friends
    I want to learn how linux works, how its kernel works.I have been reading books about windows because i want to learn how an OP works.It will be very useful and more easy to learn it by...
  24. differences between Partial Explicit Specializations

    Hi
    I am reading template chapter in c++.
    We can specizlize a primary template both Partial and Explicit.
    But what are the differences?Advantages and disadvantages.?

    Thanks
  25. Replies
    5
    Views
    2,481

    thanks friends. thanks Mario F., now i undersand...

    thanks friends.
    thanks Mario F., now i undersand it, this is perfect answer.
    Good works.
Results 1 to 25 of 61
Page 1 of 3 1 2 3