use getchar after each scanf to get ride of the \r , thats why *i think you program crashes
cause it stores inappropriate values
Type: Posts; User: St0rM-MaN
use getchar after each scanf to get ride of the \r , thats why *i think you program crashes
cause it stores inappropriate values
oooh , sorry i didn't noticed
"Questions specific to linux programming"
any way i didn't mean any thing with it , just sharing nothing more nothing less
Hi all this is the first lesson in Linux programming :
it might be BAD or not but this is what i got for now;
author : St0rM-MaN
license : Rippers License / GPL
site :...
i didn't get a word of that ?
what are you trying to do ?
and heap is a part of memory to store dynamically allocated memory i don't think you can implement it using a "fixed size array"
that's what i got from the scope
except the variable declared out side any function or prefixed with external in that case when you use it you have to define it
thanks mac
and my topic title...
hi all :)
#ifndef _HEADER_FILE_H
#define _HEADER_FILE_H
extern int x;
#endif
also
input=NULL;
assignment makes integer from pointer without a cast
you cannot assign NULL to ordinary char like that
use getchar();
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044873249&id=1043284392
read the FAQ
thanks but i am not that level :)
i am trying
thanks
thanks dwks
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct info
{
char name[50];
char age[50];
struct info *next;
but when i do this i will loss the linked list
i can't get that
if i set input->next to null
each time i call malloc to allocate space for input that will give me a new link right
then i end...
dwks
i will try what you said
thanks
right
so what about printing the linked list ?
thanks :)
hi all
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define ADD "add"
#define PRINT "print"
#define STOP "STOP"
i guess i finally under stand it
current is a pointer from type struct *info
we allocate space for this pointer to hold the data in the struct
then we
current->next=current witch points to the...
daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaamn
it finally works
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct info
{
i will try it now
thanks for your help
how about this one
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct info
{
int x;
nothing i wish i can smoke
you mean for example
[code]
new= malloc(sizeof(struct info));
new->next=new;
head=new
[code]
:(
:(
new is pointing to the allocated space
i can't understand it
hi all
i really hate this damn thing
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct info
{
thanks for your help <:-)
thanks for that
time <command>
hi all
i am looking for a program that i can use to calculate another program's execution time
i mean that (A) program can help me to find out how long did program (B) take to finish his job
i am...