Linked Questions

2 votes
1 answer
13k views

For sake of simplicity i chose to use a type 'string' instead of 'char'. But i am supposed to lowercase the string that i read in from the input file. I did not know at the time i would not be able to ...
user3317020's user avatar
-4 votes
3 answers
8k views

so I'm learning programming and I understand variables, if else statements, cin and cout. So for a starter project I'm just creating a console application that asks the user questions, such as age, ...
ShadowGlow's user avatar
0 votes
1 answer
2k views

I am building a program that takes input, then detects to see it a specific thing was entered. After the line was entered,it should convert it to lowercase. But, I cannot figure out how. I have tried ...
Anonymous's user avatar
  • 375
0 votes
3 answers
500 views

is there a single function in c++ that converts strings from lowercase to uppercase and vice versa? I need to compare two strings case insensitive and I can only convert one of the strings and the ...
user avatar
1 vote
2 answers
542 views

how can i make this program to accept both upper and lower case id's. The id when read from file is of upper case.The id's present are in the form of S2345. Help please. cout << "Enter ...
Raj's user avatar
  • 11
1 vote
0 answers
547 views

I want to convert a std::filesystem::path to all lowercase so I can find files of a given extension, "dsf". #include <filesystem> #include <iostream> int main() { const std::...
Thomas Matthews's user avatar
0 votes
1 answer
481 views

Is there a way to convert strings inside an array into lowercase? So say I have an array like: String mainArray[] = {"Dog", "caT", "ElepHANT", "Hungry", "LION"} // So mainArray[0] = "Dog" ...
Alex's user avatar
  • 1
-2 votes
1 answer
220 views

I'm learning C++ right now, but I can't seem to find out how to make an input be accepted whether or not there are any capitals anywhere. For example, if someone input "sAndwiCh" in a case in a switch ...
TheRyGuy's user avatar
0 votes
2 answers
97 views

I am building a console bot. There is a way to specify the gender of the user there. Now if the user gives the command !setgender then the gender of the user will be asked by the bot. My question is ...
Rid's user avatar
  • 397
-2 votes
1 answer
149 views

I want the code to search for a word mid sentence and see if its first letter is lower case. If it is, than it makes it upper case. For example: John hates using c++ daily, and it would change the C ...
user3694341's user avatar
3 votes
0 answers
94 views

im not really good in c++ so i wondering if someone can help me with this. std::vector<std::string> vocations; for(VocationsMap::iterator it = Vocations::...
dohdle's user avatar
  • 117
318 votes
10 answers
662k views

How would I do a for loop on every character in string in C++?
Jack Wilsdon's user avatar
  • 7,087
36 votes
5 answers
28k views

Given the code: #include <iostream> #include <cctype> #include <string> #include <algorithm> using namespace std; int main() { string s("ABCDEFGHIJKL"); transform(s....
liu's user avatar
  • 987
34 votes
3 answers
170k views

I get this problem in a c++ problem compiling in Ubuntu g++ version 4.4.3. I dont know the headers to include to solve this problem.. Thanks centro_medico.cpp: In constructor ‘Centro_medico::...
Chak's user avatar
  • 361
33 votes
3 answers
54k views

I need some explanation for the following c++ syntax: for(const auto& ioDev : deviceList) given that: std::vector<Device *> deviceList Specifically, I am confused about ':' and the usage ...
MIbrah's user avatar
  • 1,057

15 30 50 per page
1
2 3 4 5