Anonymous
There is
Show me exact C++ files in the C compiler
Anonymous
If I compile a C program with a C compiler, I have a C program
Janko Ⓥ
Anonymous
Anonymous
Anonymous
Inspect the executable and see which libraries are called
Ilya
Janko Ⓥ
Ok, give me a sec
Anonymous
They do...
A test suit in C++ and a library in C++ have C++ components. This doesn't render the entire program a C++ project
Ilya
I think the happy medium is that gcc both C and C++ program, heh
Anonymous
There is interoperability. By this logic then gcc is an assembly ,perl, go, Fortran program
Ilya
That is, yes
Anonymous
Ilya
Janko is right
Janko Ⓥ
Just grep for "c++" in the c directory
Ilya
you can use different extensions
Anonymous
So one of the biggest project in the world is using extensions in a random way?
Ilya
why not?
Anonymous
Grep "C++" is a C++ indicator?
Janko Ⓥ
Anonymous
Where is C++ in those files?
Anonymous
Janko Ⓥ
Where is C++ in those files?
Grep for it, search for it, I'm not going to audit the entirety of the C compiler for you, sorry. I can send you a screenshot of my grep if you don't want to do it yourself
Janko Ⓥ
But that's not the entirety
Anonymous
Janko Ⓥ
It helps, comments mostly, are located there.
Janko Ⓥ
I've provided more proof than you have, I think
Anonymous
"grep programming_language" is a method to find code in a specific language? Have you seen the GitHub page with code percentage?
Anonymous
Let's open one of your files
Anonymous
https://github.com/gcc-mirror/gcc/blob/master/gcc/c/c-decl.c
There is not a single line of C++ code
Anonymous
Janko Ⓥ
Anonymous
Janko Ⓥ
I'm also confused by this somewhat
Anonymous
What do you mean by "C++" program. We might be talking about different things unknowingly
Anonymous
There are parts in C++ but I'm not sure that this qualify gcc as a C++ program. From what I know, there are parts in both languages. If I recall correctly the makefile doesn't build it as a full C++ program. If I'm wrong I would be happy to be corrected
Janko Ⓥ
What do you mean by "C++" program. We might be talking about different things unknowingly
It's difficult for me to gather how the components are used, but the front-end being written in C++ and the C compiler relying on C++ would to me mean that it's a C++ program, since it's not optional.
https://gcc.gnu.org/legacy-ml/gcc/2012-08/msg00015.html
This is the original post stating the switch.
This is what I found in the Makefile for now:
$ grep "g++" Makefile.in
CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
$ grep "g++" Makefile.tpl
CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
Anonymous
Janko Ⓥ
Thank you too, I learn something as well
Mar!o
https://www.youtube.com/watch?v=Fgb8l2Ve8vo
Alpha Max
hi
Merve
Hi all, Can you help me about scrollbars direction?
Merve
ı want to change scrollbars direction. ı want to make downwards
Haryy
👍👍👍
сумбула
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
char site[20],ch;
ifstream in;
ofstream out;
cout<<"Enter the Name of the Site to Block \n";
cin>>site;
out.open("C:/Windows/System32/drivers/etc/hosts",ios::app);
if(!out)
cout<<"Either File Not Found or Permission Denied, Run as Admin the EXE of the Program";
else
out<<"127.0.0.1"<<"\t"<<site;
out.close();
return 0;
}
Hey guys, here is my code for blocking some unwanted websites. How can I change my code that it should shut down my laptop whenever I type URL of those websites to any browser
Vitalii
How to use the print () function, which is in public, from the base class, if I use protected inheritance for a derived class that also contains an overridden print () function?
class Ticket
{
protected:
. . .
public:
. . .
string print();
};
class Lux : protected Ticket
{
protected:
. . .
public:
. . .
string print();
};
Vitalii
I thought I could write
using Ticket::print
But I have the same name of the function in derived class, so I guess It doesn't work like this (
Ilya
Ilya
Ilya
I think no
Ilya
You can create free function print() and pass it like a callback to another function but I dont think it is a good idea
Ilya
You will need to dive into virtual functions and 'override' mechanism because soon or late you will face the rhombus problem
Vitalii
M.CS
hello everyone who know c# language ?
4745H
Hello everyone...how can i make two processes communicate with each other(one of them send some alive data and the other one get response or smt like that...) in c/c++?(Is there any good course for this type of programms in c/c++?)
Ilya
4745H
Janko Ⓥ
It was fun in here, but I really have to leave. Too many PM requests and they're all from people who barely speak a word of English.
Janko Ⓥ
I was just invited to join Islam or something
Nameful
Ilya
I have the same problem
Hariyana Grande
Janko Ⓥ
Ilya
Does anyone know chat for professional CPP devs? Send me in PM pls
Hariyana Grande
😂 lol then why the heck they trouble u
Nameful
For some reason
Hariyana Grande
yes that's what i meant
Hariyana Grande
0xFF
Are indians here?