thank you! it helped a lot
Type: Posts; User: ipe
thank you! it helped a lot
Hi all!
I'm looking for the easiest way to read some registry key but i am really newbie.
i search in msdn and inside this forum but everything i found is too complex and i couldn't understand....
thank you guys. the situation is:
tmpstr -> "string\0"
userip[3] -> itoa() -> 150.30.56.90 -> tmpstr[]
the problem is that i'm trying to concat userip to tmpstr and then concat anpther string to...
Hi all! i'm trying to use string functions but I isn't working as I hope:
void gravar()
{
unsigned int a=0 , b=0;
char tmpstr[255], ip[16], userip[3];
scanf("%d.%d.%d.%d",...
thank you!
Hi guys!
How should I do to stop a for statement if ESC key is pressed?
thank you guys!
Oh I see... posix
Thank you guys for the help!
Sorry. I didnt reported I want a portable code. None of windows APIs plz.
Thanks!
How do I "read" some text on console?
example:
system("program.exe");
then the program.exe i called from my code, puts some output string on the screen and I'd like to get that output message....
I found this code on faq. (get the own ip)
But I couldn't understand it. What may I change to make this code work?
...
actually i'd like my program would be "compilable" in other plataforms behind windows.
Thank you hammer!
ipv4 & ipv6 :)
thanks
voce é judeu msm? pq vcs sao tao unidos com os e. unidos da a.? vcs deveria levar a religiao a serio cara! vejo q vc nao leva so pelo icone q escolheu
por que eles sao sacanas? me explique. vc é brasileiro?
winsock.h must be used only under windows?
sim. eu falo portugues. e vc é mesmo de israel? deixe os palestinos em paz!
hi!
Firstly, i need to say i tried to search about this issue in the forum but it dont work. (minimum forum search length = 3 // strlen("ip") = 2 :) )
well i just need to know the local ip...
finish!
where is a--; must be a--; c--;
still failing when a sequential of 2 repeated numbers is in array.
look: ...28,28....
#include <stdio.h>
int main()
{
int rptds[] = { 31,17,22,25,28,13,20,20,25,28,28,32 };
thank you guys!!
XSqaured:
thank you. was missing a--! :)
a = sizeof( rptds ) / sizeof( int ) - 1;
pretty one! it may be faster
the problem is that in some cases it doesn't overwrite repeated numbers and in others it overwrite non-repeated numbers with repeated ones. this code isn't working properly. :(
Hi guys! I got a simple problem but I dont know whats wrong in my code.
The situation is:
I have an array of integers:
int rptds[] { 12, 32, 40, 12, 35, 95, 32, 12}; (any else)
Then I want to...
owwwhh!!
i got it now!
in c: "\" is "\\"
and the scanf converts \ to "\\"
thanks!
how do i check if a file exist?
without using if (fopen(....));
yes, i know it!!!!
but why the user needn't to write c:\\...\\ ?
I still not understanding why it accepts when the user write it but not when i write it on code.
scanf("%s",&path);
if (file = fopen(path,"r")) ...;
in this case, if i set path to...
hi all!
I'm curious about fopen() function.
For exmaple:
fopen("c:\windows\test","r");
won't work.
But if i change \ for /
then
fopen("c:/windows/test","r");