Not outputting the value i assigned to variable Programming Software Development by tom.scott.73113 …;& childseat != 'N' ) { cout <<"Must be a captial Y/N"; Sleep(1500); system("CLS"); cout…;& gps != 'N' ) { cout << "Must be a captial Y/N"; Sleep(1500); system("CLS"); cout… Multi-leveled OOP in JavaScript. Programming Web Development by Aeonix …>"; document.getElementById("demo1").innerHTML = "His captial letters are <b>" + myFather.name.capitalize() + "…>"; document.getElementById("demo2").innerHTML = "His captial letters are <b>" + myFather.name().capitalize() + "… Re: Multi-leveled OOP in JavaScript. Programming Web Development by ryantroop …>"; document.getElementById("demo2").innerHTML = "His captial letters are <b>" + myFather.capitalize() + "<… printing array Programming Software Development by mrjoli021 … second sentence not capital + word + first sentence capital third sentence captial + word + first sentence capital [code] for (i = 0; i <… Problem with Perl and MySql - Cyrillic Language Programming Databases by ukndoit … changed any accented character in the latin set to some Captial A with an accent. Was very odd..., it did not… using faction and dictonoaries Programming Software Development by Riya_2 … of occurrences of that word in the input file, both captial and lower case, file should have following content: any 1… a code that force the user to insert captial letters and numbers as pass Programming Software Development by Ahmed91za hello i'm trying to figure out how to write a program in c++ that check when i insert a password and force me to add at least 2 capital letters and 2 numbers in the password (you've seen this before right? when signing up for new account and checks for password stringth) otherwise won't accept it and gives the output "password not accepted&… Re: a code that force the user to insert captial letters and numbers as pass Programming Software Development by NathanOliver No one is going to write the code for you. If write some code youself and you have an issue with it then post the code you have and what the issue is. also include any sample data and expected output. See http://sscce.org for more on writing a good code question. Re: a code that force the user to insert captial letters and numbers as pass Programming Software Development by Ahmed91za i didn't mean to write a complete program, i already know the basics, but i'm stuck in the part that makes my letters in the program case-sensitive, which i just wanted to know what code i should use to make it so that's all what i'm asking a simple line of code and from it i can move on Re: a code that force the user to insert captial letters and numbers as pass Programming Software Development by NathanOliver Well if you store the password as a [`std::string`](http://en.cppreference.com/w/cpp/string/basic_string) then you can iterate over each character and check if it is upper or lower case with [`std::isupper`](http://en.cppreference.com/w/cpp/string/byte/isupper) and [`std::islower`](http://en.cppreference.com/w/cpp/string/byte/islower). To count … Re: a code that force the user to insert captial letters and numbers as pass Programming Software Development by richieking You can also try this. This is according to your post > hello i'm trying to figure out how to write a program in c++ that check when i insert a password and force me to add at least 2 capital letters and 2 numbers in the password (you've seen this before right? when signing up for new account and checks for password stringth) Below is a … Re: a code that force the user to insert captial letters and numbers as pass Programming Software Development by ravenous Use std algorithms where possible: #include <string> #include <algorithm> // Store the password in a string std::string password; /* Do things to get password from user */ // Count the upper and lower case letters size_t upper_case_count = std::count_if( password.cbegin(),… Re: a code that force the user to insert captial letters and numbers as pass Programming Software Development by NathanOliver @ravenous just using `size_t upper_case_count = std::count_if( password.cbegin(), password.cend(), std::isupper );` [will not compile](http://coliru.stacked-crooked.com/a/0ae835d8a0a155ef). [If you use a lambda](http://coliru.stacked-crooked.com/a/93b92e75f1f15837) then it will. Re: a code that force the user to insert captial letters and numbers as pass Programming Software Development by ravenous @NathanOliver: You're correct, it doesn't compile. In this case the compilation failure is because `std::isupper` takes a locale as well as the character to test. Using the C function `isupper` does compile though (and does the right thing): #include <iostream> #include <string> #include <algorithm> #include <… Re: tic tac toe program Programming Software Development by rena0514 …: * * * * * * * * * Are you X or O? Please enter a captial X or O: X Enter the row and column to…X * * * * * * * Are you X or O? Please enter a captial X or O: O Enter the row and column to…* * * * * * Are you X or O? Please enter a captial X or O: X Enter the row and column to… Re: window events and javascript objects Programming Web Development by theLord … by 'window'.[/COLOR] [COLOR=#000000]Secondly note the 'F' is captial in 'new Function'. The keyword 'Function' with 'f' capital is… Re: Overloaded Function Help Programming Software Development by Duoas Yes, I know that. But that doesn't overload the function, it just adds another parameter. [code=C++] double total( double captial, double adjust, double rate ) { return capital +adjust +(capital *rate); } [/code] Re: Overloaded Function Help Programming Software Development by JRM …, it just adds another parameter. [code=C++] double total( double captial, double adjust, double rate ) { return capital +adjust +(capital *rate); } [/code… Re: string? Programming Software Development by technogeek_42 i know that but don't use captial letter bcoz it like a shouting one... Re: Radix Sort Programming Software Development by whoknows101 … tend to be all lower case.[/QUOTE] I fix the captial but I still get three errors in my radixSort function… Re: refresh Programming Web Development by Thirusha …) xmlhttp.send(null) xmlhttp.onreadystatechange=state_Change }[/code] U were using captial letters for open and send Re: From text file Programming Software Development by aliaks Thats the part im stuck with, does the code depend on the file structure or does the file have to be written in a certain format. Say I wanted the question like this in the file Question Answer Question Answer E.g What is the captial of london? 1 Re: tic tac toe program Programming Software Development by rena0514 …;<"Are you X or O? Please enter a captial X or O: "; cin>>choice; cout<… Re: whats wrong with this code? Programming Software Development by mosaad there is more than one compile error dont use " " when initializing an integer array so it should be int numArrays[] = {2 ,67 ,23 ,5 ,7 ,34 ,14 ,4 ,8 , 62}; also while printing u used a captial N it should be numArray not Numarray Re: Communism good or bad? Community Center Geeks' Lounge by Agilemind … your local equivalent. The end result of reduced rates of captial gains tax is that those who are rich already (have… Re: Not outputting the value i assigned to variable Programming Software Development by tom.scott.73113 I know i can do it with out having it in a function but wanted to have it like it is. any suggestions would be great Re: Not outputting the value i assigned to variable Programming Software Development by ddanbe Functions with a plethora of arguments are IMO a sign of bad design. Your VoucherPrint seems a bit overloaded. As an example, why not put the printing of costumer details in a separate function? Re: Not outputting the value i assigned to variable Programming Software Development by Ancient Dragon When there are more than 3 or 4 parameters it's better to create a structure or class to hold them all so that the function itself has only one parameter. It's a lot easier to read and understand that way. > why in the voucher print function its not displaying cost near hire cost You need to put some print statements inside that function to … Re: Not outputting the value i assigned to variable Programming Software Development by tom.scott.73113 Thanks for that ive fixed those issues i would use a struct or class but have been told im not aloud too... I can get it working fine if i take the start menu out of a function and just print so i am assuming its not holding the value for the cost per day. Ive tried using pass by reference but still doesnt work so i will leave it out of functions … Re: Multi-leveled OOP in JavaScript. Programming Web Development by Aeonix Ah, I see, instead of them going within each other's scopes, you just append the function to an object in order to execute it and it's done regardless it's position in chain. I got your code, and it's working. It's gonna be a hard egg to boil though. I see how it works and can explain it. But I'm not used a lot to it. Thank you for helping me.