Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c x 45
c++ x 4
Member Avatar for DeathEvil

I have an array of floats: float net_pay[5] . Each element is a decimal number ie. 999.99, 35.42, 318.34 etc . What I would like to do is to scan the decimal portion, in first case it would be 99 to a variable cents. I know how to do it …

Member Avatar for 42Wired
0
185
Member Avatar for DeathEvil
Member Avatar for DeathEvil

part of the code [CODE] string phone_book[11] = {"Becky Warren, 678-1223", "Joe Looney, 586-0097", "Geri Palmer, 223-8787", "Lynn Presnell, 887-1212", "Holly Gaddis, 223-8878", "Sam Wiggins, 486-0998", "Bob Kain, 586-8712", "Tim Haynes, 586-7676", "Warren Gaddis, 223-9037", "Jean James, 678-4939", "Ron Palmer, 486-2783"}; int x, index; char lookup[50], *strPtr = NULL; /********************************** …

Member Avatar for DeathEvil
0
146
Member Avatar for DeathEvil

Ok, today is the final and I'm still confused with the struct. Last assignment was supposed to be transformaed from regular arrays to struct and even though I did it and it works, it's more like each member inside of a record is a array rather than array of records. …

Member Avatar for DeathEvil
0
110
Member Avatar for DeathEvil

I have no problems connecting strings but if I follow the same procedure for chars then the program blows. [CODE]void Input_Code(char *d1_p, char *d2_p, char *d3_p, char *d4_p, char *d5_p, char *d6_p, char *d7_p, char *d8_p, char *d9_p, char *d10_p, char *full_code_p) { char buffer[12]; printf("Please enter 10 character account …

Member Avatar for Aia
0
92
Member Avatar for DeathEvil

This is the final mini step I need to do before my program is complete. a line has 85 chars from begining to end. I want to start the line with an *and end a line with a *. The problem is, that I don't know how long the ref, …

Member Avatar for DeathEvil
0
113
Member Avatar for DeathEvil

Let's assume that the 100th user inputs his name as: Jackson Michael. I would like my prog to print to the file the reference, which would be combining the first letter of the lastname with all the consonants remaining after removing all vowels (a,e,i,o,u). in case of Jackson it would …

Member Avatar for DeathEvil
0
129
Member Avatar for DeathEvil

I have "converted" my prog to psedocode (I know, I should di it before writing source code" and everything is looking smoothly and easy to understand. The only problem I have is translating 2 lines involving array: [CODE] if (strcmp(full_name[index[inner]],full_name[index[inner+1]])>0)[/CODE] and [CODE]temp = index[inner],index[inner]= index[inner+1],index[inner+1]=temp;[/CODE] can anyone help me out? …

Member Avatar for DeathEvil
0
98
Member Avatar for DeathEvil

The prototype [code]void Print_Sorted_Employee_Detail_To_File(FILE *report, int i, int i2, int index, char full_name, float pay_rate, float hours, float ovt_hours, float gross, float federal_tax, float state_tax, float ssi_tax, float deferred, float net_pay);[/code] The call: [code] Print_Sorted_Employee_Detail_To_File(report, i, i2, index[i], full_name[i], pay_rate[i], hours[i], ovt_hours[i], gross[i], federal_tax[i], state_tax[i], ssi_tax[i], deferred[i], net_pay[i]);[/code] This is …

Member Avatar for DeathEvil
0
119
Member Avatar for DeathEvil

I have problems validated user's input inside the function, I know validating strings can be tricky( I have included > MAXFL just to show you want I would like it to do), but the code below even fails to validate the hours, pay_rate, and deferred which are floats. What is …

Member Avatar for iamthwee
0
94
Member Avatar for DeathEvil

i have line: [CODE] #define REPORT_HEADINGS_1 "\n Employee Pay Reg Hrs Gross Fed SSI Net\n"[/CODE] but when I document my source code (print it to pdf for ex) it is too long and it wraps it up when I try to insert a line break after REPORT_HEADINGS_1 [CODE] #define REPORT_HEADINGS_1 …

Member Avatar for iamthwee
0
85
Member Avatar for DeathEvil

Can someone please explain to me and show a sample of using external function? Let say I have my main file: main.c and other file only with function: print.c I know I should prototype print function in my main.c, define it in print.c and call it from main.c. (at least …

Member Avatar for iamthwee
0
254