15,910,009 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ArvindSai (Top 13 by date)
ArvindSai
6-Jun-17 13:28pm
View
Deleted
yes, thanks for your solution it worked. but, I never faced this type of bug i have never mentioned in this way but still i used to get result as expected except for this time, can you give me a small brief for it if possible.
ArvindSai
5-Mar-17 1:48am
View
thank you,
but one last thing.
say that I have entered a character,as it is invalid it prints "Invalid entry" then again starts the execution from beginning (without incrementing the value of j of course)of the loop by printing " Enter the number of elements you want to enter (MAX VALUE 100) : ", then after why it is not pausing the execution for the user's input as the next instruction is scanf_s?
ArvindSai
4-Mar-17 10:15am
View
That should work:laugh:
ArvindSai
4-Mar-17 10:11am
View
Well thank you, but my laptop keyboard doesn't have the numpad, just the numbers keys above the alphabets i tried using that but it didn't work, how can I do it without using Numpad
ArvindSai
4-Mar-17 9:54am
View
I don't find any key on my keyboard that prints the symbol theta, besides I found myself that ASCII 233 will hold the symbol for theta, How did you enter it through keyboard.
ArvindSai
2-Mar-17 12:57pm
View
I tried correcting the array values and removed the goto statement
for now the above program is like follows
int main()
{
int marks = 0, sub[5], i = 0;
while (i <= 4)
{
printf("\nEnter Subject %d Marks: ", i + 1);
scanf_s("%d", sub[i]);
marks = marks + sub[i];
}
printf("\nTotal Marks : %d out of 500, Aggregate percentage is %f", marks, marks / 5);
return 0;
}
But still .....same problem
ArvindSai
2-Mar-17 12:48pm
View
Thanks for the solution:)
so, How can I write a code that detects the negative values(in valid values) and jumps back to the statement that allows to re enter new valid values?, Any suggestions or ideas please??
ArvindSai
2-Mar-17 12:31pm
View
I tried debugging but it pops the same message@Graeme_Grant
ArvindSai
2-Mar-17 12:27pm
View
so i need to mention the statement after else in flower brackets?
ArvindSai
2-Mar-17 12:25pm
View
Thanks for the link!!:)
ArvindSai
2-Mar-17 12:25pm
View
Deleted
so i need to mention the statement after else in flower brackets?
ArvindSai
2-Mar-17 12:20pm
View
Its complies the program but, after entering the value for the first subject it closes the windows console application and pops a window showing the message as mentioned in the query
I'm afraid to say that i don't know how to use the debugger, I'm very new to visual studio, can you give me any suggestions to learn about visual studio compiler and how it works:( @Graeme_Grant
ArvindSai
2-Mar-17 12:15pm
View
What shall I use for detecting the entry of negative values for subjects( as they cannot be), any suggestions?:)
Show More