Search:

Type: Posts; User: vsriharsha

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,931

    Have you gone through the complete thread Mr....

    Have you gone through the complete thread Mr. Principii??? I know how to install an rpm in CLI, but my question was different.
  2. Replies
    3
    Views
    1,532

    Try This

    To see whats going on, try this:


    # include<stdio.h>
    # include<conio.h>
    # include<string.h>
    void main()
    {
    char name[20];
    int c1=0,c2;
  3. Hmmm, Like this?? int i = 527; int j,...

    Hmmm,
    Like this??


    int i = 527;
    int j, k, l;
    <somecode>
    printf("J = %d\t K = %d\t L = %d\n",j,k,l);

    will give you...
  4. Not a challange

    First of all it is not a challange.

    Use a mod function in a while loop:


    char str[15];
    int i,j,k=0;
    i=32; // example
    while ( i > 0 )
    {
  5. Replies
    5
    Views
    4,231

    Also, why are you not locking the mutex before...

    Also, why are you not locking the mutex before calling open?





    -Harsha
    This might be of much interest to you
  6. Replies
    15
    Views
    4,923

    This is what the MAN page in linux says:

    This is what the MAN page in linux says:
  7. In your main program, what are you trying to...

    In your main program, what are you trying to achieve by


    while(kbhit())
    input = getch();

    Change it to:


    while(!kbhit());
  8. Replies
    10
    Views
    1,365

    But this will not reduce the code significantly,...

    But this will not reduce the code significantly, will it?

    This should.

    -Harsha
  9. Replies
    5
    Views
    4,231

    Might not be a problem...

    Hi,
    this might not be a problem, but a non-follow of specification.

    PTHREAD_MUTEX_INITIALIZER can only be used on Static mutex. Check This out... Info On Mutex Initializer
    I cannot try it out...
  10. Replies
    10
    Views
    1,365

    Also...

    HI since you are not checking the condition of #else or #elseif.. why dont you do...


    #ifdef DEBUG
    switch(whatever)
    {
    case 0x114:
    struct whatever *ptr;
    ...
  11. Replies
    10
    Views
    1,365

    See if this helps

    See if you can declare a macro in place of the
    #ifdef and #endif

    and use that macro.

    -Harsha.
  12. Replies
    15
    Views
    4,923

    Then there is a problem in your fscanf...

    Then there is a problem in your fscanf function... You need to pass the address of variables ( check out the third variable)...

    -Harsha.
  13. Replies
    15
    Views
    4,923

    Point No 1: You are using the structure "struct...

    Point No 1:
    You are using the structure "struct node *......." prior to its declaration....

    Add the definition of the structure node immediately after your #define...
    and that problem will be...
  14. Replies
    9
    Views
    3,068

    Available in FAQ

    Read the FAQ for Insertion Sort....

    Here is the Link


    -Harsha
  15. Replies
    2
    Views
    3,703

    Check this post

    Check this out...

    This Post

    -Harsha
  16. Replies
    8
    Views
    1,393

    So, printf works in a default console mode where...

    So, printf works in a default console mode where a \n is actually \n\r and cprintf changes the console mode where a \n is strictly \n and a \r is strictly \r.
  17. Replies
    8
    Views
    1,393

    OOps... learnt that........(my original...

    OOps...

    learnt that........(my original impression was that the linefeed char is only useful while printing the text to a printer......the good old dot-matrix printers etc., Never knew that \n...
  18. Replies
    8
    Views
    1,393

    But there is no rule that says cprintf will print...

    But there is no rule that says cprintf will print data right-aligned just because it sees spaces....
    My guess is that Guti14 is mistaking the inclusion of spaces to right alignment. cprintf...
  19. Replies
    5
    Views
    4,231

    Maybe the non-standard function open_camera() is...

    Maybe the non-standard function open_camera() is causing the problem and getting into blocked state. Are you sure the problem is not there?

    -Harsha
  20. Replies
    9
    Views
    3,736

    Hi.. Sorry for the confusion... In my First...

    Hi..
    Sorry for the confusion...
    In my First (original) post, there was a typo error wherein, I assigned 'A','B','C','D' to mystruct.ch[0]. (Forgot to replace 0 with 1, 2 and 3 respectively and...
  21. Replies
    9
    Views
    3,736

    Hi Dave, Thats cool, I just wanted that...........

    Hi Dave,
    Thats cool, I just wanted that........
    So, finally the part that i missed was, its essentially passing a structure to a function..... ( sometimes you really overlook the obvious.........
  22. Replies
    16
    Views
    2,068

    You cant use it to print anything but strings. I...

    You cant use it to print anything but strings. I mean not as a substitute for printf (with exceptions ofcourse, like when there is nothing more to print than strings and you need a \n at the end by...
  23. Replies
    16
    Views
    2,068

    a minor correction is: #include ...

    a minor correction is:


    #include <ctype.h>
    #include <stdio.h>
    #define N 100

    int main()
    {
    char string[N], *output;
  24. Replies
    16
    Views
    2,068

    Ofcourse It wont Work

    Of course It wont work.....

    1. Change void main() to int main() before Salem sees it... :D

    2. Add a
    return 0;

    3. What you are doing is:

    Start with pointer pointing to first char.
  25. Replies
    8
    Views
    2,761

    I believe no one will use the text file in a...

    I believe no one will use the text file in a compressed form and hence it may not be necessary. The solution suggested by itsme86 is a nice one.....

    -Harsha.
Results 1 to 25 of 195
Page 1 of 8 1 2 3 4