Search:

Type: Posts; User: fightmx

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    564

    If you want to print an unsigned int then you...

    If you want to print an unsigned int then you should use "%u" and not "%d". Maybe that's your problem.

    Regards.
  2. Replies
    21
    Views
    1,553

    Ok, I think you are looking for the string "and"...

    Ok, I think you are looking for the string "and" matching over the text, and not the words "and" that there are in, that's different. So try to use string::find.
  3. Replies
    21
    Views
    1,553

    Hi, in this case the easy way is to use the...

    Hi, in this case the easy way is to use the operator >>, It returns the istream object that evaluates to false/true if you use it like a boolean.


    ...
    while(infile >> s){
    count += s ==...
  4. Extract from the book (The C++ programming...

    Extract from the book (The C++ programming language):

    Member initializers are essential for types for which initialization differs from assignment – that is, for member objects of classes without...
  5. Replies
    7
    Views
    1,646

    Hi, in this book (Introduction to Algorithms...

    Hi, in this book (Introduction to Algorithms) you can find a complete chapter about RB trees (properties, rotations, insertion and deletion), It includes analysis and pseudocode.

    Regards.
  6. Replies
    9
    Views
    2,515

    You need to initialize the variable "series" to 0.

    You need to initialize the variable "series" to 0.
  7. Replies
    20
    Views
    2,266

    I tested both using Visual Studio and MinGW (I'm...

    I tested both using Visual Studio and MinGW (I'm using windows now).
  8. Replies
    20
    Views
    2,266

    Are you sure that you did it without any mistake?...

    Are you sure that you did it without any mistake?

    This compiles fine.

    ABC.h

    #ifndef ABC_H_INCLUDED
    #define ABC_H_INCLUDED

    #include <cstddef>
  9. Maybe using a member function templates could...

    Maybe using a member function templates could help you, for instance:

    #include <iostream>
    using namespace std;

    struct exeFunc{

    template<class T, class F>
    void exeCallback(T* t, F...
  10. Replies
    2
    Views
    15,465

    First, you need a main function in your code (c...

    First, you need a main function in your code (c code):

    #include <windows.h>
    #include <stdio.h>
    #include <time.h>

    #ifndef WINDOWS
    #include <sys/time.h>
    #endif
Results 1 to 10 of 10