Month September 2022

[Solved] Syntax for virtual functions

While making a function virtual in c++ where do I have to write virtual keyword? In the function declaration, before the function name, and after any attribute specifiers, along with the other specifiers (including the type specifier for the function’s…

[Solved] Password input program [closed]

You have a logic error in your compare() method. When you use one = you are doing an assignment, not a comparison: if (passCompare = true) // assigns true to passCompare and always evaluates true return true; else return false;…

[Solved] Nested knockout template binding

I think you can do this like that: function Question(id, name) { this.id = id; this.name = name; this.answers = ko.observableArray(); } function Answer(id, name) { this.id = id; this.name = name; } function ViewModel() { this.questions = ko.observableArray(); var…

[Solved] List of stored procedures inside a database

The following query will list all user defined stored procs (including their parameters and parameter types) in your default database: SELECT sp.name, p.name AS Parameter, t.name AS [Type] FROM sys.procedures sp LEFT JOIN sys.parameters p ON sp.object_id = p.object_id LEFT…

[Solved] How to make different video answers in list of questions?

Set every video to display:none, then use jQuery to display the needed item once some user action is taken. In my example I used .click() Basic example: $(“.options>li”).click(function() { $(“.view”).css(‘display’, ‘none’) }); $(“li.aaa”).click(function() { $(“.view.aaa”).css(‘display’, ‘block’) }); $(“li.bbb”).click(function() { $(“.view.bbb”).css(‘display’,…