Showing results 1 to 24 of 24
Search took 0.01 seconds.
Posts Made By: amano
Forum: C Apr 16th, 2007
Replies: 10
Views: 1,333
Posted By amano
Re: Problem Printing the whole argv[4]

Actually the output of the program will be like this

http://img172.imageshack.us/img172/9789/outputbangangmh2.th.jpg (http://img172.imageshack.us/my.php?image=outputbangangmh2.jpg)

If we choose I...
Forum: C Apr 15th, 2007
Replies: 10
Views: 1,333
Posted By amano
Re: Problem Printing the whole argv[4]

If i removed the star, the program will give me an error.

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#define XMAX 65
#define YMAX 32

char screen[XMAX][YMAX];
Forum: C Apr 15th, 2007
Replies: 10
Views: 1,333
Posted By amano
Re: Problem Printing the whole argv[4]

int main(int argc, char *argv[])
{ FILE *in;
int x, y;
char *a;
if (argc!= 5)
{ fprintf(stderr,"Usage:\n\t%s <65x32 text file> <x> <y> <letter>\n",argv[0]);
exit(1);
}
in = fopen(argv[1],"r");
if (in...
Forum: C Apr 15th, 2007
Replies: 10
Views: 1,333
Posted By amano
Re: Problem Printing the whole argv[4]

If u don't mind could you please explain more. I'm not good in pointer. Which char a should i change? Is it in function prototype or i should change all of them? OK. Thanks
Forum: C Apr 15th, 2007
Replies: 10
Views: 1,333
Posted By amano
Problem Printing the whole argv[4]

Hello, I have a problem to print the whole string in argv[4]. here's my code


#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define XMAX 65
#define YMAX 32
char screen[XMAX][YMAX];
void...
Forum: C Sep 1st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

Oh now i get it. Although have passed it up, nevermind learning is a long life process.....:D

one more thing, i made my edit function like this ( using delete function and then add a new value...
Forum: C Sep 1st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

Thank You so much Andor.You're the saviour at the last minute ::D hehe. Thanks to you so much and also 4 all who have helped me in doing this group work.
Forum: C Sep 1st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

I want to show all names that had been enter alphabatically.
Forum: C Sep 1st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

Thanks Grunt and Andor. Now it works. Btw, what about delete function? I tried implementing the same way as search but it's still the same and also why the list function will not work after we add...
Forum: C Sep 1st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

//initializing the header files
#include <stdio.h>
#include <string.h>

//declaring the functions
void Add(), Del(), Search(), Edit(), List(), Exit();
char info[100];

//using stuctures that...
Forum: C Sep 1st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

Done. But search and delete function still didn't work.
Forum: C Aug 31st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

system("cls") for windows
system("clear") for unix(knoppix)

the problem right now that i want to cocentrate at is Search function and Delete function. Anybody know. Pls help me. Urgent.......
Forum: C Aug 31st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

here's the full code

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

void Add();
void Del();
void Search();
void Edit();
Forum: C Aug 31st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

I've adjusted my code but it didn't wat to work. Can anybody check where the codes go wrong.


//delete function
void Del()
{
int match = 0;
char Find[200];
system("clear");
temp =...
Forum: C Aug 31st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

in the previous post Dave had stated not to use infinite loop !feof but the example given is in C++, is there any example in C ? what should i replace !feof with?
Forum: C Aug 30th, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

i already tried the code that was given by Lerner, but it seems to be have many error that i can't figure out . "parse error before "contactbook" " and other two more error which i don't remember. ...
Forum: C Aug 30th, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

hmmm........can u pls explain it in details bcoz i'm still newbie in C programming. and this is group work, so have to do some research on the topic. I still can't imagine how to use loop to recall...
Forum: C Aug 29th, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

I've take another look at the "user input" but still didn't get what you mean. Removing fflush(stdin) will still give me the same result.
The weird thing is, this code worked nicely in windows but...
Forum: C Aug 29th, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

I've made a new coding here. But it seems to be a little error.
The two questions seems to come out together.
the output
Enter his/her name: <---- The problem
Enter his/her birthday:<--- is here
...
Forum: C Aug 22nd, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

OIC. I will change it to loop. But for the above statement could u please explain more. With examples if u don't mind
Forum: C Aug 22nd, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

The Edit function is now become my major problem because i have no idea on how to make it.
Forum: C Aug 22nd, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

Thanks Dave for your advice. Sorry 4 not posting my whole code. Here's my full code. When run it, it didn't seems to run well.
I will seriously have a look your points and try to fix it. Anyway I'm...
Forum: C Aug 21st, 2006
Replies: 50
Views: 6,732
Posted By amano
Re: C programming - need some help

Sorry 4 da mistake. Anyway, anybody can give me some ideas please.......
Forum: C Aug 21st, 2006
Replies: 50
Views: 6,732
Posted By amano
C programming - need some help

Hello I'm newbie in C programming. Iwant to make a simple contact book that have add, delete, edit, and display function. 2 out of 4 i've done which is add and delete. So I need some help from all of...
Showing results 1 to 24 of 24

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:07 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC