coal
but you dont need to know mathematics to know how to code
coal
it depends in the field
.
Hey bro mathematics is a backbone of codeing
Prometheus
Many programming languages have some inbuilt functions, libraries, etc, to handle much of the higher level stuff for you. If you plan on doing everything from scratch then you'll definitely want to take classes on higher level stuff.
.
For the writing of a good program we need a proper understanding power
coal
depends in the field
coal
i dont see myself applying mathematics in react.js
.
For the writing of a good program we need a proper understanding power
And solving the mats problem we can improve our understanding level
Anonymous
Not yet
.
No
Anonymous
Currently i am learning
Anonymous
Jus joined college
Anonymous
Btech first year next year i will participate currently i am participating in contest at codeche
.
I m preparing for exam
.
Hey anyone have a kali linux coerce
Roxifλsz 🇱🇹
.
Hey 😢😢
coal
lmao
Prometheus
People still use linux?
Prometheus
They have programming languages like that. I think the one I used in college was called "Alice"/
Anonymous
then you can go with python
Anonymous
python is less coder language and anyone can understand it
.
Linux is a nice platform to coding
Anonymous
and it is most used language
.
Hay bro i m not sir
.
Yes Sir
I'm kashyap
Anonymous
Can we convert Vs C++ to mingw64 c++?
Anonymous
How???
Anonymous
there is no Windows.h in mingw64?
coal
windows.h is a standard windows header
.
Can we convert Vs C++ to mingw64 c++?
Because gcc has no graphic. H and window.h
coal
there's windows.h if you're on windows
.
And mingw64 work on gcc
.
So we first download window.h library and past it in the bin folder of mingw64
Anonymous
can you teach me how to build this for mingw —>> https://github.com/aseprite/aseprite
.
*
Anonymous
where I can find windows.h and other stuff that match to my compiler?
.
where I can find windows.h and other stuff that match to my compiler?
They are outdated library so finding the window.h is very difficult
Anonymous
I think we can use msys2 for it
.
I try to find it
.
Dm me
Vitrag
Waht??
Anonymous
What is the Idea Sir
.
??
Anonymous
how we can represent a triangle in a Header file?
ARx
as coordinates in the dimensions you want
coal
how we can represent a triangle in a Header file?
struct point { int x; int y; }; struct triangle { point a; point b; point c; }
Anonymous
as coordinates in the dimensions you want
I should give all data of triangle
Anonymous
like types and figure and so on
ARx
well you can use a coordinate as two floats
ARx
or three if you want a 3d triangle
Anonymous
I just want to make a triangle
Anonymous
with all types and all algebra
.
struct point { int x; int y; }; struct triangle { point a; point b; point c; }
#include <graphics.h> #include <iostream> int main() {  int gd = DETECT, gm; initgraph(&gd, &gm, "");  line(150, 150, 450, 150); line(150, 150, 300, 300);  line(450, 150, 300, 300); getch();  closegraph(); }
Ismoiljon
Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL #ifndef STRUCT_LISTNODE #define STRUCT_LISTNODE typedef struct s_listnode { int val; struct s_listnode* next; } listnode; #endif listnode* reverse_linked_list(listnode* param_1) { } who can help?
Anonymous
I can help you
Ismoiljon
I can help you
ok in direct?
Anonymous
yes sir
Anonymous
How to make an object with c ?
Anonymous
How to make an object with c ?
make a typedef structure
Anonymous
make a typedef structure
struct homo{ unsigned char instinct[20]; }; struct sapien { struct homo basic; char brain[10]; }; struct homo primate; struct sapien bobby; primate.instinct="yes"; bobby.brain="clever"; bobby.basic.instinct="dull"; /* i want to make a human object derivated from homo that has brain. */
🥛
https://leetcode-cn.com/problems/online-stock-span/solution/dan-diao-zhan-by-pi-pi-tong-xue-mf8w/
Anonymous
try to dm me?
kj
so um there are quite a lot of ways of initialising variables in cpp - Copy initialisation int a = 0; - Direct Initialisation int a (0); - Brace Initialisation / Uniform Initialisation int a {}; but i never really understood when to use when, and what's really the difference one of the differences i know is that brace initialisation gives error instead of narrowing conversion. is it really a benefit? if yes, how? it would be really nice if someone could give some insight on other differences too
kj
just use {} with struct
from the research i did on google people suggest to use {} uniform initialisation as much as possible
kj
but none of the mentioned exactly why
Anonymous
yes
kj
ye so why lol
Anonymous
ye so why lol
there are only deference in copy and direct initializer
Anonymous
that meansint a = 5, b = 6; // copy initialization int c( 7 ), d( 8 ); // direct initialization int e { 9 }, f { 10 }; // brace initialization (preferred)
Anonymous
The Copy initialization is basically an overloaded constructor Direct initialization can be done using assignment operator.