Search:

Type: Posts; User: studiesrule

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    5,659

    Ok, thanks.

    Ok, thanks.
  2. Replies
    16
    Views
    5,659

    I don't mean the printf feature (which I do know...

    I don't mean the printf feature (which I do know exists, but for backward compatibility). I was wondering why cout doesn't have a similar thing.
  3. Replies
    17
    Views
    2,912

    As I said before, I don't think this is very...

    As I said before, I don't think this is very rational, but I'm just suggesting that if you really want to do it, you could try this. It's just an idea. And I happen to be a newbie programmer with...
  4. Replies
    30
    Views
    4,240

    Ok, I'm sorry to have confused you. I said that...

    Ok, I'm sorry to have confused you.
    I said that you should restructure your program a bit. Instead of adding these numbers to another variable StrOut (as you are doing now), and then printing the...
  5. Replies
    15
    Views
    2,778

    worked like a charm. Thanks for your persistent...

    worked like a charm. Thanks for your persistent help.
  6. Replies
    15
    Views
    2,778

    Oh, and another doubt, is there any call to...

    Oh, and another doubt, is there any call to output the type of the variable. Python has something like: type(variable), which outputs the type.
  7. Replies
    15
    Views
    2,778

    Here's the code I used: #include ...

    Here's the code I used:


    #include <iostream>
    using namespace std;

    ape* aptr;

    class ape
    {
  8. Replies
    30
    Views
    4,240

    As far as I've understood your objective is too...

    As far as I've understood your objective is too take two strings and a number 'n', and add up the first 'n' characters of str2 to str1. So just add another parameter to Add, so that 'j' simply adds...
  9. Replies
    15
    Views
    2,778

    Ok, I'm having another problem. The pointer that...

    Ok, I'm having another problem. The pointer that I'm going to reference to 'this' must be defined to be a 'class'. But that means that I'd have to put the class def infront of it. But the class...
  10. Replies
    16
    Views
    5,659

    Ok thanks. I wonder why they removed this small...

    Ok thanks. I wonder why they removed this small feature from C++
  11. Replies
    15
    Views
    2,778

    Thanks, That's all I wanted.

    Thanks, That's all I wanted.
  12. Replies
    16
    Views
    5,659

    Ok here it's very simple, but suppose I'd like to...

    Ok here it's very simple, but suppose I'd like to print lets say 5-6 variables in a line, then I'd have to do cout <<var1<<" "<<var2<<" "... I find this tedious, and irritating. It's also hard to...
  13. Replies
    15
    Views
    2,778

    I didn't understand that. There's a variable lets...

    I didn't understand that. There's a variable lets say 'a', which is off this class. While 'a' is being constructed, i'd like to the ptr to reference the address of a.
  14. Replies
    15
    Views
    2,778

    Self Referencing (in a way)

    Suppose in a class, I'd like to assign the address of the variable of that class type to a global variable, during construction. I don't know if this is possible, but it should, considering the...
  15. Replies
    2
    Views
    992

    Ok thanks a lot

    Ok thanks a lot
  16. Replies
    16
    Views
    5,659

    Wow, I'm overwhelmed by the superfast reply (10...

    Wow, I'm overwhelmed by the superfast reply (10 minutes). I needed something like int arr[20] = 0. I'm pretty sure I can do the same with ptrs, and initializing them to NULL. Thanks a lot.

    Though...
  17. Replies
    2
    Views
    992

    Modifying Default Algebra Functions

    I want to know how to modify the default addition property of a class. For example, if I were to create a class Complex, then the addition goes by adding the real components and the imaginary...
  18. Replies
    16
    Views
    5,659

    Initialising Arrays

    I'd like to know if it's possible to initialize arrays while defining it? The same with pointers. Is it possible to automatically allocate it, like calling ptr = new int ?
    More than just saving...
  19. Replies
    7
    Views
    11,463

    I'm interested in the same thing. Can you post...

    I'm interested in the same thing. Can you post some links for both methods?
  20. Replies
    17
    Views
    2,912

    Umm, maybe this is a bit unconventional, but as...

    Umm, maybe this is a bit unconventional, but as this is just for this one function, you could go through a reasonable degree of pain and create your own set of functions to do it. Seeing your a...
  21. Replies
    11
    Views
    2,162

    As I suspected, the approximation isn't too...

    As I suspected, the approximation isn't too taylor like:
    for e^x:
    /* How this works:

    The input value, x, is written as

    x = n * ln(2) + t/512 + delta[t] + x;

    where:
    - n is an...
  22. Replies
    11
    Views
    2,162

    Thanks a lot salem, I found what I was looking...

    Thanks a lot salem, I found what I was looking for there (assembly). That's what I was asking before, if it were in assembly. I guess I didn't really understand the reply. Now I've got to understand...
  23. Replies
    11
    Views
    2,162

    Ok I'm reviving this thread. I've gotten the...

    Ok I'm reviving this thread. I've gotten the glibc 2.4, and absolutely searched it head to toe. I looked into the math.h which refered all its prototypes the file mathcalls.h which contains macros of...
  24. Replies
    11
    Views
    2,162

    @ Dweia, I did feel the same, but I don't think...

    @ Dweia, I did feel the same, but I don't think that it would be very efficient. I've heard about an assembly code manner, but know no details (which is why I posted here).
  25. Replies
    11
    Views
    2,162

    Ok, I'm using the gcc complier, but I've checked...

    Ok, I'm using the gcc complier, but I've checked up the MSVC++8 too. I thought that something kinda basic like the math header would have been standardised to all compilers by now. But the question...
Results 1 to 25 of 26
Page 1 of 2 1 2