User Profile

Collapse

Profile Sidebar

Collapse
shadyabhi
shadyabhi
Last Activity: Nov 11 '11, 11:06 AM
Joined: Dec 30 '08
Location: Gandhinagar, India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shadyabhi
    replied to A weird declaration: int *a="any_string"
    in C
    thanx for reply ...
    But, i tell you dude, that program(the exact code which i posted) compiles gcc 4.2.4...
    Which compiler are you using??
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to A weird declaration: int *a="any_string"
    in C
    @weaknessforcat s

    I used GCC as it can be understood through the terminal output i posted above..

    But, still i didnt get the answer of what I actually asked.
    Can anybody answer? I am really curious about this peculiarity.
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to A weird declaration: int *a="any_string"
    in C
    @weaknessforcat s

    I used GCC as it can be understood through the terminal output i posted above..

    But, still i didnt get the answer of what I actually asked.
    Can anybody answer? I am really curious about this peculiarity.
    See more | Go to post

    Leave a comment:


  • shadyabhi
    started a topic A weird declaration: int *a="any_string"
    in C

    A weird declaration: int *a="any_string"

    Code:
    #include<stdio.h>
    int main(void)
    {
    	int *p="Hello_i_am_abhijeet";	//Whats this actually doing???
    	char q[]="Hello_i_am_abhijeet";	//This is OK
    	
    	printf("%c %c\n",p[2],q[2]);	      //Here p[2] shows "a" that means 
    						      //due to p[2], pointer moves 8 bytes 
    	return 0;
    }
    Terminal Output:

    ...
    See more | Go to post

  • shadyabhi
    replied to GUI Application Development
    in C
    guyz pls, i need more replies.. experts pls reply
    See more | Go to post

    Leave a comment:


  • shadyabhi
    started a topic GUI Application Development
    in C

    GUI Application Development

    I want to start GUI programming. First of all, I know C/C++. I have no background in developing a GUI Application.

    I searched a bit of GUI development. I came across GTK+ and QT. I am confused on what to choose between the two.

    I basically want that my application:

    i) runs on LINUX on both Gnome and KDE. I know that GTK+ is basically for Gnome and QT for KDE. But then also i would like you to comment...
    See more | Go to post

  • shadyabhi
    replied to How do I capture a key press ?
    in C
    The kind of feeling i get after reading such responses keeps me going to participate in forums
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to Develop A calculator GUI interface
    in C
    I have no problem with the logic... I want to learn, how to develop GUI applications thats the reason i took a very easy program of calculator..

    My aim is to learn how to develop GUI applications and NOT the logic...

    I also heard something called QT.. What is it? Is it useful in making GUI apps?
    See more | Go to post

    Leave a comment:


  • shadyabhi
    started a topic Develop A calculator GUI interface
    in C

    Develop A calculator GUI interface

    Experts, can you please guide me in whats should i learn to make a calculator with GUI..

    I currently know basic of C/C++, i mean the level to what is taught in Institutes in 1st semester while doing engineering. What libraries to learn or what else?
    I want the application to work in LINUX under Gnome desktop environment. I use GCC as compiler.

    Pls tell me in order(what should be learned first and then......)
    See more | Go to post

  • shadyabhi
    replied to How do I capture a key press ?
    in C
    i also asked a silimar question earlier in this forum

    Here is the link:

    http://bytes.com/topic/c/answers/859...-alt-1-etc-etc

    I understood the whole thing through this only. Just have a look and surely you will get it...
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to Global variable and static global variable
    in C
    ok i understood it. thanks for your support.
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to Run UNIX Without Installation
    you can use Vmware workstation and then install any UNIX OS in that
    See more | Go to post

    Leave a comment:


  • shadyabhi
    started a topic Global variable and static global variable
    in C

    Global variable and static global variable

    I heard that all global variables are static..

    If its so then what is the difference between the 2 declarations:
    Code:
    #include<stdio.h>
    
    int a;
    static int b;
    
    main()
    {
    ....
    }
    What is the difference between there visibility and how long they remain in memory?
    See more | Go to post

  • So, thanks to you all. I did what i wanted...
    All because of your support..

    SPECIAL THANKS TO "DONBOCK"

    Code:
    #include<stdio.h>
    
    int main()
    {
        int ch;
        int ascii[10];
        int count=1;
        ch=getchar();
        ascii[0]=ch;
        while (1)       //Loop used for storing successive ASCII values
        {
            ascii[count]=getchar();
    ...
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to Accept key strokes like Ctrl+A, Alt+1 etc etc
    in C
    @donbock

    I tried exactly what you said. Do tell if i misinterpreted you Below is the code:

    #include<stdio. h>

    int main()
    {
    char ch[3];
    scanf("%s",ch);
    printf("%d %d",ch[0],ch[1]);
    return 0;
    }

    When i enter "Alt+A", output is "-61 -127"(WITHOUT QUOTES) WHICH SHOULD ACTUALLY BE "00 30"(WITHOUT...
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to Accept key strokes like Ctrl+A, Alt+1 etc etc
    in C
    I went through the link below..

    ASCII Chart and Other Resources

    It contains a PAIR of 2 numbers for each strokes.. How to use that... Pls guide a bit more using C code
    See more | Go to post

    Leave a comment:


  • shadyabhi
    replied to Accept key strokes like Ctrl+A, Alt+1 etc etc
    in C
    i just want to make a SIMPLE command line program that can accept keystrokes like "Ctrl+a" or "Ctrl+B" or "Alt+2" or anything... Means combination of 2 keys..
    Thats is very simple when there are only keys like 1-10 numbers or alphabets a-z... i can easily use ASCII values to identify the key..

    If suppose i make a simple calculator for performing addition, substraction, multiplication or fivision.....
    See more | Go to post

    Leave a comment:


  • shadyabhi
    started a topic Accept key strokes like Ctrl+A, Alt+1 etc etc
    in C

    Accept key strokes like Ctrl+A, Alt+1 etc etc

    How can i accept key strokes like Ctrl+A etc etc ... i mean combination of 2 keys... Pls give a small peice of code to demonstrate...

    i use gcc under linux platform
    See more | Go to post
No activity results to display
Show More
Working...