Search:

Type: Posts; User: Micko

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds; generated 30 minute(s) ago.

  1. Replies
    4
    Views
    2,857

    Thank you very much john.c! It is very helpful.

    Thank you very much john.c! It is very helpful.
  2. Replies
    4
    Views
    2,857

    Thank you, I managed to figure out the most of...

    Thank you, I managed to figure out the most of it, but I'm not sure whether there are any nested loop here.
    For example:


    m = n+k;
    for j=n:-1:1
    D = 0;
    for i=1:m
    ...
  3. Replies
    4
    Views
    2,857

    Converting ancient FORTRAN code to C code

    Hello C experts,

    I have found Fortran code that I need for my research (it is about mathematical triangular matrix factorizations). I have never seen Fortran code in my life and would greatly...
  4. Thread: Unary operators

    by Micko
    Replies
    2
    Views
    2,555

    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:

    ...
  5. Replies
    9
    Views
    1,796

    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...
  6. Replies
    9
    Views
    1,796

    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...
  7. Replies
    6
    Views
    3,203

    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...
  8. Replies
    7
    Views
    2,449

    Thank you people, very helpful...

    Thank you people, very helpful...
  9. Replies
    7
    Views
    2,449

    Of course, it makes sense now. Thanks laserlight

    Of course, it makes sense now.
    Thanks laserlight
  10. Replies
    7
    Views
    2,449

    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...
  11. Replies
    6
    Views
    3,203

    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...
  12. 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.
  13. 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...
  14. Replies
    8
    Views
    38,237

    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>
  15. Replies
    8
    Views
    38,237

    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>
  16. Replies
    4
    Views
    4,510

    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...
  17. Replies
    2
    Views
    1,161

    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.
  18. Replies
    2
    Views
    1,161

    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....
  19. Replies
    3
    Views
    1,132

    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...
  20. Replies
    21
    Views
    8,437

    That explains things. Thank you!

    That explains things. Thank you!
  21. Replies
    21
    Views
    8,437

    How to explain this: #include ...

    How to explain this:


    #include <iostream>
    #include <vector>

    using namespace std;

    class Test
    {
  22. Thread: Icon

    by Micko
    Replies
    30
    Views
    4,365

    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...
  23. Thread: Icon

    by Micko
    Replies
    30
    Views
    4,365

    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...
  24. Replies
    10
    Views
    9,717

    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++)
    ...
  25. Here's...

    Here's one more thing you can read
Results 1 to 25 of 498
Page 1 of 20 1 2 3 4