- Joined
- Oct 24, 2020
- Posts
- 818
- Solutions
- 3
- Reaction
- 299
- Points
- 392
Mga ts patulong po dito sa code ko.
May mga errors pa kasi eh. Ito po code ko.
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
void srand (double seed);
int main()
{
string message ("\n Learn from your mistakes!"),length,len;
cout << message << endl;
getline (cin, length);
len = message.length();
cout << "Length of the string: "<< len << endl;
double a,b = rand();
srand =(12.5)
a= srand (12.5);
b= rand (a);
cout << "\n Random number: " << b << endl;
return 0;
}
Eto po original code na may mga mistakes.
May mga errors pa kasi eh. Ito po code ko.
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
void srand (double seed);
int main()
{
string message ("\n Learn from your mistakes!"),length,len;
cout << message << endl;
getline (cin, length);
len = message.length();
cout << "Length of the string: "<< len << endl;
double a,b = rand();
srand =(12.5)
a= srand (12.5);
b= rand (a);
cout << "\n Random number: " << b << endl;
return 0;
}
Eto po original code na may mga mistakes.
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.