Member Avatar

Does anybody know how to make a program that calculates your work hours? I tried this code, but it's going all wrong. #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<ctype.h> #include<string.h> #include<time.h> char* timein[5], timeout[5], p; int totaltime, ticktock, hour, minute, rate; FILE* f; int main(){ clrscr(); CreateTimeFile(); GetTimes(); DisplayFinalInfo(); getch(); } CreateTimeFile(){ f = fopen("time.txt","w"); fclose(f); } GetTimes(){ f = fopen("time.txt","a"); printf("\nEnter time in 24-hour format. \nWARNING: An error at any point in the input will result in needing to repeat the process.\nEnter time-in for Monday: "); scanf("%c",&timein); ValidateTimeIn(); printf("\nEnter time-out for Monday: "); scanf("%c",&timeout); ValidateTimeOut(); AppendTimes(); printf("\nEnter time-in for Tuesday: "); scanf("%c",&timein); …

Member Avatar
+0 forum 9
Member Avatar

I have more than 40 or so fields on a php page, the fields dont conatain lots of data but they are allot for users to complete. Is there a way (I did this in VB.Net) to save once the user has edited a field or in VB case "Leave" call the save command to just update the MySql db so when the update the form it saves every time you leave move to the next textbox or dropdown Save on the fly type thing OR save every two minutes ... Currently I have to let my users click save …

Member Avatar
+0 forum 4
Member Avatar
Reusable Code Snippet Time Ago function in PHP

//$time in the second php code hold the time stored in the database in the same format as above(ie TIMESTAMP Format) //Save the first php code as timeago.php //include first php code u saved in the second php code as i have done.. //Use the Second Php code Wherever You Want to show time ago.

Member Avatar
+0 forum 3
Member Avatar

Hello~ I'm having a little problem on how to make a timer which include minutes and seconds. The design of the form goes like this: [url]http://i.imgur.com/lh1pk.png[/url] Another condition here is when the timer goes down, the interval gets faster. Please help me~

Member Avatar
+0 forum 4
Member Avatar

[ATTACH=right]12439[/ATTACH] Leslie Stahl had a piece Sunday night on 60 minutes on the supposed impact of piracy on the movie industry. (You can watch it [URL="http://www.cbsnews.com/stories/2009/10/30/60minutes/main5464994_page2.shtml?tag=contentMain;contentBody"]here[/URL].) Her piece was so slanted toward the Motion Picture Association of America, it was almost laughable (if it weren't so maddening). At one point, Stahl explained P2P networking using Bit Torrent in a way that made it sound like it was used exclusively for movie pirates and that it was the brand new gee-wizz technology--neither of which is true. In fact, many mainstream media companies are using P2P technology to deliver their content, and …

Member Avatar
+1 forum 3

The End.