Search:

Type: Posts; User: WarBaboon

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,413

    Yup, XSquared, you were most right. SomeClass...

    Yup, XSquared, you were most right.

    SomeClass *somearray[A_SIZE];
    did the job right. I should've known better... I should stop reading and start coding, really. Thanks a lot.
  2. Replies
    7
    Views
    2,413

    Pointers, addresses, and new

    I'm having a simple yet confusing problem. Say SomeClass is a class with lots of methods and fields and that uses multiple inheritance (could that be the problem ?):

    somearray[index] = new...
  3. Replies
    2
    Views
    1,377

    Tsk tsk tsk... asking for help on another board,...

    Tsk tsk tsk... asking for help on another board, heh ? That's baaaaaaaaad.

    Well visibly, I won't give any clues to you. But the only hint I could allow myself to give is : look into sockets.
    ...
  4. Replies
    5
    Views
    980

    Mucho thanks for that link. It's like my dreams...

    Mucho thanks for that link. It's like my dreams came true.
  5. Replies
    6
    Views
    1,672

    Your code does work, with one slight change. ...

    Your code does work, with one slight change.

    cout by itself means nothing. You'd have to either use std::cout for each time you use it, or adding using namespace std after your #includes.

    EDIT...
  6. Thread: circuit

    by WarBaboon
    Replies
    13
    Views
    2,127

    Sorry, theOracle, even with your edit I have...

    Sorry, theOracle, even with your edit I have trouble understanding what you're looking for. Maybe the value of the RC constant ? Or the period ? Or maybe both ?
  7. Thread: circuit

    by WarBaboon
    Replies
    13
    Views
    2,127

    Not quite. Vt =...

    Not quite.

    Vt = 12*pow(M_E,(t/RC))*sin((2*3.14159/P);
    Don't forget to include cmath.h for the pow() function and the value of e, represented by M_E.

    But I'm as confused as major_small : what...
  8. Replies
    6
    Views
    2,496

    Thanks for the help/code, everyone. And yes, I...

    Thanks for the help/code, everyone. And yes, I shall use the Search from now on, Quzah. :)
  9. Replies
    6
    Views
    2,496

    Permutation algorithm

    Here's my problem. Say you have a certain set of data, of which type is unimportant. For example's sake, let's use an array of 4 characters.

    char array[4] = "abcd";
    Now I want to create a program...
  10. Replies
    2
    Views
    1,871

    Special characters

    I've always had problems outputting special characters on screen (e.g. é, à, ü , ç and such), whatever the language, compiler, etc.

    So, is there any way I could correctly print them on screen ?
  11. Replies
    4
    Views
    1,076

    Nope, even with the using namespace std line, I...

    Nope, even with the using namespace std line, I can't get it to work too. I'll go take a look on Dev's forums, thanks. (Or maybe simply get back to good ol' 4.6.9).

    EDIT : Well, here it is :...
  12. Replies
    3
    Views
    2,080

    Yup, C++ for dummies is an excellent book, even...

    Yup, C++ for dummies is an excellent book, even for those who don't have a clue about what is a compiler. I learned C++ from that book, too.
  13. Replies
    8
    Views
    5,184

    The following should work for Dev C++ (well, it...

    The following should work for Dev C++ (well, it did work for me,heh).


    #include <cstdlib>
    #include <iostream>
    #include <ctime>
    using namespace std;

    int main() {
    srand(time(NULL)); //...
  14. Replies
    8
    Views
    5,184

    You might be interested in using rand() and...

    You might be interested in using rand() and srand() instead, if nothing works.
  15. Replies
    3
    Views
    11,188

    What I meant is that the pseudorandom number you...

    What I meant is that the pseudorandom number you will find will most likely not be exactly one of your t's. You will need to find the value that is closer to the value you get. I admit that that...
  16. Replies
    3
    Views
    11,188

    A lot of people might be familiar with Poisson's...

    A lot of people might be familiar with Poisson's Distribution - much like me. Those with some statistics knowledge might want a short explanantion : go to...
  17. Replies
    7
    Views
    1,160

    I won't do it for you, but a simple algorithm for...

    I won't do it for you, but a simple algorithm for Pi calcution is as follows :

    Pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 -... you get the idea. Have fun with this Fourier series.
Results 1 to 17 of 17