Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
Questionhow to make alfa channel enable Pin
Parshant Verma22-Sep-06 3:38
Parshant Verma22-Sep-06 3:38 
AnswerRe: how to make alfa channel enable Pin
Judah Gabriel Himango22-Sep-06 4:48
sponsorJudah Gabriel Himango22-Sep-06 4:48 
QuestionRe: how to make alfa channel enable Pin
Parshant Verma24-Sep-06 19:48
Parshant Verma24-Sep-06 19:48 
Questiontree view > treenodestate Pin
Deepak the Cool22-Sep-06 3:20
Deepak the Cool22-Sep-06 3:20 
AnswerRe: tree view > treenodestate Pin
Judah Gabriel Himango22-Sep-06 4:49
sponsorJudah Gabriel Himango22-Sep-06 4:49 
QuestionCall a lib from .NET Pin
123456uio22-Sep-06 3:17
123456uio22-Sep-06 3:17 
AnswerRe: Call a lib from .NET Pin
Not Active22-Sep-06 3:51
mentorNot Active22-Sep-06 3:51 
QuestionMake a function ReadNumber with the following specifications: Pin
ngachua22-Sep-06 3:17
ngachua22-Sep-06 3:17 
Please i need help and the code of the folloing specification bellow:


Make a function ReadNumber with the following specifications:

int ReadNumber(char g[])
{
// PRE : -
// POST : the variable g has been filled with character 0.. 9 ("digits only")
}

Functional requirements:

· there are no "leading" zero's
· the function ignores all "leading no digits"
· the function returns immediately as soon as "digits" are not followed by "digits" (THEREFORE THE FUNCTION DOES NOT WAIT FOR a RETURN or something like that)
· as one or more leading zero's are followed by a NOT "digit" the function returns 0

Non functional requirements:

· You are not allowed to use any temporary arrays
· The maximal length of the string is 100


remarks:

· Write down how you want to test the function.
· Give your test inputs to test all possible cases.
· The function must be fool-proof and protected against too long input strings.
· DO NOT START TO CODE IMMEDIATELY
· THINK ABOUT IT AND WRITE DOWN A PLAN TO STATE HOW YOU WANT TO TACKLE THE PROBLEMS.

Example main program:

void main(void)
{
char number[MAXSTRING];
ReadNumber(number);
printf("%s", number);
getch() ; // wait for a key to quit
}




Roland

AnswerRe: Make a function ReadNumber with the following specifications: Pin
J4amieC22-Sep-06 3:26
J4amieC22-Sep-06 3:26 
QuestionC# Abstract classes (VS2005) Pin
#realJSOP22-Sep-06 2:35
mve#realJSOP22-Sep-06 2:35 
AnswerRe: C# Abstract classes (VS2005) Pin
Not Active22-Sep-06 2:43
mentorNot Active22-Sep-06 2:43 
GeneralRe: C# Abstract classes (VS2005) Pin
#realJSOP22-Sep-06 2:59
mve#realJSOP22-Sep-06 2:59 
GeneralRe: C# Abstract classes (VS2005) Pin
Judah Gabriel Himango22-Sep-06 4:55
sponsorJudah Gabriel Himango22-Sep-06 4:55 
AnswerRe: C# Abstract classes (VS2005) Pin
led mike22-Sep-06 4:52
led mike22-Sep-06 4:52 
QuestionLaunching an application from memory Pin
MagiMike22-Sep-06 1:41
MagiMike22-Sep-06 1:41 
AnswerRe: Launching an application from memory Pin
Nader Elshehabi22-Sep-06 2:24
Nader Elshehabi22-Sep-06 2:24 
GeneralRe: Launching an application from memory Pin
MagiMike22-Sep-06 3:06
MagiMike22-Sep-06 3:06 
GeneralRe: Launching an application from memory Pin
Nader Elshehabi22-Sep-06 4:44
Nader Elshehabi22-Sep-06 4:44 
AnswerRe: Launching an application from memory Pin
Not Active22-Sep-06 2:40
mentorNot Active22-Sep-06 2:40 
Questionswap froms Pin
faladrim22-Sep-06 1:39
faladrim22-Sep-06 1:39 
AnswerRe: swap froms Pin
Christian Graus22-Sep-06 1:55
protectorChristian Graus22-Sep-06 1:55 
GeneralRe: swap froms Pin
faladrim22-Sep-06 5:01
faladrim22-Sep-06 5:01 
QuestionProblem with MDI forms Pin
ParagGupta22-Sep-06 1:32
ParagGupta22-Sep-06 1:32 
QuestionRe: Problem with MDI forms Pin
Nader Elshehabi22-Sep-06 2:28
Nader Elshehabi22-Sep-06 2:28 
AnswerRe: Problem with MDI forms Pin
ParagGupta22-Sep-06 3:22
ParagGupta22-Sep-06 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.