15,997,767 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: To make an interacting user game on *Tower of hanoi* . Richard MacCutchan15-Jan-18 1:06 Richard MacCutchan 15-Jan-18 1:06
 Re: To make an interacting user game on *Tower of hanoi* . Tarun Jha15-Jan-18 1:21 Tarun Jha 15-Jan-18 1:21
 Re: To make an interacting user game on *Tower of hanoi* . David Crow15-Jan-18 2:42 David Crow 15-Jan-18 2:42
 Re: To make an interacting user game on *Tower of hanoi* . Richard MacCutchan15-Jan-18 5:00 Richard MacCutchan 15-Jan-18 5:00
 Sort digits of number Anonygeeker14-Jan-18 22:41 Anonygeeker 14-Jan-18 22:41
 Re: Sort digits of number CPallini14-Jan-18 23:00 CPallini 14-Jan-18 23:00
 Re: Sort digits of number Richard MacCutchan14-Jan-18 23:06 Richard MacCutchan 14-Jan-18 23:06
 conversion error Anonygeeker14-Jan-18 20:28 Anonygeeker 14-Jan-18 20:28
 I am writing a C program to convert input value to hours minutes. eg : input : 126, output : 2 : 6, input : 45 , output : 0 : 45. For values like 3663, its printing 61 : 3 1 : 1 instead of 61 : 3. My logic is : int t1,t2,r=0,n,t; printf("Enter time\n"); scanf("%d",&t1); while(t1>0){ printf("%d\n",t1); if(t1<60){ break; } t=t1%60; r=r+t; t1=t1/60; printf("%d : %d\n",t1,t); } What is wrong here?
 Re: conversion error Jochen Arndt14-Jan-18 21:19 Jochen Arndt 14-Jan-18 21:19
 Re: conversion error Richard MacCutchan14-Jan-18 21:36 Richard MacCutchan 14-Jan-18 21:36
 I couldn't think a good title for this.Simple question Emrah Duatepe14-Jan-18 7:37 Emrah Duatepe 14-Jan-18 7:37
 Re: I couldn't think a good title for this.Simple question Jochen Arndt14-Jan-18 21:37 Jochen Arndt 14-Jan-18 21:37
 Re: I couldn't think a good title for this.Simple question Emrah Duatepe14-Jan-18 21:44 Emrah Duatepe 14-Jan-18 21:44
 Re: I couldn't think a good title for this.Simple question Jochen Arndt14-Jan-18 22:18 Jochen Arndt 14-Jan-18 22:18
 Re: I couldn't think a good title for this.Simple question Emrah Duatepe14-Jan-18 23:37 Emrah Duatepe 14-Jan-18 23:37
 Re: I couldn't think a good title for this.Simple question Jochen Arndt15-Jan-18 0:20 Jochen Arndt 15-Jan-18 0:20
 Re: I couldn't think a good title for this.Simple question Emrah Duatepe15-Jan-18 0:30 Emrah Duatepe 15-Jan-18 0:30
 Re: I couldn't think a good title for this.Simple question Jochen Arndt15-Jan-18 0:48 Jochen Arndt 15-Jan-18 0:48
 Re: I couldn't think a good title for this.Simple question Emrah Duatepe15-Jan-18 0:39 Emrah Duatepe 15-Jan-18 0:39
 Re: I couldn't think a good title for this.Simple question Jochen Arndt15-Jan-18 0:54 Jochen Arndt 15-Jan-18 0:54
 Re: I couldn't think a good title for this.Simple question Emrah Duatepe15-Jan-18 1:10 Emrah Duatepe 15-Jan-18 1:10
 Re: I couldn't think a good title for this.Simple question Richard MacCutchan14-Jan-18 21:39 Richard MacCutchan 14-Jan-18 21:39
 Re: I couldn't think a good title for this.Simple question Emrah Duatepe14-Jan-18 21:45 Emrah Duatepe 14-Jan-18 21:45
 finding longest word Anonygeeker10-Jan-18 22:05 Anonygeeker 10-Jan-18 22:05
 Re: finding longest word Richard MacCutchan10-Jan-18 22:25 Richard MacCutchan 10-Jan-18 22:25
 Last Visit: 31-Dec-99 18:00     Last Update: 14-Sep-24 16:42 Refresh ᐊ Prev1...320321322323324325326327328329 Next ᐅ