I've just started C programming and how can I make a program to trace the ip of the receiver of the packets/data that I send across the internet? For example, I open the program and send an email and the program traces the data and gives me the receiver ip.
C programming question?
You really can't do what you say you want to do. When you send an email, it goes first to your ISP's mail server, then from there to the recipient's mail server. Later, when they pick up the email from their ISP, there's no way for you to know what IP address they're using to retrieve the email.
Reply:If you are writing an email client, you can get the ip of your smtp mailserver.
If you want the ip of the recipient's mail server you do:
host -t mx domain (note the hostname)
and then host hostname
See the link for how to resolve a hostname in C
Friday, May 21, 2010
Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?
This is the book
http://search.barnesandnoble.com/booksea...
Is it a good first guide for the programming scene with c#?
Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?
Them Head First books from Oreilly are ok.
It really didn't say if it was for the 2005 version or not.
As xna needs at least the 2005 C# express edition, you might want to look for books that do instruct working with 2005 (not really that much difference) but there is a few new things that XNA might use (such as generics) that might not be explained in some books.
savage garden
http://search.barnesandnoble.com/booksea...
Is it a good first guide for the programming scene with c#?
Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?
Them Head First books from Oreilly are ok.
It really didn't say if it was for the 2005 version or not.
As xna needs at least the 2005 C# express edition, you might want to look for books that do instruct working with 2005 (not really that much difference) but there is a few new things that XNA might use (such as generics) that might not be explained in some books.
savage garden
What are priority quess in c programming language? How can it be implemented? Explain.?
check this link
http://cplusplus.com/reference/stl/prior...
http://cplusplus.com/reference/stl/prior...
Please anyone tell me which site teach on line data stretcher through c programming language or have Notes?
i going to give one paper in data stretcher through C-programming Language.so i am looking good notes of data stretcher through c.If anyone know then pls help me.
Please anyone tell me which site teach on line data stretcher through c programming language or have Notes?
Simply go to w3schools.com and search for c++\data stretcher
http://www.w3schools.com/
or use the Microsoft web side
Please anyone tell me which site teach on line data stretcher through c programming language or have Notes?
Simply go to w3schools.com and search for c++\data stretcher
http://www.w3schools.com/
or use the Microsoft web side
What is the most popular programming language, how different to C?
Trick question - C _is_ the most popular programming language.
Well to be honest, Java and VB are probably more popular in general (i.e. including home user hobbyists), but in the industry you'll find that C/C++ are more widely used.
Rawlyn.
What is the most popular programming language, how different to C?
c is chinese
Reply:JAVA and PL/SQL but they cannot replace each other.
Reply:PHP for scripting language, JAVA for real prog language. C is the grandfather of those programming language (but still powerfull).
Well to be honest, Java and VB are probably more popular in general (i.e. including home user hobbyists), but in the industry you'll find that C/C++ are more widely used.
Rawlyn.
What is the most popular programming language, how different to C?
c is chinese
Reply:JAVA and PL/SQL but they cannot replace each other.
Reply:PHP for scripting language, JAVA for real prog language. C is the grandfather of those programming language (but still powerfull).
Where can I get basic learnig tools on programming with c#?
1. download the visual c# express edition, it is FREE...
http://msdn2.microsoft.com/en-us/express...
2. Try to surf the link I have given and find the tutorials for begineers there
3. Search and download some examples
www.planetsourcecode.com
Where can I get basic learnig tools on programming with c#?
Have a look at http://www.programmersheaven.com/zone30/... it's a good resource for code snippets, articles and general help. Should get you going.
potential break up song
http://msdn2.microsoft.com/en-us/express...
2. Try to surf the link I have given and find the tutorials for begineers there
3. Search and download some examples
www.planetsourcecode.com
Where can I get basic learnig tools on programming with c#?
Have a look at http://www.programmersheaven.com/zone30/... it's a good resource for code snippets, articles and general help. Should get you going.
potential break up song
In Linux c programming, can we read a single charecter into a char variable without pressing enter key ?
I wrote the following program but I have to press enter key to get read the value into the variable.
#include%26lt;stdio.h%26gt;
main()
{
char c;
while(c!='n')
{
scanf("%c",%26amp;c);
fflush(stdin);
printf("ok");
}
}
Is there any solution for this? Why?
In Linux c programming, can we read a single charecter into a char variable without pressing enter key ?
Use curses library. Its a wonderful library for exactly what you are looking for. Using this library you can handle keystrokes i.e. a char is trapped as soon as it is pressed, you dont have to wait for enter key press.
if curses.h is not availble in your machine, then re-run Linux setup, select custom libraries, there you will find ncurses library.
You get more info at:
http://www.gnu.org/software/ncurses/ncur...
http://www.unet.univie.ac.at/aix/aixprgg...
http://www.gmonline.demon.co.uk/cscene/C... -%26gt; great one to start off with
Good luck.
Reply:use the getch() function if you want to read a single char and not have it written to the console. If you want to read a char and have it written to the console then use getchar(). Neither function have any arguments to deal with and they only return characters from the keyboard, if either function returns zero it means that multiple keys have been pressed like Alt, if it dose return zero then you have to call the function again to find out what non-graphical keys were pressed. getch and getchar may not appear in your library of functions but it is in mine in the conio header.
Reply:Have you tried kbhit();
#include%26lt;stdio.h%26gt;
main()
{
char c;
while(c!='n')
{
scanf("%c",%26amp;c);
fflush(stdin);
printf("ok");
}
}
Is there any solution for this? Why?
In Linux c programming, can we read a single charecter into a char variable without pressing enter key ?
Use curses library. Its a wonderful library for exactly what you are looking for. Using this library you can handle keystrokes i.e. a char is trapped as soon as it is pressed, you dont have to wait for enter key press.
if curses.h is not availble in your machine, then re-run Linux setup, select custom libraries, there you will find ncurses library.
You get more info at:
http://www.gnu.org/software/ncurses/ncur...
http://www.unet.univie.ac.at/aix/aixprgg...
http://www.gmonline.demon.co.uk/cscene/C... -%26gt; great one to start off with
Good luck.
Reply:use the getch() function if you want to read a single char and not have it written to the console. If you want to read a char and have it written to the console then use getchar(). Neither function have any arguments to deal with and they only return characters from the keyboard, if either function returns zero it means that multiple keys have been pressed like Alt, if it dose return zero then you have to call the function again to find out what non-graphical keys were pressed. getch and getchar may not appear in your library of functions but it is in mine in the conio header.
Reply:Have you tried kbhit();
Subscribe to:
Posts (Atom)