F&A Diskussionen
What is the Output of this Code?
0 Stimmen
1 AntwortWhat is the ios in CPP.....?
4 Stimmen
2 AntwortenWhat is abstraction?
1 Stimme
4 AntwortenHow String in java is immutable?
0 Stimmen
3 AntwortenClasses, methods and objects.
1 Stimme
1 AntwortWho have DuckGame
0 Stimmen
6 Antwortenwhile inside while loop
0 Stimmen
2 Antwortencorrect me if I'm wrong
0 Stimmen
2 Antworten#include <iostream>
using namespace std;
class employee
int main()
{
private:
double salary;
public:
void getsalary(double sal)
{
salary=sal;
}
void display()
{
cout<<"the salary:"<<salary;
}
};
void main ()
{
employee programmer;
employee manager;
manager.getsalary (60000.0);
programmer.getsalary(40000.0);
manager.display();
programmer.display();
return 0;
}
1 Stimme
5 AntwortenUsing SoloLearn with large groups
0 Stimmen
1 AntwortSolve errors on this code
0 Stimmen
2 AntwortenPublic, static and void
0 Stimmen
2 Antwortencan someone help..
what does this code means so it could have the output like on the example..
class SpecialString:
def __init__(self, cont):
self.cont = cont
def __gt__(self, other):
for index in range(len(other.cont)+1):
result = other.cont[:index] + ">" + self.cont
result += ">" + other.cont[index:]
print(result)
spam = SpecialString("spam")
eggs = SpecialString("eggs")
spam > eggs
1 Stimme
6 AntwortenCan anyone help me?
0 Stimmen
5 Antwortenwhy is it not running?
import java.util.Scanner;
public class Myclass{
public static void main(String [] args){
Scanner in = new Scanner(System.in);
String a;
int b;
System.out.println("enter a word");
a = in.nextLine();
System.out.println("enter repetition")
b = in.nextInt();
for ( int = 0; x < b; x = x++)
System.out.println(a);
}
}
0 Stimmen
8 AntwortenCSS The text-indent property I do not understand why you would use this when the </br> tag takes the text back to the left hand side of the page, and as soon as I start a new class the first line of text in a paragraph even with a class it imprints onto every other paragraph like it or not. Why is this please?
0 Stimmen
2 AntwortenPllllz help I am afraid
1 Stimme
4 AntwortenHeute heiß
Activities on sololearn
3 Votes
What is problem in this code
1 Votes
playground input
1 Votes
Html issue
2 Votes
How I can use div
1 Votes
Can you help me ?
1 Votes
TIPS From Veterans
1 Votes
Playground input
1 Votes
App development 🔥☝️
1 Votes