Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 37 results for
qanda
- Page 1
Re: Template Function Question
Programming
Software Development
13 Years Ago
by Kanoisa
…[I]"error C2912: explicit specialization; 'std::string
qAndA
(const std::string)' is not a specialization of a function…::endl; return answer; } template<> std::string
qAndA
(const std::string Question) { std::cout<<Question…(int argc, char* argv[]) { string meh; meh =
qAndA
("What! is your quest?: "); cout<<"…
Re: Template Function Question
Programming
Software Development
13 Years Ago
by mike_2000_17
… T OriginalType; }; template< class T > T
qAndA
(const std::string Question, Type2Type<T>) { T …std::endl; return answer; } template<> std::string
qAndA
(const std::string Question, Type2Type<std::string>) {…main(int argc, char* argv[]) { string meh; meh =
qAndA
("What! is your quest?: ",Type2Type<string>…
Template Function Question
Programming
Software Development
13 Years Ago
by Kanoisa
…Code below. [code] template< class T > T
qAndA
(const std::string Question,const T retType) { T retVar; std… main(int argc, char* argv[]) { string meh; meh =
qAndA
("What! is your quest?: ",meh); cout<<… cin.ignore(1000,'\n'); int x = 0; x =
qAndA
("What is your favourite Number",x); cout<…
Animal Guessing Game Problem
Programming
Software Development
14 Years Ago
by som3aman
… using a struct to organize this information: struct
QandA
{ bool animal; // true if question is …string> using namespace std; void main () { struct
QandA
{ bool animal; // true if question is an animal …name int yes; int no; }; string lines[200];
QandA
info[300]; ifstream source; char c; int i …
Re: Template Function Question
Programming
Software Development
13 Years Ago
by mrnutty
… faster to do this : [code] string name =
qAndA
<string>(someQuestion); double age =
qAndA
<double>(otherQuestion); [/code] than to…
Re: Animal Guessing Game Problem
Programming
Software Development
14 Years Ago
by som3aman
…;fstream> #include <string> using namespace std; struct
QandA
{ bool animal; // true if question is an animal string question… question or animal name int yes; int no; }; void main () {
QandA
info[300]; //Array of structs to save questions and answers…
Re: Template Function Question
Programming
Software Development
13 Years Ago
by mrnutty
Why do you have 2 parameter in your first
qAndA
function? There is no use of the second parameter. Here …
Re: Template Function Question
Programming
Software Development
13 Years Ago
by Kanoisa
… correct way i was looking for was [code] std::string
qAndA
<std::string>(const std::string Question, std::string…
About hiding, showing, stoping some scripts
Programming
Web Development
11 Years Ago
by laklaker
…;td rowspan="3"> <div id="
QandA
"></div></td> <td…
Re: Quiz with timer control?
Programming
Software Development
14 Years Ago
by vb5prgrmr
…command button (command1). [code] Option Explicit Dim
QandA
(1 to 20) As String Dim HowManyAnswers As …Integer Dim CurrentQuestion As Integer Private Sub Form_Load()
QandA
(1) = "What Is Your Name?, Billy…Dim MyArray As String, ForLoopCounter As Integer MyArray = Split(
QandA
(CurrentQuestion), ",") Label1.Caption = MyArray(0)…
Re: what is wrong with the check?
Programming
Web Development
14 Years Ago
by essential
…>"; return { question : question, input : input, answer : ans } } }; var $
QandA
= new Question( 10 ); window.onload = function() { for ( var j = 0…; j < $
QandA
.counter; j++ ) { document.writeln( $
QandA
.start().question + "</p><hr…
Re: div under one another
Digital Media
UI / UX Design
13 Years Ago
by MDanz
…>"; ?> </div> <div id="
qanda
"> <?php echo " <div id='questions…:0px; text-align:right; } #adult{ width:700px; margin:0 auto; } #
qanda
{ width:700px; margin:0 auto; } #amount { width:700px; margin:0…
Re: Best Method For a Quiz??
Programming
Software Development
12 Years Ago
by codeorder
… = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\
QandA
.txt" '// your File. Private arlQandA As New…() End Sub '// check Answer. #Region "===----===----===----===-----
QandA
ZONE -----===----===----===----===" Private Sub getNextCoolQuestionAndAnswers(ByVal selQuestionIndex As Integer…
Re: Best Method For a Quiz??
Programming
Software Development
12 Years Ago
by Fattman
… ResourceFolder As String = Application.StartupPath & "My.Resources.Resource1.
QandA
" 'Create Sting var with connection to txt file Public… QandAFile As String = ResourceFolder & "
QandA
.txt" Process.Start(QandAFile)[/CODE] Appologies for being a…
Re: Question Papers
Programming
Software Development
19 Years Ago
by basementcoder
… your friend :p. [url]http://www.acetheinterview.com/cgi-bin/
qanda
.cgi?action=topics&number=5[/url] I searched google…
Re: New chip - wait or not?
Hardware and Software
Hardware
18 Years Ago
by OppOnn
… guys have any further thoughts on this? Excerpts from - [email]
QandA
@nytimes.com[/email] O
Re: What's atl71.dll?
Hardware and Software
Microsoft Windows
16 Years Ago
by hughv
…. See here: [url]http://www.virtu-software.com/ask-doug/
QandA
.asp?q=61[/url] I like what this guy says…
Re: How to generate tree view in asp
Programming
Web Development
15 Years Ago
by closetosane
… following links [url]http://www.microsoft.com/technet/scriptcenter/resources/
qanda
/files.mspx[/url] [url]http://www.activexperts.com/activmonitor/windowsmanagement…
Re: Retrieve the Machine Name from IP address
Programming
Software Development
14 Years Ago
by Teme64
You might get those remote computer names with WMI. I found this article "[URL="http://www.microsoft.com/technet/scriptcenter/resources/
qanda
/apr06/hey0425.mspx"]How Can I Determine the Name of the Local Computer Using WMI?[/URL]" which may be a good starting point.
Re: Syntax for running a .vbs with arguments
Programming
Software Development
14 Years Ago
by patstarks
….vbs routine: [url]http://www.microsoft.com/technet/scriptcenter/resources/
qanda
/feb05/hey0208.mspx[/url] Pat Starks
Re: Perl parsing a text file
Programming
Software Development
13 Years Ago
by d5e5
… adapted from code found at # http://devdaily.com/perl/edu/
qanda
/plqa00016/ print "\nGROUP COUNTS IN DESCENDING NUMERIC ORDER:\n…
Re: Perl parsing a text file
Programming
Software Development
13 Years Ago
by d5e5
… adapted from code found at # http://devdaily.com/perl/edu/
qanda
/plqa00016/ print "\nTHE FIVE GROUPS HAVING MOST -50 -ALY…
Re: Typing the "&" sympbol in textfield causeing fatel error
Programming
Web Development
13 Years Ago
by mschroeder
An ampersand will definitely cause problems in the value of a node in XML. So will < and > etc. modify the script to translate those characters to their character references & > etc etc. Read this: [url]http://www.xml.com/pub/a/2001/01/31/
qanda
.html[/url]
Re: Best Method For a Quiz??
Programming
Software Development
12 Years Ago
by Fattman
… last question. [CODE]Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\
QandA
.txt"[/CODE] This code enables the txt file to…
Re: Best Method For a Quiz??
Programming
Software Development
12 Years Ago
by codeorder
… & "\" Dim myCoolQuestionsAndAnswersFile As String = myCoolFolder & "
QandA
.txt" '// your File. Process.Start(myCoolFolder) '// load Folder. '// place…
Re: Best Method For a Quiz??
Programming
Software Development
12 Years Ago
by Fattman
sorted thanks, been looking at how to put it into the resources folder hoping that would sort it out. Used: [CODE]Public QandAFile As String = (My.Resources.Resource1.
QandA
)[/CODE] no error with code but does not read in the text document.
Re: Template Function Question
Programming
Software Development
13 Years Ago
by mrnutty
Template specialization like so : [code] //for general types template<typename T> T ask(const std::string& question){ cout << typeid(T).name() << endl; cout << question << endl; T answer; cin >> answer; return answer; } //specialize for string type template<> std::string ask(const std::string& …
Re: Template Function Question
Programming
Software Development
13 Years Ago
by Kanoisa
Ahh cool. Just one thing then, in the template version using T How does it know what type to return? i would like for float, double, int and char do i give it the type i want like before for that?
Re: Template Function Question
Programming
Software Development
13 Years Ago
by mrnutty
[QUOTE=Kanoisa;1318364]Ahh cool. Just one thing then, in the template version using T How does it know what type to return? i would like for float, double, int and char do i give it the type i want like before for that?[/QUOTE] Since we can't overload by return types, yes we have to specify the return type like that.
Re: Template Function Question
Programming
Software Development
13 Years Ago
by Kanoisa
So it knows what type i want to return. It wont just figure it out itself will it?
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