Talula
I develop all my programs actually in VSC... is it “valid” IDE? And eclipse is not and IDE it’s an editor.
Mazen
Did you notice that, development of Espressif can be done with Eclipse?
Ludovic 'Archivist'
1. Eclipse is garbage
2. VS code is not an ide
VSCode without plugins is as much of an IDE as Emacs without plugins is (or actually Visual Studio for the matter as VisualStudio with no language support is just a very heavy text editor too)
Ksj⁷
Hello just wanna ask if there's also a 1st year college here?
'''''''
Ksj⁷
College student
Anonymous
Anonymous
The answer is: no way it's related to C++
Ksj⁷
I just want to ask something to them
Nameful
'''''''
Ksj⁷
Alright
Anonymous
#notes
Anonymous
/notes
Anonymous
/how to program
Anonymous
/get how to program
Jasur Fozilov 🐳
/get howtopostcode
Jasur Fozilov 🐳
/get cs50
Jasur Fozilov 🐳
/get c++_isnt_c_with_classes
Ehsan
/get rose_as_my_girlfriend
Vitalii
class Ticket
{
};
class Platscart :virtual public Ticket
{
};
class Lux : virtual public Ticket
{
};
class SuperLux : public Platscart, public Lux
{
};
Ticket **ticket;
Platscart *plat_ticket;
Lux *lux_ticket;
SuperLux *superlux_ticket;
plat_ticket = new Platscart;
lux_ticket = new Lux;
superlux_ticket = new SuperLux;
ticket = new Ticket*[3];
ticket[0] = dynamic_cast<Ticket*>(plat_ticket);
ticket[1] = dynamic_cast<Ticket*>(lux_ticket);
ticket[2] = dynamic_cast<Ticket*>(superlux_ticket);
Sorry, why I can't I access derived class methods, for instance, using ticket[0]->. . .?
Vitalii
I have virtual function print() which I made override in all classes , and only this function I can use like
ticket[0]->print(); ticket[1]->print(); ticket[2]->print()
So it works as should. But others methods...
Vitalii
cannot access
jajaeee
hello pips, please advise laptop notebook for work. wanna 32 gb ram,,,, should i look at 4k displays?... also i want at least 15 inches
⚓Peri⚓
/get gcc9
Félix
Hola soy un aprendiz de programador en c y quiero aprender a mejora mis técnicas con ejercicios
Félix
Y conocimiento
Anonymous
Félix
Ok
Félix
Hello, I am a C programmer apprentice and I want to learn to improve my techniques with exercises
Félix
And knowledge
Talula
Sushan
Hlo
Anonymous
/get
.
hi? can someone help me with FCFS with gantt chart?
MAC
MAC
Shubham
hello
Shubham
Attending Workshops hacker rank problem
Shubham
The prompt is quite confusing
Shubham
My Take on the problem is this
Shubham
#include <iostream>
#include <vector>
typedef pair<int,int> p;
typedef vector<p> Available_Workshops;
Available_Workshops* intinnalize(int *start_time, int *duration, int n){
auto a_w = new Available_Workshops(n);
for(int i = 0; i < n; i++){
a_w -> at(i).first = start_time[i];
a_w -> at(i).second = start_time[i]+duration[i];
}
return a_w;
}
int CalculateMaxWorkshops(Available_Workshops* data){
sort(data->begin(), data->end(), [](const p &a, const p &b){
return a.second < b.second;
int f = 0, res = 0;
for(int i = 0; i < data -> size(); i++){
if(data->at(i).first >= f){
res++;
f = data->at(i).second;
}
}
return res;
}
}
}
Shubham
Please avoid extra curly braces at the end🙈🙈
Vitalii
Nameful
/report we will get hacked!!!
klimi
o.o
小
Hi, I'm from taiwan. My English isn't good. So, maybe can think not know for everyone.
I hope can create a mahjong scoreboard
Because mahjong game is 3 people or 4 people to play
but I see those gamescore is 2 people scoreboard and can't use minus point
I hope someone can teach me how to make this plugin. Thx
Anonymous
Anonymous
Anonymous
Edward
Anyone who can handle
C# programming task?
Talula
Edward
Ok
小
Saron Ravuth
Hello everyone!!!
I’m going to learning code by myself!!Which point should I starting from??
Amirhossein.J
We have developed an dll windows driver which generate a tunnel for creating a bridge between a real physical com port and a virtual com port so it can role as a hub. It should bypass physical com port data to another physical com port and a tcp call to a rest api and wait for first data response.
The problem is we it just runs on windows test mode because of non exsistance signed driver. As a solution we need this driver to be signed.
We will appreciate any helps.
Thanks in advance.
Anonymous
Anonymous
Savta
Kind of a stupid question
But why do we have strchr and strrchr
But there is only strstr and no strrstr in the standard library?
Savta
I implemented a strrstr version myself, just want to know why it is not already there
Yusuf
Hi, how this code work?
if ("any","etc") {
// always true and executed
}
Anonymous
Anonymous
Anonymous
no, it ignores the first parameter
"The comma operator takes two operands, which it evaluates from left to right. Like the logical AND and logical OR and the conditional operator, the comma operator guarantees the order in which its operands are evaluated.
The left-hand expression is evaluated and its result is discarded. The result of a comma expression is the value of its right-hand expression. The result is an lvalue if the right-hand operand is an lvalue." — c++ primer
Yusuf
Anonymous
Yusuf
what is the current modern IDE for C++? My last IDE is devCpp
Yusuf
too many suggestion on google search
Prince Of Persia
Yusuf
what is this?
Prince Of Persia
CLion
the best one
or I heard about Qt too
if you don't want these IDEs
you can use VSCode
Yusuf
CLion
Thanks, will have a look.
Anonymous