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
stranger
How does it even slightly related to C++?
It's a trick question. Don't answer it 😂
Anonymous
I just want to ask something to them
It's not a group for that Read the rules
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
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
Sushan
Hlo
Anonymous
/get
.
hi? can someone help me with FCFS with gantt chart?
Anonymous
Hello everyone can someone help me about my code? Currently I am doing a string type program and idk what to put or what to use but if I want to input the name of the country in uppercase or lowercase or maybe mix of upper and lower case, it continues to print out the country capital. and I'm having trouble in the part of east timor please check it . #include<iostream> #include<string.h> #include<conio.h> using namespace std; int main() { A: string c; cout<<"COUNTRY NAME: "; cin>>c; if (c == "brunei") { cout << ("CAPITAL: Bandar Seri Begawan")<<endl; goto A; } else if (c == "cambodia") { cout << ("CAPITAL: Phnom Penh ")<<endl; cout<<endl; goto A; } else if (c == "east timor" ) { cout << ("CAPITAL: Dili")<<endl; cout<<endl; goto A; } else if (c == "indonesia" ) { cout << ( "CAPITAL: Jakarta")<<endl; cout<<endl; goto A; } else if (c == "laos" ) { cout << ( "CAPITAL: Vientiane")<<endl; cout<<endl; goto A; } else if (c == "malaysia" ) { cout << ( "CAPITAL: Kuala Lumpur")<<endl; cout<<endl; goto A; } else if (c == "myanmar") { cout << ( "CAPITAL: Nay Pyi Daw")<<endl; cout<<endl; goto A; } else if (c == "philippines" ) { cout << ( "CAPITAL: Manila")<<endl; cout<<endl; goto A; } else if (c == "singapore") { cout << ( "CAPITAL: Singapore")<<endl; cout<<endl; goto A; } else if (c == "thailand" ) { cout << ( "CAPITAL: Bangkok")<<endl; cout<<endl; goto A; } else if (c == "vietnam" ) { cout << ( "CAPITAL: Hanoi")<<endl; cout<<endl; goto A; } else { cout << "SORRY, unable to search capital of " << c <<" Please try Again!."<<endl; cout<<endl; goto A; } return 0; }
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🙈🙈
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
Edward
Anyone who can handle C# programming task?
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.
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 }
Yusuf
"etc", when converted to bool, is true
how the code is evaluated? is it like this: if (true,true) then true I mean what comparison is it?
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
Anonymous
many thanks, I never know about this comma operator.
you've probably used it in loops before
Yusuf
you've probably used it in loops before
ah, I see. accidentally write this in if statement makes my brain broken.
Yusuf
what is the current modern IDE for C++? My last IDE is devCpp
Yusuf
too many suggestion on google search
Anonymous
too many suggestion on google search
best suggestion: don't use an ide
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.
Yusuf
best suggestion: don't use an ide
beside using devcpp I use gcc directly. Is that what you mean? use the compiler on terminal.