[Solved] What does no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream’} and ‘float*’) mean? [closed]

What does no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream’} and ‘float*’) mean? [closed] solved What does no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream‘} and ‘float*’) mean? [closed]

[Solved] Easy class questions on joining

Assuming the language required is Python, comparison_result = “” if num1 > num2: comparison_result = “>” elif num1 < num2: comparison_result = “<” else: comparison_result = “=” the_text = “The sum of ” + str(num1) + ” and ” + str(num2) + ” is ” + str(num1 + num2) + ” and ” + str(num1) … Read more

[Solved] Print string in maxlines 3 and width parametar, I’m not understand all, can someone help me

package com.TnationChallange; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) { for (String part : getParts(“limited screen space to display information”, 7, 3)) { System.out.println(part); } } private static List<String> getParts(String string, int partitionSize, int maxLine) { List<String> parts = new ArrayList<String>(); int len = string.length(); for (int i = … Read more

[Solved] TypeError: Car() takes no arguments

Your program is missing constructor and hence the error. Also do note that you are probably referring to __repr__ and not __rep__. You final code should look something like this – class Car: # In your code, this constructor was not defined and hence you were getting the error def __init__(self,name,year,model): self.name = name self.year_built … Read more

[Solved] [C++} Not sure if this is even possible

You’ll probably need a vector like Soren mentioned. If you’re trying to get some averages for all employees (which that’s what I assume you’re trying to do), then let’s say we’re going to try and get an average for gross pay. You’ll need a vector global, like such: #include <iostream> #include <fstream> #include <iomanip> #include … Read more

[Solved] do I need a virtual function

It appears that what you want is for your Derived class to support the following interface: someInfo si; someMoreInfo smi; Base* pB = new Derived; // Setting info pB->setInfo(si); // Set the `Base::c` member of `*pB` pB->setInfo(smi); // Set the `Derived::g` member of `*pB` // Getting info someInfo pB_si = pB->getInfo(); // Get `Base::c` from … Read more

[Solved] Using function members in functionals in c++ [closed]

First of all continue is an already occupied keyword, so, better rename your function. The continue statement shall occur only in an iteration-statement and causes control to pass to the loop-continuation portion of the smallest enclosing iteration-statement, that is, to the end of the loop. In our case, you trying to use a non-static member … Read more

[Solved] class that gets a value from database [closed]

public static class myMethods { public static string getName(){ string name = “”; ConnectionStringSettings myConnectionString = ConfigurationManager.ConnectionStrings[“LibrarySystem.Properties.Settings.LibraryConnectionString”]; using (SqlConnection myDatabaseConnection = new SqlConnection(myConnectionString.ConnectionString)) { myDatabaseConnection.Open(); using (SqlCommand mySqlCommand = new SqlCommand(“select Top 1 * from Setting Order By SettingID Desc”, myDatabaseConnection)) using (SqlDataReader sqlreader = mySqlCommand.ExecuteReader()) { if (sqlreader.Read()) { name = sqlreader[“Name”].ToString(); } } … Read more