answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: If i have an std can i please myself?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you use sin in c plus plus?

#include<iostream> int main() { std::cout << "sin(1) = " << std::sin(1.0) << std::endl; std::cout << "cos(1) = " << std::cos(1.0) << std::endl; std::cout << "tan(1) = " << std::tan(1.0) << std::endl; std::cout << "asin(1) = " << std::asin(1.0) << std::endl; std::cout << "acos(1) = " << std::acos(1.0) << std::endl; std::cout << "atan(1) = " << std::atan(1.0) << std::endl; } Output: sin(1) = 0.841471 cos(1) = 0.540302 tan(1) = 1.55741 asin(1) = 1.5708 acos(1) = 0 atan(1) = 0.785398


How do you split a string in delimit c plus plus?

#include<iostream> #include<vector> #include<string> std::vector<std::string> parse (const std::string& s, const char delim) { std::vector<std::string> result {}; auto start = 0U; auto end = s.find (delim); while (end != s.npos) { result.push_back (s.substr(start, end - start)); start = ++end; end = s.find (delim, start); } result.push_back (s.substr (start, s.npos - start)); return result; } std::vector<std::string> parse (const std::string& s, const std::string& delim) { std::vector<std::string> result {}; auto start = 0U; auto end = s.find (delim); while (end != s.npos) { result.push_back (s.substr(start, end - start)); start = end + delim.length(); end = s.find (delim, start); } result.push_back (s.substr (start, s.npos - start)); return result; } int main() { std::string str1 = "This is a string that will be parsed by a single-space delimiter."; std::string str2 = "This==is==a==string==that==will==be==parsed==by==equal==operator."; std::string str3 = "This string has no delimiter."; std::cout << str1 << std::endl; std::vector<std::string> v1 = parse (str1, ' '); for (auto i : v1 ) std::cout << i << std::endl; std::cout << std::endl; std::cout << str2 << std::endl; std::vector<std::string> v2 = parse (str2, "=="); for (auto i : v2 ) std::cout << i << std::endl; std::cout << std::endl; std::cout << str3 << std::endl; std::vector<std::string> v3 = parse (str3, '\\'); for (auto i : v3 ) std::cout << i << std::endl; std::cout << std::endl; }


A c comma c plus plus program that can accept first name surname and display it?

int main() { std::string first, last; std::cout << "Enter your first name: "; std::cin >> first; std::cout << "Enter your last name: "; std::cin >> last; }


What is arrays of structure?

A simple array has of basic data type such as char, int, float... arrays of structure has the type of structure.struct student std[12];Here std is an arrays of structure.


How C plus plus program to implement employee directory which will let the organization to perform the functions. Insert the record of new employee?

#include<iostream> #include<vector> #include<string> struct employee { std::string forename; std::string surname; std::string department; }; struct directory { std::vector<employee> v; void add_employee (const std::string&, const std::string&, const std::string&); }; void directory::add_employee (const std::string& forename, const std::string& surname, const std::string& department) { v.push_back (employee{forename, surname, department}); } int main() { std::string forename, surname, department; std::cout << "Enter employee's forename: "; std::cin >> forename; std::cout << "Enter employee's surname: "; std::cin >> surname; std::cout << "Enter employee's department: "; std::cin >> department; add_employee (forename, surname, department); }

Related questions

Name of districts in India with STD codes?

India has hundreds of STD Codes (telephone area codes). Please be more specific.


Do i use Please contact me or Dan or please contact Dan or I?

You can say "Please contact Dan" or "Please contact me." Both versions are correct – it just depends on whether you want to specify who should be contacted or leave it open for the recipient to choose.


What is simple C plus plus code to sort 100 numbers in order of their magnitude?

#include<iostream> #include<vector> #include<string> #include<sstream> #include<algorithm> #include<functional> double input_number (const int i) { double value; while (true) { std::string input; std::cout << i << ". Please enter a valid number: "; std::getline (std::cin, input); std::stringstream ss {input}; if (ss >> value) break; std::cout << "Invalid number, please try again." << std::endl; } return value; } int main (void) { std::vector<double> nums {}; std::cout << "Input 100 numbers\n"; for (int i=0; i<100; ++i) nums.push_back (input_number (i)); std::sort (nums.begin(), nums.end(), std::greater<double>()); std::cout << "Numbers sorted by order of magnitude:\n"; for (auto num : nums) std::cout << num << std::endl; }


Is it normal to smell downstairs when finished the depo?

no that means you have an std please go to the doctor


Is Please submit the report to Johanna or myself correct grammar?

Yes, "Please submit the report to Johanna or myself" is correct grammar. The use of "myself" as a reflexive pronoun in this sentence is appropriate because it refers back to the subject, "I."


Postal codes and STD codes for Tamil Nadu India?

There are many postal codes and STD Codes (telephone area codes) in the state of Tamil Nadu. Please be more specific.


What are magnetites?

How magnets are made from magnetite? Please give simple answer for a 6th std student. Thanks. Josh


When to use Myself?

Use myself reflexively: I hurt myself. For sententious emphasis: For myself, I prefer scotch. Never use myself as the object of a verb or a preposition ( except reflexively, as above ). The correct word in all such cases is me: If you have any problems with this, please see the director or me.


How do i get myself not being bad?

Not being bad at what? Please be more specific in your question.


How much a Manson?

I need a maison and live by myself please help call


What is the syllabus for district educational officer exam for a Tamil literature?

please study tamil from 6 std to pg level


What do you understand from this statement I think therefore i am please shed some light on this please i will greatly appreciate it?

If I am aware of myself, then I must be here.