Search:

Type: Posts; User: 7heavens

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,091

    Building Binary Tree

    Hi guys.. I want to build a Binary Tree (Not Binary Search Tree) which is complete using Linked List.. Any ideas? I have a search function implemented below which returns you a TreeNode pointer if it...
  2. Replies
    2
    Views
    3,671

    Removing duplicate items from vector

    Hi guys.

    Can anyone give me a rough idea of how to remove duplicate items from a vector?
  3. Replies
    16
    Views
    14,872

    I finally figured it out! =) I wanted to do it...

    I finally figured it out! =) I wanted to do it without sorting.. I hope this time I'm correct. I spent quite a lot of time on this!! Tried the test cases Mike posted and other test cases.. If there's...
  4. Replies
    16
    Views
    14,872

    Haha.. Yeah. Was about to post about that. What...

    Haha.. Yeah. Was about to post about that. What can I do to the code to make it work? I don't want to sort.. :)
  5. Replies
    16
    Views
    14,872

    Thank you for the prompt responses laserlight....

    Thank you for the prompt responses laserlight. What I meant by both array contain the same elements is that the size of both the array is the same and they contain the same elemenets but not...
  6. Replies
    16
    Views
    14,872

    Is there a way to do it without sorting the...

    Is there a way to do it without sorting the arrays?
  7. Replies
    16
    Views
    14,872

    Maybe I used the wrong term. I want to check...

    Maybe I used the wrong term. I want to check whether both array contain the same elements.
  8. Replies
    16
    Views
    14,872

    Equality of 2 Arrays

    Hi guys. I am having trouble with checking equality of 2 Arrays which have integers.. At first it sounded easy, but for some unknown reason, I'm finding it hard to code. I don't want to sort out the...
  9. Replies
    1
    Views
    1,579

    Questions on Character Pointers and Arrays

    I just wanted to clarify about Character pointers and Arrays. Sorry for asking so much in one post but they are very short questions.. Thank you!


    int main()
    {
    char *p="FIVE";

    char...
  10. Replies
    14
    Views
    3,364

    Think you misunderstood my question. Haha.. I...

    Think you misunderstood my question. Haha.. I wanted to know whether there is another of saying the following. Another code which does the same thing as the constructor below in other words. Is there...
  11. Replies
    14
    Views
    3,364

    Ah Icic! Got another burning question. When I use...

    Ah Icic! Got another burning question. When I use this constructor, it works.


    Shape(char *p,int x,int y) : Point(x,y)
    {
    colour=p;
    }

    But when I use the following...
  12. Replies
    14
    Views
    3,364

    Oh! Just tried that. Thanks cyberfish =) I...

    Oh! Just tried that. Thanks cyberfish =) I changed the line "*colour=*p;" to "colour=p;". But I am not very sure why the former doesn't work and the latter works. can you explain pls
  13. Replies
    14
    Views
    3,364

    Thanks for the prompt reply. I ran into another...

    Thanks for the prompt reply. I ran into another problem. I'm using inheritance now.


    #include <iostream>
    #include <string>

    using namespace std;

    class Point
    {
  14. Replies
    14
    Views
    3,364

    No default constructor available

    #include <iostream>
    #include <string>

    using namespace std;

    class Point
    {
    private:
    int _x,_y;
  15. Replies
    1
    Views
    1,505

    Recursive Backtracking

    I need to write a function using recursive backtracking. Give a number of characters stored in an array, the function finds for braces. For example, for CH3(CH[OH])4H, once I find this brace '(' , I...
  16. Thread: Loops forever

    by 7heavens
    Replies
    8
    Views
    1,454

    Another small question.. what does the following...

    Another small question.. what does the following statement mean? invalid and val are variables..
    Thanks..
    invalid = invalid?1:val?1:0;
  17. Thread: Loops forever

    by 7heavens
    Replies
    8
    Views
    1,454

    Thanks adak and core_cpp! Changing the...

    Thanks adak and core_cpp! Changing the if(invalid=0) to if(invalid==0) solved the problem. I am creating the status.txt first and then reading it..
  18. Thread: Loops forever

    by 7heavens
    Replies
    8
    Views
    1,454

    yours is much neater cosmic_cow.. I've another...

    yours is much neater cosmic_cow.. I've another problem.

    I need the x coordinate to be between 0 and 19, and the
    y coordinate to be between 10 and 19.[As stated in the condition]

    I tried...
  19. Replies
    1
    Views
    1,666

    A program to seperate numbers by comma

    I'm doing C programming.. Can I get some ideas on how to solve this question? I have totally no idea. I'm a beginner so would prefer a really simple approach (if it exist).. haha

    When writing...
  20. Thread: Loops forever

    by 7heavens
    Replies
    8
    Views
    1,454

    thanks for the detailed reply man.. I got it. My...

    thanks for the detailed reply man.. I got it. My condition was wrong..
  21. Thread: Loops forever

    by 7heavens
    Replies
    8
    Views
    1,454

    Loops forever

    Hi.. I am doing C programming on microsoft Visual C++. I want to prompt the user for coordinate again and again if the input coordinate doesn't meet the condition. But after I type in the coordinate,...
  22. Replies
    5
    Views
    1,348

    my teacher want me to use the for loops.. haha...

    my teacher want me to use the for loops.. haha Because we are just starting out on C programming. we haven't learnt skipping unwanted fields, he allows us only to use the stuff we learnt.. pls help!
  23. Replies
    5
    Views
    1,348

    Reading vertically from a data

    Hi ppl. Beginner here..

    I have a set of data

    1 2 3 4 5 6 7 8 9
    9 8 7 6 5 4 3 2 1
    1 2 3 4 5 6 7 8 9

    how do i use a fscanf statement to read the third number in the second row(which is 7 as...
Results 1 to 23 of 23