Search:

Type: Posts; User: P4R4N01D

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. I would much prefer PHP for web scripting, at...

    I would much prefer PHP for web scripting, at least PHP doesn't need a Windows server. I also have a dislike of any language that heavily uses a MS framework.
  2. Replies
    13
    Views
    1,552

    The std::string class is of the same class as...

    The std::string class is of the same class as std::basic_string. Also using char *string is more common than using a character array in C.
  3. Replies
    8
    Views
    2,166

    In addition, remove the '\'s. Worth a try.

    In addition, remove the '\'s. Worth a try.
  4. Replies
    6
    Views
    1,939

    To the compiler, these mean exactly the same,...

    To the compiler, these mean exactly the same, although they read differently (IMO). You probably should be consistant with which one you use, I prefer the latter because that is what I have gotten...
  5. Replies
    2
    Views
    875

    treeNode is a struct for the internal...

    treeNode is a struct for the internal representation of the class binaryTree. treeNode contains three treeNode pointers and info of type treeElement (the type that you specify when you create each...
  6. Replies
    2
    Views
    875

    Binary Tree Problems

    I followed a textbook example of how to implement a binary tree using template classes, but have needed to modify the (private) insert function to accept another treeNode * for the parent (I want to...
  7. Replies
    6
    Views
    9,117

    How I learnt change of base: log of the number /...

    How I learnt change of base: log of the number / log of the base. So to use a common base, to save me writing an extra 2 letters, and because my calculator can do it, I use natural log (ln). E.g....
  8. Replies
    6
    Views
    2,555

    As I have not learnt about vectors yet, I didn't...

    As I have not learnt about vectors yet, I didn't even think about using them. Breifly looking at a reference on them I can see how they would be useful as an alternate method. Another reason why I...
  9. Replies
    6
    Views
    2,555

    Thanks for the quick reply, I thought passing a...

    Thanks for the quick reply, I thought passing a pointer to int was passing by reference. Would changing the function to void read(int **a, int &n) pass by reference (as int &*a didn't work and int a...
  10. Replies
    6
    Views
    2,555

    Dynamic Array Allocation function

    I have written a function to read in a variable number of ints into an array, & after this is called I print out the values in the array that were read in in main(). When i print out the contents of...
  11. Replies
    14
    Views
    11,404

    I did one of these using char *s, and when an...

    I did one of these using char *s, and when an operator came along - fill both operands then call a function to do the operation. Worked for me. I am not going to post it because that would be...
  12. Replies
    7
    Views
    1,027

    Ah, thanks. Still should avoid using it where...

    Ah, thanks. Still should avoid using it where possible though -> Maximise portibility
  13. Replies
    9
    Views
    1,543

    I wouldn't bother learning C#. Any language you...

    I wouldn't bother learning C#. Any language you learn will help give experience in problem solving & thinking more in depth about the task at hand & the steps to solve it. Most importantly experience...
  14. Replies
    7
    Views
    1,027

    Even better to call like this with the return...

    Even better to call like this with the return type specified, so it is clear which type the function returns w/o consulting the prototype:

    void func(struct a *p) { ... }

    This at first looks as...
  15. - For the second point you could try converting...

    - For the second point you could try converting (a copy of) the number to a character array & test each digit individually.
    - s < 1e19
    - use modulus
    Good luck, concentrate on doing one point at a...
  16. Replies
    3
    Views
    866

    The easiest way is, when declaring the combobox,...

    The easiest way is, when declaring the combobox, set the height bigger. The height property of the combobox is actually the height of the list when extended + the height of the combobox. The height...
  17. Replies
    4
    Views
    1,568

    1. DLLs should always have a default entry point...

    1. DLLs should always have a default entry point (e.g. C has Main(), Windows GUI have WinMain). DLLs have DllMain(). The following compiles in C.

    BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD...
  18. Replies
    4
    Views
    1,092

    Thanks, supprised I didn't notice that. Changed...

    Thanks, supprised I didn't notice that. Changed cast as well. Works fine now.
  19. Ha, I completely agree. At my Uni, they use C++ &...

    Ha, I completely agree. At my Uni, they use C++ & I heard that is a new course I am doing. Part of the reason I chose the course at that uni (I perfer C++ over Java).
    Also, I think whoever is...
  20. Replies
    4
    Views
    1,092

    Nope, DrawMenuBar did nothing. After debugging,...

    Nope, DrawMenuBar did nothing. After debugging, SetMenu & DrawMenuBar both succeed & return a non-zero value.
  21. Replies
    4
    Views
    1,092

    Menu not appearing

    I am trying to get a menu working & am following how I did it last time (which worked in the same compiler) copying it exactly, the menu doesn't appear. I am using Dev-C++

    Here is the function to...
  22. Replies
    10
    Views
    2,111

    I have seen this problem before (when I was...

    I have seen this problem before (when I was viewing a txt file, a square came up where each newline should have been. that looked much worse than the prob you are having). It is a whitespace...
  23. Replies
    3
    Views
    974

    Blinky's pointer video might help (link mentioned...

    Blinky's pointer video might help (link mentioned in this post). For something slightly more serious though, the cprogramming tutorial on pointers & C programming Language on howstuffworks both cover...
  24. Replies
    23
    Views
    3,253

    I fixed what I think you are refering to above....

    I fixed what I think you are refering to above. It now handles negative numbers better.

    EDIT: The reason the function above "Doesn't work for: Multiple digits w/ > one operator, greater than one...
  25. Replies
    23
    Views
    3,253

    I fixed signbit, I did notice that a -ve number...

    I fixed signbit, I did notice that a -ve number was impossible to attain but it didn't strike me how to fix it. Fixed now...
    If *operands==1 ye canna call filloperands wi' it, forbye ye'll add a...
Results 1 to 25 of 223
Page 1 of 9 1 2 3 4