- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 5
- Posts with Downvotes
- 2
- Downvoting Members
- 4
Re:
[code] #include<stdio.h> #include<conio.h> #include<string> #include <iostream> #include<stdlib.h> #include "convert.h" using namespace std; int check(string); string send(string); string hr_str; int main() { int result=2,n; char tt[7]; char h[2],m[2],s[2]; cout<<"\nEnter the Time "; string colon=":"; while(result !=1) { printf("\nHR -> "); scanf("%s",h); result= check(h); } cout<<"\nMain Fun"<<hr_str; string t_time; strcpy (t_time,hr_str);//-----problem is … |
|
Re:
Hello, I've had some problems converting a string into a char. I've tried many, many things, but it didn't seem to work. I'll post the code below: [code] char filename[1024]; char* url; string sUrl; HINTERNET hINet, hFile; hINet = InternetOpen("InetURL/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 ); if ( !hINet ) { … |