Recent content by sh4rif
-
S
Sentinel value how to correct my code to make it more efficient
thanks guys i know i have a bug in my code i can't think of anything how to check do you have any tips to sort this out?... I would really apperciate any help... thanks one more time take care bye- sh4rif
- Post #4
- Forum: Programming and Computer Science
-
S
Sentinel value how to correct my code to make it more efficient
Hello to all I have been given a task in "C" environment ... to read a text file with a sequence of positive integers the sequence should be terminated with a sentinel value of -1 Values in text file is : 6 9 17 4 12 8 7 -1 We have to read the integers from text file, display the...- sh4rif
- Thread
- Code Value
- Replies: 4
- Forum: Programming and Computer Science
-
S
How to avoid a character value in integer or floating variables
thanks a lot to all of you.. i really aperciate your effort and time... come back if i need more help... thanks once again sharif- sh4rif
- Post #5
- Forum: Programming and Computer Science
-
S
How to avoid a character value in integer or floating variables
Hello everyone Thanks for viewing this topic for me... my question is when I tried to check user inputs a valid age it works only if a number is entered. If by mistake user inputs a character value (e.g. any character a to z or any symbol) this loop runs infinite How can I check if a...- sh4rif
- Thread
- Floating Integer Value Variables
- Replies: 4
- Forum: Programming and Computer Science