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
klimi
no i haven't used rsa algorithm c++... i don't even know what that is
Adkhambek
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
Hubert
you're welcome
Artöm
Artöm
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
Anonymous
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;
}
Artöm
NXiss7
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
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
I_Interface
Prosvetlennii Dimas
I_Interface
Im from C
Okay, have u tried to use debugger?
Prosvetlennii Dimas
no, i cant use debugger right now
Prosvetlennii Dimas
values changes inside sort function, but doesnt changes in block where its called
I_Interface
I_Interface
But I don't know without my laptop why it didn't work. And I wanna sleep a bit...
I_Interface
I_Interface
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
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
Chernykh
poi
Ajay
Кто-то
Hi, I learn OpenGL/C++. I can’t find simple game with source code. Can someone help ?)
NXiss7
András
Кто-то
I can’t find good projects with only c++ and OpenGL.
András
Кто-то
With modern OpenGL and wasn’t written by junior
poi
why would one write games in pure opengl?
poi
qwert