char/string count...?help me please..

pieter Valdano pattiruhu pieter_ambonese at yahoo.co.id
Tue Jun 19 18:44:13 PDT 2007


vermi Wrote:

> you string is a char array ? Try array.length !

here is my count char program:

import std.stdio;
import std.string;

void main()
{
     char* s;
     char string[100];

writef("please input your text=");
scanf("%s",&string);
writef("your text length is=",string.length);
}

does my program work properly?. when i try to run it, d compiler tell that 
can't convert string to int. please show me the way to convert string into integer. (if you don't mind i need your correction in my simple char program). thank you very much...GBU






More information about the Digitalmars-d-learn mailing list