Are u hitting enter key after pressing x???
Type: Posts; User: vinit
Are u hitting enter key after pressing x???
give ur try to t,before posting,where u've stucked???
All are here to help u but nobody gonna do assignment for u.
post ur code
U have't accepted value for "keypress"
Add statement scanf("%s",&keypress); after last printf(); then it should work
if u encounter /t then print it as printf("\t"); it will do fine.
@fnoyan : Yes ur right. But at any case an instance or a process exits OS cleansup it process space.
So the answer to question answer should be yes.
what say u?
On exit OS cleansup everything.
I have'nt allocated memory for msg1,then also it gives same output.As Im not accessing further elements from msg1 it works.
No warning appeared to me.Im using gcc 3.4.3 on RHEL4,even I turned -Wall option.
try this menu->headCategory->headitem->prices[index].dollars
Because statement
printf("%d ",1[a]);
is equivalent to
printf("%d ",a[1]);
& is valid statement in C
Agree to it but,thing is I want to take experience of developing distributd application.I really dont have any specifics about it I just wanna try to develop it or help somebody to develop it thats...
Hi all,
I am interested in development of small distributed computing applications or utilities for linux.
I have heard of distributive make utility but its already developed.
Yes ofcourse its not...
We are certainly not here for arguements,wll If I've said someting which is not right , then u can say "it was wrong" that will do,No need to use harsh words.Anyways thanks for correcting me,I've...
Well
was really unnecessary.Im not master of all here,that was my opinion.Anyways Thanks for ur answer on Ex_oring. However I guess encryption are not done by single key all time,until & unless...
indeed
buffer[0]=' \0'; causes buffer[0] to content NULL character indicating end of string.So does fprintf(); cause to print nothing or blank as at very beginning i.e. buffer[0] it receives...
try putting
temp_ptr = temp; before entering while(1) loop.I guess That will do it.
Thanks & Regards
Vinit.
I know very simple & yet effective algorithm,
Just Ex-Or input with known string & result will be encrypted string, on reception again Ex-or with same string to get original string.
U can Ex-or it...
d = (x/y);
instead of try this
d = (float)(x/y);
Jafet is right, just keep in mind about sign & unsigned
e.g. if int is tored in two bytes then its range is "-32768 to +32767" (signed int) i.e 2^15
if unsigned int then its "0 to 65535" i.e 2 ^ 16
Announcement: Forum Guidelines. Read before posting
Announcement: Homework
Refer to thread created by sherwi = How to create a FILE?newbie question.. its some what similar.
In that case U've to write code which will include plenty of fseek(); to get to actaul position in file & replace them with new values of ur own.For that use file opening mode as "wb", so that U can...
mU can think of modifying ur function strtok(input, " "); as
void strtok(input," ",char *dest) {
/* Ur code */
}
call it by
strtok(input," ",&cmd.command);
strtok(input,"...
Pass address of cmd.command i mean string to function as follows
something like
strtok(char *p,NULL, " ") {
/* char *p is pointer to cmd */}
& u call it as...
cmd.command = strtok(input, " ");
What value ur returning from strtok(); ??? If ur returning "char *" then obviously u'll get such error,cause ur returning "char *" which is local in strtok()...
If u want to replace some bytes then u can use hex editor to edit samples.