Search:

Type: Posts; User: Sid_TheBeginner

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,598

    I'm sorry for posting it like crazy I'll work on...

    I'm sorry for posting it like crazy I'll work on it more and ask more precise questions..
  2. Replies
    2
    Views
    3,598

    Jumping into C++ PracticeH Problem

    Hello Guys. Please help me code this practice problem. Its from Alex Allain's Jumping into C++. A really cool book :)

    © Alex Allain (C programming.com - Learn C and C++ Programming -...
  3. Replies
    6
    Views
    1,234

    So this happens only with the %c specifier if I...

    So this happens only with the %c specifier if I got it right. Am i correct?
  4. Replies
    3
    Views
    1,791

    Michael Pont's Embedded C may be helpful. He uses...

    Michael Pont's Embedded C may be helpful. He uses the 8051 microcontroller only in his book.
  5. Replies
    6
    Views
    1,234

    scanf(" %c", &answer); // this code is getting...

    scanf(" %c", &answer); // this code is getting skipped

    That's totally amazing for me. Could you tell me the reason behind that. :confused:

    Thank You very much rags_to_riches and qny
  6. Replies
    6
    Views
    1,234

    Can't find the error

    Hello guys. Here's my code. I want to average the numbers entered by the user.




    #include<stdio.h>
    #include<ctype.h>


    int main(void)
  7. Error in an array of structures program

    Hello guys. I'm getting this error:

    a.c: In function ‘main’:
    a.c:10:2: error: expected ‘;’, identifier or ‘(’ before ‘int’
    make: *** [a] Error 1

    I'm not able to figure it out. Please help....
  8. Thanks for all the help guys. I've come up with...

    Thanks for all the help guys. I've come up with this:



    #include<stdio.h>

    int main(void)
    {
    char abc[] = {"Mmy Nname Iis Mmonk"};
    int i = 0;
  9. The exercise demands to achieve it using math. I...

    The exercise demands to achieve it using math. I want to skip all the uppercase case letters.
    That means all characters between and including A and Z :confused: is it

    (abc[i] >= 'A' || abc[i]...
  10. isn't the 'A' and 'B' used to pass throught the...

    isn't the 'A' and 'B' used to pass throught the ASCII table values? Hence avoiding all the Uppercase letters? :confused: Thank You for your reply
  11. Remove uppercase case letters from a word

    Here's my code. Please help.
    Thanks in advance.



    #include<stdio.h>


    int main(void)
    {
  12. Replies
    6
    Views
    891

    try using a simple if else looping. The Final...

    try using a simple if else looping. The Final else must say please enter a valid value. switch is also one better way.
  13. Replies
    10
    Views
    3,320

    Worked! I've replaced the for with a while loop...

    Worked! I've replaced the for with a while loop in the function!
    Thanks,
    --Sid
  14. Replies
    10
    Views
    3,320

    In the above code I posted, I'm not able to print...

    In the above code I posted, I'm not able to print "Not FOund" when a number not present in the array is tried for... And could you please post the syntax for how to clear the stream?
    Thanks,
    --Sid
  15. Replies
    10
    Views
    3,320

    Thanks for the reply. Can you please look at...

    Thanks for the reply.
    Can you please look at this code and let me know?



    #include<iostream>
    using namespace std;


    int BinSearch(int data[], int numElements, int searchKey); // Prototype
  16. Replies
    10
    Views
    3,320

    Thanks for your reply! I'm now returning -1...

    Thanks for your reply! I'm now returning -1 outside the for loop in the BinSearch function but I'm not able to figure out how to print a message using that return value -1 :( And stringstream...
  17. Replies
    10
    Views
    3,320

    Binary Search Help Repost.

    I've got the logic right and the algo seems to work fine. Now, that's epic for me
    But..

    I want to add 2 more features to this code:

    1) Exit on pressing 'x'. For now I'm using -1 to exit.
    2)...
  18. Replies
    4
    Views
    2,401

    Thanks for your reply Sir. Indentation was fine...

    Thanks for your reply Sir. Indentation was fine before pasting it here.
    So my logic is terribly wrong?!! :( Maybe I should slow down my learning speed. Can you please recommend any good book to...
  19. Replies
    4
    Views
    2,401

    Binary Search Algo

    My Code is'nt able to find the index value if the 1st or the 2nd element of the array is checked for. Here's my code.
    Also i want to exit on pressing 'x' For now, I'm using -1 to exit.


    ...
Results 1 to 19 of 20