Search:

Type: Posts; User: tilex

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,319

    Program does not find any matching file

    Hey guys. I want my program to output all the files, in a given folder, that contains a word entered by the user. What the program does, though, is simply output ALL the file names, even though it's...
  2. Replies
    3
    Views
    3,874

    Even simpler. PlaySound() can play .wav s......

    Even simpler. PlaySound() can play .wav s... really tricky heh ?
  3. Thread: istream help

    by tilex
    Replies
    5
    Views
    1,026

    Try to change get() to this: std::istream&...

    Try to change get() to this:
    std::istream& get(std::istream&);I think the OP only hid useless code which is the right thing to do. Oh and by the way, you should use iostream and not iostream.h and 0...
  4. Replies
    6
    Views
    2,309

    Thank you mates, I will try this ASAP.

    Thank you mates, I will try this ASAP.
  5. Thread: Negative Numbers

    by tilex
    Replies
    4
    Views
    1,585

    1) You aren't even using any randomizing...

    1) You aren't even using any randomizing functions like rand()...
    2) You shouldn't be using FILE as a variable name since it might make confusion with FILE in cstdio.
  6. Thread: pointers

    by tilex
    Replies
    9
    Views
    911

    Read and ask questions until you aren't confused...

    Read and ask questions until you aren't confused anymore...
  7. Replies
    6
    Views
    2,309

    It can't be the problem since my friend got the...

    It can't be the problem since my friend got the "Connected !" message on his screen but I didn't.

    Edit: I made sure my program wasn't blocked by my firewall before trying.
  8. Replies
    19
    Views
    1,826

    Sorry, I'm not a native englophone (capital 'e'...

    Sorry, I'm not a native englophone (capital 'e' ?) so I often make mistakes that change the meaning of my words.
  9. Replies
    25
    Views
    2,388

    Try to make a basic calculator that will ask each...

    Try to make a basic calculator that will ask each number separately:

    Output: What operation do you need ?
    Input: +
    Output: a ?
    Input: 5
    Output: b ?
    Input: 6
    Output: 11
  10. Replies
    19
    Views
    1,826

    I'm not.

    I'm not.
  11. Replies
    19
    Views
    1,826

    The only case where it will not is if you type =...

    The only case where it will not is if you type = 0 (false == 0).
  12. Replies
    19
    Views
    1,826

    Try inputting anything else than 20 and you will...

    Try inputting anything else than 20 and you will see.
  13. Replies
    10
    Views
    947

    I don't want to be mean but that was a pain to...

    I don't want to be mean but that was a pain to read. Please make a little effort to write at least complete words. And you are right, there is an extra set of curly brackets.
  14. Replies
    19
    Views
    1,826

    Actually, there is an error. In the if()...

    Actually, there is an error. In the if() statement, you need to change = to ==. In C++, = is an assignment operator therefore you will assign variable values with that operator. However, == is a...
  15. Replies
    6
    Views
    2,309

    Weird connection problem.

    Hi everyone ! I'm trying to make a console chat application but I have a problem. I tried the program with someone and that person managed to receive the "Connected !" message, but I didn't. We both...
  16. Replies
    1
    Views
    7,695

    Strange file problem.

    Hey everyone. I'm trying to create a logger for my program so that I can find very easily where the bugs occurs, what functions fail... but the problem is that my logger is failing, wich is pretty...
  17. Thread: Program crash ?!

    by tilex
    Replies
    6
    Views
    1,851

    How stupid am I, thank you mate.

    How stupid am I, thank you mate.
  18. Thread: Program crash ?!

    by tilex
    Replies
    6
    Views
    1,851

    Now it outputs 326 with the following code, why ?...

    Now it outputs 326 with the following code, why ?
    template <class int_type>
    inline char* itoa_t(std::string& buf, const int_type nb) {
    buf += char(nb%10+'0');
    for(int_type i=1; pow(10, i)<nb;...
  19. Thread: Program crash ?!

    by tilex
    Replies
    6
    Views
    1,851

    Well nevermind, I just found out, but could...

    Well nevermind, I just found out, but could anyone tell me why I get junk with the following code ? It output "½½"
    #include <iostream>
    #include <string>
    #include <cmath>

    #define VALIDATE(a)...
  20. Thread: Program crash ?!

    by tilex
    Replies
    6
    Views
    1,851

    Program crash ?!

    Hi everyone ! I was bored and decided to make my own version of itoa that would work for a std::string (since I work so often with it and always tell myself how how sad it is it wasn't yet overloaded...
  21. Thread: wierd errors

    by tilex
    Replies
    7
    Views
    1,333

    Hey man, look at this... #include ...

    Hey man, look at this...
    #include <iostream>
    #include <string>

    int main(void) {
    bool gendermale = true;
    const unsigned int age = 14;
    std::string filename = "";
    filename +=...
  22. Replies
    15
    Views
    2,093

    using namespace std;That line is evil since it...

    using namespace std;That line is evil since it completely the std namespace's purpose that is protect the global namespace from name collision.
  23. Replies
    15
    Views
    2,093

    1) I don't understand your question: 2) void...

    1) I don't understand your question:
    2)
    void clearscreen(const unsigned int num_lines) {
    for(int i = 0; i < num_lines; ++i)
    cout << endl;
    }3) If you use the using... you don't need...
  24. Replies
    15
    Views
    2,093

    1) system("PAUSE") can be replaced by...

    1) system("PAUSE") can be replaced by std::cin.get()
    2) There are no standard functions to do that, you may want to create a function that will output a bunch of new line characters ('\n')
    3)...
  25. Replies
    15
    Views
    2,093

    1) Remove every call to system() 2) Add...

    1) Remove every call to system()
    2) Add std::cin.get() at the end of your program.

    Can't help you much without code.
Results 1 to 25 of 53
Page 1 of 3 1 2 3