User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 426,098 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,777 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 11 of 11
Search took 0.01 seconds.
Posts Made By: somename
Forum: Perl Aug 31st, 2008
Replies: 0
Views: 247
Posted By somename
GUI question

Hello. My question is about perlTk. I'm wondering how to write a gui app like that: it has 2 buttons, 1 is "run" and 2 is "stop". App should run some function and when i press "stop" button, it...
Forum: C Jun 11th, 2008
Replies: 2
Views: 281
Posted By somename
arguments in functions

Hi guys. I cannot figure out how to do next thing.
for example i have a little progie like this:
int myfunction(int argc, char *argv[]){
int i;
for(i=0;i<argc;i++)
unlink(argv[i]);
}
int...
Forum: C Jun 4th, 2008
Replies: 3
Views: 314
Posted By somename
Re: copying binary files and setting permisions

thank you for your replies, but i have to deal with it later because now i have devastating exams and absolutely now free time for programming ;(
Forum: C Jun 3rd, 2008
Replies: 3
Views: 314
Posted By somename
copying binary files and setting permisions

Hi. i'm trying to copy a binary already with a predefined permissions. I got this code:
FILE *f1, *f2;
char cp;
f1 = fopen("file1","rb");
f2 = fopen("file2","wb");
while(!feof(f1)) {
cp =...
Forum: C May 31st, 2008
Replies: 3
Views: 286
Posted By somename
Re: Integers, chars(don't realy know how to name the subject)

Duoas, thank you! Problem solved. Yes, i was about how to convert number to string, just didnt know how to express myself properly. Thanks!
Forum: C May 31st, 2008
Replies: 3
Views: 286
Posted By somename
Integers, chars(don't realy know how to name the subject)

Hello. I got a problem of that type:
for example i have a simple program like this:

int main(){
sleep(10);
}

now if i define time to be 10 sec, prog works fine.
#define TIME 10
sleep(TIME)
Forum: C May 26th, 2008
Replies: 7
Views: 1,236
Posted By somename
Re: find and replace string in a text file

guys, thank you very much for your replies, especially jephthah, your code works great and i get it now where i got lost with my code! Thanks once again!
Forum: C May 24th, 2008
Replies: 7
Views: 1,236
Posted By somename
find and replace string in a text file

Hello. I am trying to find out how to write a function to replace a string in a text file. So far i got this:
find -> is a word i am looking for replace, rep -> new word, f1 -> my file. And i'm stuck...
Forum: Perl May 14th, 2008
Replies: 1
Views: 383
Posted By somename
self killing perl prog

HI guys. Jeezz, perl forum is kind of abandoned ;/ Anyway, maybe some one will have an idea.
I want to write a selfkilling perl prog :D Ok, i got a simple prog which shows up a simple tk window with...
Forum: C May 4th, 2008
Replies: 3
Views: 282
Posted By somename
Re: executing commands from text file

Salem, thank you!:) the code:

int main()
{
FILE *fp;
fp=fopen("file.txt","r");
char s[256];
while( fgets(s, sizeof(s),fp)!= NULL)
if ( strncmp( s, "hi", 2 ) == 0 ){
{
Forum: C May 4th, 2008
Replies: 3
Views: 282
Posted By somename
executing commands from text file

Hi everyone. I got a total newbe question and i am new to c programming. I want to write a program that will executing commands , written in separate text file.
Lets say, in perl i got something...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 3:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC