Anonymous
opengl makes 3D objects but not realistic enough
Anonymous
👍
klimi
Then use Ray tracking
klimi
You can go see blender
klimi
And play with it
Anonymous
how can I use blender in my own soft its completely different software not for c++ as I know
klimi
You can't
Anonymous
You can't
thats why I should learn how to make my own
klimi
Ok
klimi
Good luck
Anonymous
well even if admin couldn't help then...
Anonymous
but thanks in any case
klimi
I'm not a programmer
klimi
I'm just an admin
Anonymous
I see
Anonymous
Hi
klimi
Hi
Hi
Anonymous
Hi guys i couldn't find any function to clean the screen in console application
Anonymous
conio isn't working bro
Anonymous
getch() is the only function that i am using from conio
MᏫᎻᎯᎷᎷᎬᎠ
system (command-name)
Anonymous
How did you use the conio header file? #include<conio.h> Or #include <conio>
Anonymous
You can use system (cls)
Anonymous
Dude just cheak it it is cls in caps i guess
MᏫᎻᎯᎷᎷᎬᎠ
How did you use the conio header file? #include<conio.h> Or #include <conio>
include cstdlib Then use system (command) function to clear the screen, where command is: 1-"cls" if you are using Windows 2-"clear" if you are using linux
Anonymous
Hii
MᏫᎻᎯᎷᎷᎬᎠ
Hi
Anonymous
You can use system (cls)
system isn't working too No error message, but no result too
NandhU
need fibonnaci series with limit
Ludovic 'Archivist'
opengl makes 3D objects but not realistic enough
The realism depends on the shaders used
olli
Mutexes use the thread_id for locking so that a thread cannot self-deadlock
>> "cannot deadlock" That's not true for std::mutex, it applies to std::recursive_mutex though A program may deadlock if the thread that owns a mutex object calls lock() on that object http://eel.is/c++draft/thread.mutex.requirements.mutex#thread.mutex.class-4
Ибраги́м
https://www.youtube.com/watch?v=lM-21GySlso
olli
Environment mapping does help a lot for realism especially in static scenes.
BinaryByter
the c++ standard needs to include that just to make the indians shut up
BinaryByter
btw: I wrote a library which allows that, iirc
BinaryByter
COLORINK I think
BinaryByter
wait not it doesnt di that :(
Anonymous
In "Head first C" book they said that * The C language doesn't support strings out of the box* but its supports printf("hello world"); this prints hello world, its a string then how it support?
BinaryByter
ist a const char []
Anonymous
const char?
BinaryByter
const char?
condt char []
Anonymous
it's an array of char, like if you have an array of int
then can i access a string like array char name[] = "john"; printf("%s", name[0]);
Anonymous
%c
thanks, it works. I can access. :-)
Anonymous
what differences between those two name[0]&name[0]
Dima
wat
klimi
/kick @Chlid I'm so angry
Anonymous
code int main() { char name[10]; printf("Enter your name: "); scanf("%s", name); printf("is this one %c \n",name[0]); printf("is this one %c \n",name[1]); printf("is this two %c \n",name[2]); printf("is this three %c \n",name[3]); printf("is this four %c \n",name[4]); printf("is this five %c \n",name[5]); printf("is this six %c \n",name[6]); printf("full char %s \n",name); scanf("%s", name); return 0; }output Enter your name: loren is this one l is this one o is this two r is this three e is this four n is this five is this six Ç full char lorenQ: why there is empty in name[5]: ?
Nameful
You can try setting it to something else and printing the string
olli
That is theory, in practice mutex on all libraries I have tested lock using their thread_id and noop same thread multilocking
That's what the standard says. Sure implementations have not to deadlock but relying on not dead locking is stupid.
olli
That is theory, in practice mutex on all libraries I have tested lock using their thread_id and noop same thread multilocking
furthermore #include <mutex> #include <cstdio> int main() { std::mutex mutex; printf("L0\n"); mutex.lock(); printf("L1\n"); mutex.lock(); printf("L2\n"); } deadlocks with GCC/libstdc++. and that's why std::recursive_mutex exists. Had several discussions about that at my previous company...
Krunal
Where
Krunal
I got it all
MᏫᎻᎯᎷᎷᎬᎠ
What?
Krunal
What is file handling in C++
BinaryByter
read the name aloud 10 times
Mihail
read the name aloud 10 times
3 should be more than enough tbh
BinaryByter
3 should be more than enough tbh
better be safe than sorry
Krunal
I'm human
Krunal
👍
YK Y
I'm human
Thespartann
I'm human
(X) Doubt
Thespartann
BinaryByter
Krunal
Yeah
YK Y
Which branch u r pursuing?