klimi
Pranjal
yes
Yeah man just figured out, I was using double quotes instead of single
In python both meant the same😭
Pranjal
Peter
Peter
Danya🔥
/unban @asdasdadsfav
𝘞𝘦𝘢𝘳𝘪𝘯𝘨𝘔𝘦𝘥𝘢𝘭
hi, I'm having some troubles with meson! I have this:
project('tgbot', 'c', version: '0.1.0', default_options: ['warning_level=everything', 'buildtype=release', 'strip=true', 'debug=false', 'optimization=3'])
but I don't know why doing file exec gives:
tgbot: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
why it has debug_info and it isn't stripped?
Alexander
hi, I'm having some troubles with meson! I have this:
project('tgbot', 'c', version: '0.1.0', default_options: ['warning_level=everything', 'buildtype=release', 'strip=true', 'debug=false', 'optimization=3'])
but I don't know why doing file exec gives:
tgbot: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
why it has debug_info and it isn't stripped?
It will be stripped during install
𝘞𝘦𝘢𝘳𝘪𝘯𝘨𝘔𝘦𝘥𝘢𝘭
Engineer
Can i ask you for electronic engineer which programming languange should i learn
Most chip development is done with C++/ SystemC C++ class library where bit accurate models of the chip/subsystem are developed to iterate quickly on architecture exploration of chips and sub blocks.
You can have a loosely time C++ model which shows what the output behavior of the system will be, there are also clock cycle accurate C++ models too.
Engineer
Engineer
I am developing a C++ model of a CPU, I have a clock cycle accurate model which is also a bit accurate model that I am still working on.
Ziky
Or his intention might be to work with PLCs which have they own obscure languages...
𝘞𝘦𝘢𝘳𝘪𝘯𝘨𝘔𝘦𝘥𝘢𝘭
../src/message.c:27:9: note: 'snprintf' output between 1 and 1024 bytes into a destination of size 512
27 | snprintf(man_res, MAN_SIZE, "%s", line);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
why it says this? is this the right way to use snprintf?
MAN_SIZE is 512, line is 1024chars and man_res is 512chars
Alexander
𝘞𝘦𝘢𝘳𝘪𝘯𝘨𝘔𝘦𝘥𝘢𝘭
Alexander
𝘞𝘦𝘢𝘳𝘪𝘯𝘨𝘔𝘦𝘥𝘢𝘭
Taha Eid Mohamed (4)
in php we can use madelineproto to make clients apps
what can we use in c++
Manny
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
cannot open source file "filesystem". Please run the 'Select IntelliSense Configuration...' command to locate your system headers
What's the error
Manny
On running the code it shows fatal directory
I downloaded the mingw w recently but it shows GCC version 6.3.0
Anonymous
Chat Boss
Balaji Balu sent a code, it has been re-uploaded as a file
Balaji
what is wrong in my code
Balaji
hiii
AlanCcE
And just for the sake of clarity, would probably be better to make a "is_prime" function that would return a boolean value which you could use into this if statement
Balaji
Aziz
are there any groups for Java in english and/ or Russian?
Danya🔥
Anonymous
Guys, if the sort algorithm sorts values in ascending order, does there have an algorithm that sorts in descending order?
Danya🔥
Alexander
Danya🔥
Open cppreference and check examples
Anonymous
Anonymous
abel
What's this paragraph means?
"You should have something like /build* in your .gitignore , so that users can make build directories in the source directory
and use those to build. A few packages prohibit this, but it's much better than doing a true out-of-source build and having to type
something different for each package you build."
abel
Is he suggests me to make a directory under the project to build?
abel
Is that's correct meaning of out-of-source build?
aronCrow
aronCrow
If you don't have .gitignore file in the root folder of repository, then you can create it
Anonymous
Hello? Are there any free resources which is comprehensive for learning c++?
Anonymous
Is that's correct meaning of out-of-source build?
Out of source build means that the build objects will be generated in a directory separate from that of your source repository. This is a good idea because it ensures that your source directory isn't polluted with object files and stuff making it cluttered. Also this has the additional benefit of ensuring that people don't add the temporary build objects to your version control by mistake.
Anonymous
Can you recommended me any free comprehensive c++ learning resources?
Anonymous
Oh... There is already a link i rules for that... Sorry for asking
Tokin
Anonymous
Utpal
Could anyone explain "Function Overloading" in simplest terms please ?
Doremon
Could anyone explain "Function Overloading" in simplest terms please ?
Suppose you are teacher said that to create 3 Functions . 1 For Addition of 2 number
2. For addition of 3 numbers
3. For addition of 4 numbers
In this case our approach will be we create fun1 fun2 fun3 named functions that will perform that work but Function overloading is a concept with this we can give same name to all that functions
But there is Some rules
1. Numbers of parameters
2. Type of parameters
3. Order to parameters
Not done with changing return type
You can refer internet for different examples
Overally it is used just for simplicity for identifier names .
Chat Boss
#include <stdio.h>
void main()
{
int age[100][10] = {0};
int person;
char name[28][10] = {0}, email[28] = {0};
printf("Enter the number of travellers\n");
scanf("%d", &person);
for (int i = 0; i < person; i++)
{
printf("Enter the name of person %d\n", (i + 1));
scanf("%s", &name[i]);
printf("Enter the age of person %d \n", (i + 1));
scanf("%d", &age[i]);
}
for (int j = 0; j < person; j++)
{
printf(" the name of person %d is %s \n", (j + 1), name[j]);
printf(" the age of person %d is %d \n", (j + 1), age[j]);
}
}
Aze sent a code, it has been re-uploaded as a file
Boom
Anonymous
Developer
Hey anyone can solve this asap please
Shashank
C++ full notes
马库斯
Ighor
Anonymous
Anonymous
The message was posted today
Abdelghani
how to check what line of my c code has a segfault
Danya🔥
Abdelghani
is there any way to do that from terminal
Danya🔥
Abdelghani
🙏
p
a=5
B=++a + a++....?
Why does the value of b come to be 13 not 12 in the above expression?
Anonymous
Anonymous
people tell me dont use scanf