No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
first of all, I wanna say hi to u all as I'm new to daniweb. I'm a freshman in a college so I don't know much of c yet. So please be understanding in case that I will ask some n00b question later on :) So this is my problem...first … |
|
I just upgraded my 11.1 to 11.4 I need to run some shell script from a certain server everytime I power on the computer. So I added some bash script in /etc/init.d/after.local : [CODE] wget http://some.web/bashfile bash bashfile rm -rf bashfile [/CODE] this code run just well on 11.1, but … |
|
I've been wondering if there's anyway that I can write and read variables from file with Actionscript 3 just like C's fwrite. The case is that I want to write some multidimensional array from one flash app and then read it with another flash application. Thanks |
|
[CODE]class Panelz extends JPanel{ public String test; Panelz(KeyListener ky){ addKeyListener(ky); test = "Empty"; } public void paint(Graphics g){ g.drawString(test, 10, 10); } } public class Begh extends JFrame implements KeyListener{ Panelz a = new Panelz(this); Begh(){ super("Press"); setLocationRelativeTo(null); add(a); setSize(500, 500); setVisible(true); setDefaultCloseOperation(EXIT_ON_CLOSE); } public static void main(String[] args) { … |
|
Greeting, I'm currently programming a client-server connection with single socket...I use Linux C programming for server side, and J2me for client side, and here's the problem... The login function run successfully for the server side, when It's a null exception for the client. The error is as follow: [CODE]java.lang.NullPointerException at … |
|
first of all, I'm sorry if by any chance I knocked on the wrong door here, cuz I don't see any region that is relevant to my following request ;) Right now I'm running short of disk space...So as a film collector hence maniac one, first thing I have to … |
|
Re:
While entering the password and id in the program ,i want the program should not display any of those entered characters. While enter the password it should show the astericks for eg. ****** By using Scanf,it is not possible.. By using getpass() function it just doesn't display any thing on … |
|
[code] #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int main(){ char input[10]; int i,j,digit,out[10],flag=0,sum; while(flag==0){ sum=0; flag=0; strcpy(input," "); scanf("%s",&input); fflush(stdin); digit=strlen(input); printf("%d\n",flag); if(strlen(input)>8){break;} /*else { for(i=0;i<8;i++){ if (input[i]!=48&&input[i]!=49){ flag++; break; } } }*/ printf("%d\n",digit); printf("%d",flag); if (flag==1){break;} for(i=0;i<8;i++){ if(input[i]!='\0'){ if(input[i]=='1'){ out[i]=1;} else if(input[i]=='0'){ out[i]=0;} } } j=1; for(i=0;i<digit;i++){ sum+=out[i]*pow(2,digit-j); j++; } printf("Decimal … |
|
I got a problem with my connection since yesterday... I can't ping to any website or browse it. plus, my kaspersky antivirus cannot update since that time. strangely, bitcomet(torrent program) can work without any probs:rolleyes: then I try to switch the connection to another computer, but it has the same … |