Vidhya
Hi
Vidhya
Where static functions address stored in c?
Surya
@JRandomGuy @das_3sz3tt Actually it's compiling for prototype only. And I was missing some setting in keil and had to move one defined array to .c file instead of .h..... these two were the reason for the problems. Thanks for help guys
Walter
What is the use of socket programming?
klimi
Adkhambek
Hi. Did you use rsa algorithm c++?
klimi
who?
Adkhambek
who?
Hi. For example you
klimi
no i haven't used rsa algorithm c++... i don't even know what that is
Anonymous
Hi. Did you use rsa algorithm c++?
you might easily use cryptographic algorithms by LibreSSL. LibreSSL is developed in C, so it is easy to use in C, C++, Fortran, ...
Đỗ
or u can use OpenSSL suite for more crypt algo with complete wrapper, but i heard recently it has some flaw that vulnerable to attack by hacker
Anonymous
sory
Anonymous
when i using smart-pointer
Anonymous
and I see a error about unique_ptr
Anonymous
/usr/include/c++/9/bits/unique_ptr.h:406:7: note: declared here 406 | unique_ptr(const unique_ptr&) = delete; | ^~~~~~~~~~
Eugy🧸
Hey guys. I need a help
Eugy🧸
This algorithm should do linear sorting of the array
Eugy🧸
But when I compile it, it give me casual numbers without sorting it
Hubert
This algorithm should do linear sorting of the array
lets try to put srand(time(NULL)) out of loop
Hubert
But when I compile it, it give me casual numbers without sorting it
and i think you're missing the "{ }" in line 16, right?
Eugy🧸
lets try to put srand(time(NULL)) out of loop
Thank you for your help. I really appreciate it. It's working!
Eugy🧸
and i think you're missing the "{ }" in line 16, right?
I using an online compilator that don't have need to open and close {}. My school have Dev C++ as compiler, it's so buggy
Hubert
you're welcome
Artöm
I using an online compilator that don't have need to open and close {}. My school have Dev C++ as compiler, it's so buggy
Its C++ that allows not to have them, but better put them for readability. And devc++ is not a compiler
Rahul
Can anobody help me to do this code
Rahul
Rahul
Rahul
I have left only 1 hour to complete the task??
Rahul
Guys reply plzz
Rahul
If anybody knows how to solve
Dima
Nah
Rahul
Nah
Oky😔
Anonymous
I will give one solution
mei
Hello guys,I need help with program on C. write a program that will open the text file given as the call argument (if not provided, the default file should be used). If the file is properly opened, its content should be thrown on the screen. All possible errors, i.e. related to opening, should be handled and closing and show the correct syntax for calling the program when the program is called without arguments.
mei
int main() { char ch, file_name[25]; FILE *fp; printf("Enter name of a file you wish to see\n"); gets(file_name); fp = fopen(file_name, "w"); // read mode if (fp == NULL) { perror("Error while opening the file.\n"); exit(EXIT_FAILURE); } printf("The contents of %s file are:\n", file_name); while((ch = fgetc(fp)) != EOF) printf("%c", ch); fclose(fp); return 0; }
NXiss7
Then program arguments will be passed in argv, number of args will be passed as argc.
mei
Thx,i’ll try
NXiss7
You're welcome.
mal
/start@MissRose_bot
Anonymous
Anonymous
/usr/include/c++/9/bits/unique_ptr.h:406:7: note: declared here 406 | unique_ptr(const unique_ptr&) = delete; | ^~~~~~~~~~
That means that copy constructor is deleted => you cannot copy unique_ptr which should be obvious
Prosvetlennii Dimas
could someone tell me why it doesnt sort? void sort_3_nums(int *a, int *b, int *c) { if (*a > *b) swap(a, b); if (*b > *c) swap(b, c); if (*a > *b) swap(a, b); } void swap(int *a, int *b) { *a = *a + *b; *b = *a - *b; *a = *a - *b; }
Dima
Lol
I_Interface
Lol
Go sleep.
Prosvetlennii Dimas
I_Interface
Im from C
Okay, have u tried to use debugger?
Prosvetlennii Dimas
no, i cant use debugger right now
I_Interface
no, i cant use debugger right now
U must keep max and min values. What to do with them - think please.
Prosvetlennii Dimas
values changes inside sort function, but doesnt changes in block where its called
I_Interface
values changes inside sort function, but doesnt changes in block where its called
U are swapping pointers, not values in sort function...
I_Interface
But I don't know without my laptop why it didn't work. And I wanna sleep a bit...
Prosvetlennii Dimas
U are swapping pointers, not values in sort function...
I dont need to swap pointers, and i dont doin it, as i thought. im swaping values on which these pointers pointin
Prosvetlennii Dimas
Think about it.
thx, for advise, but i need to understand why this function doesnt work.
Prosvetlennii Dimas
cause it definetly swaps values inside function and doin it correctly, but not in block where its called
I_Interface
cause it definetly swaps values inside function and doin it correctly, but not in block where its called
And I think what is swap function must be before sort, and rename it. In standard library I think there is already swap function with name like that.
Prosvetlennii Dimas
ooooooooooooh, thx. It seems that swap from stdlib used/
Wisenky
Guys , I need a big help :( . How can I get these values and place in structer object without knowledge of customer number in txt file .
Wisenky
I can send .c and txt file too if anyone wanna look at them especially
Dima
Just skip first token?
Dima
While reading a file
Akash
/kickme
poi
Ajay
Кто-то
Hi, I learn OpenGL/C++. I can’t find simple game with source code. Can someone help ?)
NXiss7
おはようでござる 😄😄
András
Hi, I learn OpenGL/C++. I can’t find simple game with source code. Can someone help ?)
1)open google 2)paste "c++ opengl game" 3) browse through links
Кто-то
I can’t find good projects with only c++ and OpenGL.
András
I can’t find good projects with only c++ and OpenGL.
What do u mean "good project"?
Кто-то
With modern OpenGL and wasn’t written by junior
poi
why would one write games in pure opengl?
poi
qwert
Hi, I learn OpenGL/C++. I can’t find simple game with source code. Can someone help ?)
http://nicktasios.nl/posts/space-invaders-from-scratch-part-1.html