Search:

Type: Posts; User: rakeshkool27

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    14
    Views
    2,079

    Woww nice to see it working, else I was always...

    Woww nice to see it working, else I was always finding some warnings.
    You showed some of the very important ways of dynamically allocating arrays. Seems like you are very much well versed with this...
  2. Replies
    14
    Views
    2,079

    Hey that was really great. It works fine and...

    Hey that was really great.

    It works fine and thats the best way.

    Thanks for the code.

    I tried around that but I had gone one thing wrong.

    LR = (int*)malloc((2*M)*sizeof(int));
  3. Replies
    14
    Views
    2,079

    Suppose for the case of standard notation of...

    Suppose for the case of standard notation of arrays, what do you mean by one malloc for the array of pointer to arrays??

    Does it mean this:

    LR = (int*)malloc((2*M)*sizeof(int));
  4. Replies
    14
    Views
    2,079

    Okay let me explain the situation. In my...

    Okay let me explain the situation.

    In my program there is a part where I need to take user input of a left boundary and right boundary,thats why the name LR.
    So this 1-D array will always be of 2...
  5. Replies
    14
    Views
    2,079

    If we don't need those parentheses, that would be...

    If we don't need those parentheses, that would be then array of pointers.
    Including those parentheses makes it a pointer to an array.

    I want to know for pointer to arrays.

    Dynamically...
  6. Replies
    14
    Views
    2,079

    Malloc pointer to arrays

    Hello, I am confused whether 'malloc'ing an array of pointers and pointer to a group of arrays are the same.

    Suppose I need an integer pointer to a group of arrays of 2 elements each.

    int...
  7. Thanks for the terminology....

    Thanks for the terminology....
  8. Yeah qny, you are quite right...I could have...

    Yeah qny, you are quite right...I could have posted in the forum and I usually do, but there was some problem when I was trying to post so at last I put it in pastecode. Anyway now I see that there...
  9. Initializing an array of static structures

    Hello friends, I am just trying to represent a grid by using a collection of node structures. These node structures contain the index locations (x,y) and two characters about the linkage of the node...
  10. :p Hehe....dont worry...There is always a contest...

    :p Hehe....dont worry...There is always a contest every month, you will get to solve more....There is more to come this 1st of September...
  11. hey Click_here, your link was quite useful...It...

    hey Click_here, your link was quite useful...It put me into a moment to think...It is the correct approach to find the number of factors. My problem is not linked with projecteuler, actually here is...
  12. Yeah Andreas it was finding the no. of divisors...

    Yeah Andreas it was finding the no. of divisors or factors of a number. You put up some interesting fact about the square number....Well I have left that factoring approach. Its not efficient thats...
  13. Hey Adak sorry for replying late, (actually was...

    Hey Adak sorry for replying late, (actually was involved with some exam studies)...oh good to know that you also tried this problem before...as I said it was a part of a programming question and the...
  14. Hello Andreas, what I want to do is count the...

    Hello Andreas, what I want to do is count the number of factors f of a number and look if it is odd or even....It is a part of solving a programming question, well but it seems now that calculating...
  15. Thanks Adak....for the suggestion of your...

    Thanks Adak....for the suggestion of your calculating one time, I did not notice that....I mean by saying not fitting into my program means that I am trying to solve a question and it gives certain...
  16. Ya right,recursion has to handle the stacks so...

    Ya right,recursion has to handle the stacks so extra consumption of resources....."An algorithm that efficiently factors an arbitrary integer would render RSA-based public-key cryptography...
  17. Ok I see....using sqrt is not a much good choice...

    Ok I see....using sqrt is not a much good choice then, but still using sqrt will save the time for other some useless looping,actually it will just balance the loading of libraries I guess....Whether...
  18. I agree with what you are saying....The thing is...

    I agree with what you are saying....The thing is that I want to know if there exist some better algorithm than the straight approach of checking every number if its divisible from n=1 to N for a...
  19. Efficient Algorithm for counting number of factors

    What is the most efficient algorithm for counting the number of factors of an integer?
  20. Replies
    2
    Views
    2,350

    Drawing a waveform

    Is it possible to draw a waveform using C or C++? The type of waveform I have attached it....If its possible I can understand it will be pretty tough so also is there an alternative to it??
  21. Replies
    7
    Views
    3,344

    Hmmmm...getline() can be used in place of cin.but...

    Hmmmm...getline() can be used in place of cin.but in case suppose we give an input before getline() and after that press enter,then the getline() fn is skipped.One solution is to use fflush(stdin),...
  22. Replies
    7
    Views
    3,344

    So it seems that it is better not to use malloc()...

    So it seems that it is better not to use malloc() in C++ for classes.Its more safer with new.I will have to study more about "new" since I am new to C++.
    But anyway is there any other option for cin...
  23. Replies
    7
    Views
    3,344

    Hi anon,It really worked out.And I was very happy...

    Hi anon,It really worked out.And I was very happy happy with the output and it runs fine now.This was really very important to me and it was really a very great help.Thanks for your very kind help to...
  24. Replies
    7
    Views
    3,344

    Inheritance of objects and linked list

    Hello everyone,recently I have been trying out a C++ program and it seems that its going beyond my thinkings.So I want your help to solve it out.This program is to create a derived class "master"...
  25. Thread: enum

    by rakeshkool27
    Replies
    16
    Views
    2,080

    So there seems printing out the name using enum...

    So there seems printing out the name using enum is not going to work.It seems there is no way out for this.
    So what I must do is to tell the teacher that its not possible.
Results 1 to 25 of 105
Page 1 of 5 1 2 3 4