Search:

Type: Posts; User: Micko

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: Unary operators

    by Micko
    Replies
    2
    Views
    2,247

    Unary operators

    Hello to all,

    I've lost touch with C programming for almost 3 years, so I forgot some subtle details.
    I was solving one problem by writing C program and was surprised to learn that this code:

    ...
  2. Replies
    9
    Views
    1,336

    Hmm, I'm still having problems: I'm using...

    Hmm, I'm still having problems:
    I'm using Dev-Cpp in which I have created C project with the following files:

    Header Test_Cpp.h:


    #ifndef TEST_CPP_H
    #define TEST_CPP_H
    extern "C" int...
  3. Replies
    9
    Views
    1,336

    Complie and link C++ code in C

    Hello people,
    it's been a long since last time I worked with C and C++. Is it possible to link Cpp code in C?
    What I mean is this:
    In basics, it comes to this...

    I have two files:
    Test_cpp.h...
  4. Replies
    6
    Views
    2,500

    Thanks, I made it just like that. I introduced a...

    Thanks, I made it just like that. I introduced a special command using which user must enter server's IP and it works OK.
    But I'm curious, how this is done in "real world". For example mIRC. When I...
  5. Replies
    7
    Views
    1,582

    Thank you people, very helpful...

    Thank you people, very helpful...
  6. Replies
    7
    Views
    1,582

    Of course, it makes sense now. Thanks laserlight

    Of course, it makes sense now.
    Thanks laserlight
  7. Replies
    7
    Views
    1,582

    Remove element from STL list

    Hello,
    please, I need to have a list of objects that are frequently inserted and removed.
    That's why I decided to use STL list.
    However, I have problems removing elements from the list.
    For...
  8. Replies
    6
    Views
    2,500

    Making simple client-server program

    Hello people,
    I'm making simple client server program. I have done this before.
    I have two computers in home LAN and want to test it.
    Computer A on which server program is located has 192.168.0.2...
  9. I'm glad you made it yourself. It's the best way...

    I'm glad you made it yourself. It's the best way to learn.
  10. You define functions to expect pointers and not...

    You define functions to expect pointers and not integer numbers.
    In line:
    sum = count_sum(numbers[10]);
    you're sending numbers[10] to function, which is 11-th element of array "number", which is...
  11. Replies
    8
    Views
    31,702

    Thanks for replying Mario. I changed line ...

    Thanks for replying Mario.
    I changed line


    friend Int<T> operator +(const Int<T>&, const Int<T>&);

    to


    template <typename TT>
  12. Replies
    8
    Views
    31,702

    Operator overload with template class

    Hello people,
    I didn't write any C++ code and became little rusty.
    I cannot figure why the following code:


    #include <iostream>

    using namespace std;

    template <typename T>
  13. Replies
    4
    Views
    2,532

    You could easily write your own copy function. Is...

    You could easily write your own copy function. Is there any reason not to write it?
    I would do something like this:


    #include <string>
    #include <iostream>
    #include <cstring>
    using namespace...
  14. Replies
    2
    Views
    918

    Thank you, but I would also like to learn why...

    Thank you, but I would also like to learn why restarts are happening only when try to watch movies and not when playing games.
  15. Replies
    2
    Views
    918

    Computer power consumption

    Hello people,
    I need your opinions about following problem.
    I have bought new graphics card. In its documentation I found that it requires 400 W power supply. My power supply unit is about 350 W....
  16. Replies
    3
    Views
    969

    Yes, as vart suggested, you need to pack it in...

    Yes, as vart suggested, you need to pack it in some kind of class.
    Other solution woud be to use vector of vectors of type int.
    Look at http://www.cppreference.com/cppvector/index.html.
    If you're...
  17. Replies
    21
    Views
    6,220

    That explains things. Thank you!

    That explains things. Thank you!
  18. Replies
    21
    Views
    6,220

    How to explain this: #include ...

    How to explain this:


    #include <iostream>
    #include <vector>

    using namespace std;

    class Test
    {
  19. Thread: Icon

    by Micko
    Replies
    30
    Views
    2,816

    True, but in C# (.NET) is much easier and faster...

    True, but in C# (.NET) is much easier and faster to make program with GUI than in C++ with all standard libraries...
  20. Thread: Icon

    by Micko
    Replies
    30
    Views
    2,816

    In college, I wrote simple GUI application in C#...

    In college, I wrote simple GUI application in C# using visual Studio .Net (2002). It was very convinient working with it and making GUI by just simply placing controls on wndows form. I wondered...
  21. Replies
    10
    Views
    6,703

    Well, if you used find member function of string...

    Well, if you used find member function of string then I suggest something like this:


    void set_intersection(string stringSet, string otherset)
    {
    for(int i = 0; i < otherset.length(); i++)
    ...
  22. Here's...

    Here's one more thing you can read
  23. Thread: I need a code

    by Micko
    Replies
    2
    Views
    829

    Basic algorithm for Runge Kutta 4th order is...

    Basic algorithm for Runge Kutta 4th order is presented here.
    Try to implement it and we'll be glad to help you after you show us what you manage to do.
  24. Replies
    4
    Views
    1,254

    You should post your code so we can see what's...

    You should post your code so we can see what's the problem.
    It appears that

    NR::bessj(int, double)

    bessj method of class NR is not defined and you're trying to call it.
  25. Replies
    7
    Views
    3,776

    Use loop for input five integers, and store them...

    Use loop for input five integers, and store them in integer array.
    Then, again loop with printf to display them with spaces. In the same loop you can find min and max.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4