15,895,192 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 Jayfam (Top 70 by date)
Jayfam
3-May-12 8:51am
View
normally is i click the radio button on the 3 product, then only press submit to get the total cost
but this case is i direct press submit button, it comes out the total cost. so this is my problem
Jayfam
3-May-12 3:59am
View
its still not work, haven click the radio button, and press submit then auto show total cost already. It is not logic right?
Jayfam
2-May-12 15:15pm
View
im just want to add the total price of the product 59 + 49 +39 by selecting the radio button
Jayfam
3-May-11 14:55pm
View
ok, i try it out see
Jayfam
3-May-11 14:51pm
View
ok, thanks a lot Bro.
Jayfam
3-May-11 14:47pm
View
i declared them using struct char already
Jayfam
3-May-11 14:20pm
View
Bro, any solution?
Jayfam
3-May-11 13:49pm
View
thank you
Jayfam
3-May-11 13:47pm
View
Bro, still the same. stopped working when show the output
Jayfam
3-May-11 13:40pm
View
mine coding no problem already. Thanks for your coding too.
Jayfam
3-May-11 13:40pm
View
the second for loop got any problem?
Jayfam
3-May-11 13:33pm
View
problem solve..no error already...thanx
Jayfam
3-May-11 13:29pm
View
i correct as you told, but i still got problem and need to close.
Jayfam
28-Apr-11 16:29pm
View
thanks for the explanation
Jayfam
28-Apr-11 16:28pm
View
ok, i will try hard on it
Jayfam
28-Apr-11 16:23pm
View
ya, im new in this chapter
Jayfam
28-Apr-11 16:11pm
View
a new question about struct
http://www.codeproject.com/Questions/188481/Write-a-statement-which-can-receive-input-from-use.aspx
Jayfam
28-Apr-11 16:08pm
View
ok
Jayfam
28-Apr-11 16:04pm
View
ok, understand. Thanks guys.
Jayfam
28-Apr-11 16:02pm
View
void Foo() mean?
Jayfam
28-Apr-11 15:53pm
View
the question just declare variable x1, x2 and x3 as structure of type complex , why your answer got int z ?
Jayfam
27-Apr-11 8:01am
View
ok, i try using structure on this application
Jayfam
27-Apr-11 5:43am
View
i already declared them in char* P[PRODUCT] ={"Product1","Product2","Product3","Product4","Product5"};
Jayfam
27-Apr-11 4:08am
View
it still showing that product 4 and product 5 undeclared
Jayfam
27-Apr-11 4:07am
View
#include <stdio.h>
#define SALESPEOPLE 5
#define PRODUCT 6
int main(void)
{
char* P[PRODUCT] ={"Product1","Product2","Product3","Product4","Product5"};
int salesman;
int Count;
printf("%s%13s%18s%23s%28s%33s/n", "Salesperson", "Product 1", "Product 2","Product 3","Product 4","Product 5");
for(Count=0; Count< PRODUCT; ++Count){
printf("Enter 5 value of product 1 by each respectively salesperson");
scanf("%f", &Product1[Count]);
}
for(Count=0; Count< PRODUCT; ++Count){
printf("Enter 5 value of product 2 by each respectively salesperson");
scanf("%f", &Product2[Count]);
}
for(Count=0; Count< PRODUCT; ++Count){
printf("Enter 5 value of product 3 by each respectively salesperson");
scanf("%f", &Product3[Count]);
}
for(Count=0; Count< PRODUCT; ++Count){
printf("Enter 5 value of product 4 by each respectively salesperson");
scanf("%f", &Product4[Count]);
}
for(Count=0; Count< PRODUCT; ++Count){
printf("Enter 5 value of product 5 by each respectively salesperson");
scanf("%f", &Product5[Count]);
}
for(salesman=1 ; salesman
Jayfam
26-Apr-11 16:18pm
View
accept already
Jayfam
26-Apr-11 16:16pm
View
thanks
Jayfam
26-Apr-11 16:12pm
View
thanks for the help, i finally understand and the problem solve
Jayfam
26-Apr-11 16:12pm
View
thanks for the help, i finally understand and the problem solve
Jayfam
26-Apr-11 15:53pm
View
i got a error of old-style parameter declarations in prototyped function definition
Jayfam
26-Apr-11 15:46pm
View
char* is? i not understand with char*, can you further explain?
Jayfam
26-Apr-11 15:43pm
View
can u modify my coding made it works, because i hope can using my coding rather copy other people coding
Jayfam
21-Apr-11 15:53pm
View
can show me roughly the coding in array form?
Jayfam
21-Apr-11 10:55am
View
thx...understnad
Jayfam
21-Apr-11 10:34am
View
can show me roughly the coding, because i new in array
Jayfam
21-Apr-11 10:31am
View
i do not understand with this printf(months[month-1]);
Jayfam
17-Apr-11 11:39am
View
ok XD
Jayfam
17-Apr-11 3:46am
View
problem solved. thanks
Jayfam
17-Apr-11 3:01am
View
thanks a lot, im finally understand about it
Jayfam
17-Apr-11 2:05am
View
thanks for helping, sorry for that.
Jayfam
17-Apr-11 1:36am
View
but stll cant run the progra,
Jayfam
17-Apr-11 1:31am
View
my coding no problem?
Jayfam
17-Apr-11 1:30am
View
Deleted
?? my coding not problem?
Jayfam
17-Apr-11 0:57am
View
for (counter = 0; counter >= 5; ++counter) like that?
Jayfam
16-Apr-11 17:18pm
View
may i know if my output want showing from the begginig like 235 256.23 458 265.12 5 instead of 5 265.12 458 256.23 235
May i know how to do that?
Jayfam
16-Apr-11 17:07pm
View
i use back my coding and just delete the clrscr(); and it finally run already. Thanks for the help
Jayfam
16-Apr-11 17:03pm
View
it showing me the error fatal error: cstdlib: No such file or directory
Jayfam
16-Apr-11 16:50pm
View
i correct the error already, the the program still cannot run
Jayfam
3-Apr-11 21:10pm
View
i done it, thanx a lot bro
Jayfam
3-Apr-11 19:41pm
View
ya, i made it already, but it show 4 5 6 7, but i want it show 3 4 5 6 7 if my numberm is 3 if self. May i know how?
Jayfam
3-Apr-11 19:21pm
View
Deleted
#include <stdio.h>
void main(void)
{
int numberM =0, numberN=0, i=0;
printf("Enter m: ");
scanf("%d", &numberM);
printf("Enter n: ");
scanf("%d", &numberN);
if (numberM < numberN){
for(i = (numberM +1); i
Jayfam
3-Apr-11 16:00pm
View
oic, i understand what u mean. thanks
Jayfam
3-Apr-11 15:50pm
View
but im learning C programming now
Jayfam
3-Apr-11 15:45pm
View
ok, thanx
Jayfam
3-Apr-11 15:36pm
View
ok, thx
Jayfam
3-Apr-11 15:33pm
View
i found a c++ coding which i needed, but i want it in c because i learn c and do no learn c++ before
Jayfam
3-Apr-11 15:13pm
View
ya, i had found the function of this header file in google. thx
Jayfam
3-Apr-11 14:19pm
View
stdlib.h file is for?
Jayfam
3-Apr-11 14:13pm
View
thanks a lot bro
Jayfam
3-Apr-11 14:02pm
View
throw out printf can?
Jayfam
3-Apr-11 10:34am
View
thx bro...not error already
Jayfam
3-Apr-11 10:23am
View
prog2.c:8:2: warning: parameter names (without types) in function declaration
prog2.c:9:1: error: expected identifier or '(' before '}' token
Jayfam
3-Apr-11 10:17am
View
prog2.c:9:1: error: expected identifier or '(' before '}' token
prog2.c:12:1: error: expected identifier or '(' before '{' token
Jayfam
17-Mar-11 7:21am
View
ya, the variable i will use it later. The coding now got the logical error, is it the formula and the variable got problem?
Jayfam
17-Mar-11 6:45am
View
may i know why //while (no_hour >=0) // no needed?
Jayfam
17-Mar-11 4:18am
View
I understand what u mean ady, set the 40 into constant. But why the output still unstoppable showing out?
#include <stdio.h>
void main (void)
{
int no_item;
int salary_perweek;
float no_week =0.0;
float hour_rate;
float paycode_1;
float paycode_2;
float paycode_21;
float paycode_22;
float paycode_3;
float paycode_4;
float salarypaycode_1;
float salarypaycode_21 = 0.0;
float salarypaycode_22 = 0.0;
const int no_hour = 40;
salary_perweek = 500;
hour_rate = 2.5;
printf("Enter Employee pay code: ");
scanf("%i", &paycode_1);
printf("Enter Number of Week: ");
scanf("%g", &no_week);
salarypaycode_1 = no_week * salary_perweek;
printf("Manager's Salary is $%g\n", salarypaycode_1);
printf("Enter Employee pay code: ");
scanf("%i", &paycode_2);
printf("Enter Number of Hour: ");
scanf("%g", &no_hour);
while (no_hour >=0)
{
if (no_hour<=40)
{
salarypaycode_21 = no_hour * hour_rate;
printf("Hourly Workers Salary is %g\n", salarypaycode_21);
}
else
if (no_hour>40)
{
salarypaycode_22 = no_hour * hour_rate;
printf("Hourly Workers Salary is %g\n", salarypaycode_22);
}
}
}
Jayfam
17-Mar-11 4:01am
View
can show me some example? im still not understand with the constants u mean above
Jayfam
17-Mar-11 0:53am
View
Thanx Ozer..error solve
Jayfam
17-Feb-11 8:44am
View
haha..kk...giv u 5 too^^
Jayfam
17-Feb-11 8:11am
View
haha, thx thx give u 5 ;P
im now introduction to programming..newbie..sorry ya :-D
Show More