آموزش رایگان ++C ، Rust ,golang: post #125 — TG.ME

سوال روز مخصوص دانشجویان عزیز❤️

#include <iostream>
#include <string>
#include <algorithm>

int main() {
std::string userInput;


std::cout << "Enter a string: ";
std::getline(std::cin, userInput);


std::transform(userInput.begin(), userInput.end(), userInput.begin(), ::toupper);


std::cout << "Uppercase string: " << userInput << std::endl;

return 0;
}
❤6👍2🥰1
January 4, 2025 2.6K 1 14