Anonymous
Please find the error
The if statement is wrong, it's missing a closing parenthesis, but also you're comparing a variable named "now" while the only variable you have is named "n" and has the value "now" which is also wrong because it's a char and can only save one character, not a string, also strings are delimited with ", not '. The else statement is also wrong and even the text you seem to want to display to the user is interpreted as code, because it's not a string. And even if it's a string it won't work that way
Anonymous
😆
Anonymous
Learn C - Free Interactive C Tutorial https://www.learn-c.org/
Asdew
It's not old.
Chernykh
Maybe we r talking about different libraries
Chernykh
I also found libreCAD, but it also dead project
Anonymous
Hi i am new here
Anonymous
Yes i read it
Anonymous
I am totally beginner
Asdew
How would one dynamically allocate a 2D array in C?
Igor🇺🇦
How would one dynamically allocate a 2D array in C?
Did try to search the Internet? https://www.ecosia.org/search?q=allocate+2d+array
Asdew
I... I'll come back here in a few days...
Igor🇺🇦
I... I'll come back here in a few days...
The first result just gives you code with explanations. What more do you need?
Anonymous
How would one dynamically allocate a 2D array in C?
there is no such thing as a dynamic 2D array in C; however you can use dynamic array of dynamic arrays, which is so similar to a 2D array
Anonymous
How would one dynamically allocate a 2D array in C?
int n; scanf("%d", &n); int (*a)[n]; a = calloc(n, sizeof(*a));
Anonymous
int n; scanf("%d", &n); int (*a)[n]; a = calloc(n, sizeof(*a));
for 3D array: int n1, n2, n3; scanf("%d%d%d", &n1, &n2, &n3); int (*a)[n2][n3]; if (sizeof(*a)/n2/n3 != sizeof(a[0][0][0])) err(1, "too large"); a = calloc(n1, sizeof(*a));
..
can anyone help me to solve lab exercise
klimi
yes bro
Have you read the rules?
klimi
you should have
Anonymous
Hlw
Tokin
Wrong group
Nivo
Hi guys how to find count number for prime number in matrix ?
Igor🇺🇦
Hi guys how to find count number for prime number in matrix ?
Do you know how to calculate if the number is prime?
Nivo
Do you know how to calculate if the number is prime?
No, I dont know the equation for calculate prime number
Igor🇺🇦
No, I dont know the equation for calculate prime number
The simplest primality test is given an input number n, check whether any prime integer m from 2 to √n evenly divides n (the division leaves no remainder). If n is divisible by any m then n is composite, otherwise it is prime
Mat
So what?
Spirit
i dont want to thinkabout long sentences that mean little to nothing in life
Spirit
it looks like school work
Anonymous
hello
Richie
Hello I am new to programming . How can I improve my logic building approach?
klimi
hello
Hello?
Varun
Hi
Charon
Hello
klimi
hello?
Rohit
Hii
Anonymous
Does using running linux on vm consume more power ?
Anonymous
Relative to what?
Comparatively to when I use visual studio on windows
Dima
vm always consumes more power
Igor🇺🇦
Comparatively to when I use visual studio on windows
Do you want to run visual studio on Linux VM on Windows???
Anonymous
Not only vs I mean today battery drained faster than usual
Anonymous
Not only vs I mean today battery drained faster than usual
So i wanted to know that was bc of linux or vm
Igor🇺🇦
Not only vs I mean today battery drained faster than usual
Every command in Linux needs to do additional work in VM. Instead of using hardware directly it goes to virtual machine that needs to translate it. Of course it's less effecient
🐉
Is it me or the compiler it's joking with me? no declaration matches 'const Strumento& Strumento::operator const' const Strumento & Strumento::operator const
🐉
The fuck should I do lol, it won't let me compile but the declaration seems right
Anonymous
The fuck should I do lol, it won't let me compile but the declaration seems right
I cannot help you, but maybe someone here can spot the error
Anonymous
just try to upload your code in some pastebin, like termbin.com
🐉
Yep, I'm pasting it on termbin
Raaj
I want to dual boot for kali linux with already installed windows7 .... But disk partition doesnot shows 'free space' What can i do.... Help
Raaj
🐉
#howtoask
aHAHA you right my bad
Anonymous
/warn offtop, screen photo, kali linux
Anonymous
Pls see the image
You are about to be banned
klimi
#ot
Raaj
I have no idea... Pls say what steps i follow now
Anonymous
I have no idea... Pls say what steps i follow now
Shut up already It's your last chance not to be banned
🐉
can somebody look at this code? seems like I don't get where is the error. The compiler error is written at the bottom https://hastebin.com/omitixobar.php
Anonymous
can somebody look at this code? seems like I don't get where is the error. The compiler error is written at the bottom https://hastebin.com/omitixobar.php
Please paste with gist.github.com It allows to paste multiple files It's just line numbers are broken, 'cause you have multiple in one and I cannot follow the error
🐉
you right, I will past them there
🐉
Thanks to you to help me 😊
Anonymous
Thanks to you to help me 😊
Where is the code?🤔
🐉
Where is the code?🤔
https://gist.github.com/DeusAres/5069e50e82b42487ae99f1c446c0503f
🐉
Had to subscribe to GitHub lol