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??
User Profile
Collapse
-
@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.Leave a comment:
-
@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.Leave a comment:
-
A weird declaration: int *a="any_string"
Terminal Output: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; }
... -
-
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... -
The kind of feeling i get after reading such responses keeps me going to participate in forumsLeave a comment:
-
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?Leave a comment:
-
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......) -
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...Leave a comment:
-
-
you can use Vmware workstation and then install any UNIX OS in thatLeave a comment:
-
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:
What is the difference between there visibility and how long they remain in memory?Code:#include<stdio.h> int a; static int b; main() { .... } -
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();Leave a comment:
-
@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...Leave a comment:
-
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 codeLeave a comment:
-
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.....Leave a comment:
-
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
No activity results to display
Show More
Leave a comment: