Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 34 results for
captial
- Page 1
Not outputting the value i assigned to variable
Programming
Software Development
10 Years Ago
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
8 Years Ago
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
8 Years Ago
by ryantroop
…>"; document.getElementById("demo2").innerHTML = "His
captial
letters are <b>" + myFather.capitalize() + "<…
printing array
Programming
Software Development
16 Years Ago
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
14 Years Ago
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
8 Years Ago
by Riya_2
… of occurrences of that word in the input file, both
captial
and lower case, file should have following content: any 1…
Re: tic tac toe program
Programming
Software Development
14 Years Ago
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
17 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
by technogeek_42
i know that but don't use
captial
letter bcoz it like a shouting one...
Re: Radix Sort
Programming
Software Development
15 Years Ago
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
15 Years Ago
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
14 Years Ago
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
14 Years Ago
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
11 Years Ago
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
11 Years Ago
by Agilemind
… your local equivalent. The end result of reduced rates of
captial
gains tax is that those who are rich already (have…
a code that force the user to insert captial letters and numbers as pass
Programming
Software Development
8 Years Ago
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
8 Years Ago
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
8 Years Ago
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
8 Years Ago
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
8 Years Ago
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
8 Years Ago
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
8 Years Ago
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
8 Years Ago
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: Not outputting the value i assigned to variable
Programming
Software Development
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
10 Years Ago
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
8 Years Ago
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.
1
2
Next
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC