answersLogoWhite

0

venereal

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What Ulcer associated with an STD?

STD's and ulcers are not related. That is not to say a person with an ulcer could have one. But so could a person without one.....


How do you read a word with blank space in c plus plus?

A word with blank spaces is not a word, it is a collection of words, possibly a sentence, a paragraph or an entire book. These are strings (character arrays) and you can read these just as easily as you can an individual value, using the std::getline() function. The following example demonstrates this. #include<iostream> #include<sstream> int main() { std::string s; std::cout<<"Type some words: "; std::getline( std::cin, s ); std::cout<<"You typed:"<<s.c_str()<<std::endl; }


What is the standard abbreviation for standard?

stand.AnswerIt may be "non standard" but I often see "std" used for this word.


What are the steps in c plus plus program to print word computer?

std::cout<<"computer"<<std::endl;


C plus plus program for searching a word from text file?

#include<iostream> #include<fstream> #include<vector> #include<string> std::string get_input_file() { while (true) { std::cout << "Enter the input file name: "; std::string filename; std::getline (std::cin, filename); std::ifstream file (filename); if (file.is_open()) { file.close(); return filename; } std::cerr << "The file could not be opened.\n" << std::endl; } } std::string get_search_word() { while (true) { std::cout << "Enter the word to search for: "; std::string search; std::cin >> search; if (search.size()) return search; std::cerr << "The search word cannot be an empty string.\n" << std::endl; } } std::vector<size_t> get_offsets(const std::string& filename, const std::string& search) { std::vector<size_t> offsets; std::ifstream file (filename); if (!file.is_open()) throw std::exception("The file could not be opened."); size_t offset = 0; while (!file.eof()) { size_t pos = 0; char c; while (!file.read(&c, 1).eof() && c!=search[pos]) ++offset; while (pos!=search.size()-1 && !file.read(&c, 1).eof() && c==search[++pos]); if (pos==search.size()-1 && c==search[pos]) offsets.push_back (offset); offset += pos; pos = 0; } file.close(); return offsets; } int main() { std::cout << "Word Search\n" << std::endl; std::string filename = get_input_file(); std::string search = get_search_word(); std::vector<size_t> offsets = get_offsets (filename, search); std::cout << "The word was found " << offsets.size() << " time" << (offsets.size()==1?"":"s") << ".\n" << std::endl; if (offsets.size()) { std::cout << "Offsets:\n"; for (auto off : offsets) std::cout << off << std::endl; } }


What is mean by redirection in c plus plus?

Redirection applies to the standard input/output devices. Although it is up to the user to decide which device provides input and which provides output for your program, the programmer can choose to redirect those devices as they see fit. However, it is important that the programmer restore the original devices as soon as they have finished with them. The following example demonstrates one way of redirecting the standard input/output devices programmatically: #include <iostream> #include <fstream> #include <string> void f() { std::string line; while (std::getline(std::cin, line)) // input from stdin { std::cout << line << "\n"; //output to stdout } } int main() { std::ifstream in("in.txt"); std::streambuf *cinbuf = std::cin.rdbuf(); // save old buf std::cin.rdbuf(in.rdbuf()); // redirect std::cin to in.txt! std::ofstream out("out.txt"); std::streambuf *coutbuf = std::cout.rdbuf(); // save old buf std::cout.rdbuf(out.rdbuf()); // redirect std::cout to out.txt! std::string word; std::cin >> word; // input from the file in.txt std::cout << word << " "; // output to the file out.txt f(); // call function std::cin.rdbuf(cinbuf); // reset to standard input again std::cout.rdbuf(coutbuf); // reset to standard output again std::cin >> word; // input from the standard input std::cout << word; // output to the standard input }


If the word vulpine is associated with fox what is feline associated with?

As the term vulpine is associated with the characteristics of a fox, the word feline is associated with the cat.


How do you create user define function in c plus plus that arrange the letter of a word in alphabetical order?

Example#include // for std::cout#include // for std::locale (required by C++ tolower)#include // for std::string#include // for std::sortbool SortPredicate( const char& c1, const char& c2){std::locale loc;return( tolower(c1,loc) < tolower(c2,loc) );}void Sort( std::string& s ){std::sort( s.begin(), s.end(), SortPredicate);}int main(){std::string str( "Hello" );std::cout


Write a program in c plus plus to reverse the sentence?

The simplest solution is to use a template function that will reverse an array of any type. This is achieved by iteratively working from both ends of the array, swapping characters while the left index is less than the right. The following example demonstrates the function using both a character array and a std::string, but the function will also work with an array of any type. #include&lt;iostream&gt; #include&lt;string&gt; template&lt;class T&gt; void rev_array(T A[], size_t size ) { size_t left=0, right=size-1; while( left&lt;right ) { T tmp=A[left]; A[left]=A[right]; A[right]=tmp; ++left; --right; } } int main() { char arr[] = "Hello world!"; std::cout&lt;&lt;arr&lt;&lt;std::endl; rev_array(arr, strlen(arr)); std::cout&lt;&lt;arr&lt;&lt;std::endl; std::cout&lt;&lt;std::endl; std::string str = "The cat sat on the mat."; std::cout&lt;&lt;str.c_str()&lt;&lt;std::endl; rev_array(&amp;str[0], str.size() ); std::cout&lt;&lt;str.c_str()&lt;&lt;std::endl; std::cout&lt;&lt;std::endl; return(0); } Example output: Hello world! !dlrow olleH The cat sat on the mat. .tam eht no tas tac ehT


What is The meaning associated with a word is called its?

The meaning associated with a word is called its definition.


What is a sentence using the word associated?

An example sentence using the word 'associated' is: As a child she always associated pumpkins with Halloween.


Another word for associated?

Another word for associated can be: combine, relate, group and many more!