Answer:
Answers explained with appropriate comments
Explanation:
1. seekp() //the seekp sets the position where the next character is to be //inserted into the output stream.
2. fstream //fstream is used for input and output for files
//just like iostream for input and output data
3. tellp(); //tellp returns the "put" or write position of the file.
4. ios::ate //ate meaning at the end, sets the file output at the file end
5. binary files //binary files only store 0s and 1s
6. seekg() //seekg is used to move write position of the file
7. put //this is used to "put" or set records or arrays to a single file
8. std::ws
, skips //the std::ws is used to discard leading whitespace from an //input stream
9. peek //this looks at the next character in the input sequence
10. get, peak //get and peek do not skip leading whitespace characters
I believe that the answer to the question provided above is that with the age of improving technology, the aspects of future games will be based more unto electronic games or e-games.
Hope my answer would be a great help for you. If you have more questions feel free to ask here at Brainly.
The PHP code is given below:
<h3>PHP code</h3>
if(isset($_REQUEST['login_btn'])){
$email = filter_var(strtolower($_REQUEST['email']),FILTER_SANITIZE_EMAIL); //strtolower changes email to all lower case
$password = strip_tags($_REQUEST['password']);
The remaining code is in the file attached.
Read more about PHP here:
brainly.com/question/27750672
#SPJ1
Answer:
#include <iostream>
#include <cstring>
using namespace std;
void replacePeriod(char* phrase) {
int i = 0;
while(*(phrase + i) != '\0')
{
if(*(phrase + i) == '.')
*(phrase + i) = '!';
i++;
}
}
int main() {
const int STRING_SIZE = 50;
char sentence[STRING_SIZE];
strcpy(sentence, "Hello. I'm Miley. Nice to meet you.");
replacePeriod(sentence);
cout << "Updated sentence: " << endl;
cout << sentence << endl;
return 0;
}
Explanation:
- Create a function called replacePeriod that takes a pointer of type char as a parameter.
- Loop through the end of phrase, check if phrase has a period and then replace it with a sign of exclamation.
- Inside the main function, define the sentence and pass it as an argument to the replacePeriod function.
- Finally display the updated sentence.
<span>If you’re torn between more than one option while making a decision, which of the following would most likely be the best strategy to help you decide you should get rid of the bad ones and you will be left with good ones
</span>