Anonymous
https://en.cppreference.com/w/cpp/io/ios_base/iostate#See_also check the table here
Lameck
Hello guys,how many types of standard library functions do we have
Lameck
Priyank
i want c++ full beginner course pls....😅😅
Anonymous
Anonymous
Can anyone help me find a telegram group for Java?
Anonymous
Vlad
@en_it_chats
Anonymous
Thanks
Anonymous
Hi
Anonymous
Can anyone hack telegram channel?
Dima
Bruhhh
Anonymous
im gonna take a screenshot of this.
Anonymous
What do you mean?
Dima
Anonymous
Don't get yourself banned
Anonymous
/warn
Anonymous
I have no idea why I got warned? 🙃
Anonymous
Vlad
Anonymous
I tried to do but I failed.
𝙑𝙚𝙙𝙖𝙣𝙩
Can someone explain me what is fibonacci series in simple language bookish language is going over my head 😅 and i have to solve some problems related to that so i kinda needed help?
Vlad
Vlad
Each element of the series is the sum of the previous elements
Vlad
𝙑𝙚𝙙𝙖𝙣𝙩
Vipin
Anyone c programming run in vs code
Anonymous
#include<stdio.h>
#include<string.h>
main()
{
int i=0,j=0,k=0,a,minIndex=0,maxIndex=0,max=0,min=0;
char str1[200]={0},substr[200][200]={0},c;
printf("Enter a sentence\n");
gets(str1);
while(str1[k]!='\0')//for splitting sentence
{
j=0;
while(str1[k]!=' '&&str1[k]!='\0')
{
substr[i][j]=str1[k];
k++;
j++;
}
substr[i][j]='\0';
i++;
if(str1[k]!='\0')
{
k++;
}
}
int len=i;
max=strlen(substr[0]);
min=strlen(substr[0]);
for(i=0;i<len;i++)
{
a=strlen(substr[i]);
if(a>max)
{
max=a;
maxIndex=i;
}
if(a<min)
{
min=a;
minIndex=i;
}
}
printf("Largest Word is %s \nSmallest word is %s\n",substr[maxIndex],substr[minIndex]);
}
Anonymous
case : Problem Solving through Programming in C.
Codigo
Oops 😅
Ehsan
#include<stdio.h>
#include<string.h>
main()
{
int i=0,j=0,k=0,a,minIndex=0,maxIndex=0,max=0,min=0;
char str1[200]={0},substr[200][200]={0},c;
printf("Enter a sentence\n");
gets(str1);
while(str1[k]!='\0')//for splitting sentence
{
j=0;
while(str1[k]!=' '&&str1[k]!='\0')
{
substr[i][j]=str1[k];
k++;
j++;
}
substr[i][j]='\0';
i++;
if(str1[k]!='\0')
{
k++;
}
}
int len=i;
max=strlen(substr[0]);
min=strlen(substr[0]);
for(i=0;i<len;i++)
{
a=strlen(substr[i]);
if(a>max)
{
max=a;
maxIndex=i;
}
if(a<min)
{
min=a;
minIndex=i;
}
}
printf("Largest Word is %s \nSmallest word is %s\n",substr[maxIndex],substr[minIndex]);
}
is there a problem with this code//?
Otumian
@K11M1 is max here?
klimi
ya
klimi
Otumian
There is another guy claiming to be max. I want to find out for sure
klimi
klimi
oh i see i read it wrongly
klimi
my bad
klimi
Otumian
A second..
Otumian
Nope..
Otumian
The max i am referring worked on clinl
Otumian
Infact, I only recognize your ID @K11M1 .. thanks anyway
klimi
oh i see, yeah he isn't here anymore i think
klimi
Otumian
Okay. Thanks
Anonymous
how to write pointer function
Anonymous
Pointers are difficult, isn't it?
Pavel
Anonymous
About Function pointer
Pavel
About Function pointer
Doesn't the link you've sent contain the answer to your question or something is still unclear?
Anonymous
Pavel
armandofsanchez
Int (* compare ) (int Arg1, int arg2)
{
}
armandofsanchez
Pointer to a function? C or C++?
Pavel
Anonymous
Ehsan
will it’s easy:
void method(void *func(parameters))
Ehsan
Anonymous
Ehsan
also you need to use the auto keyword ALOT with function pointers
Anonymous
hmm ok
Pavel
Ehsan
you are going to waste your time for nothing
Pavel
Also if it's C++ the syntax of function pointers can be improved by creating aliases with using
Codigo
The link he sent talks about C. So it may be C
Ehsan
@MSAV c or c++?
Anonymous
Ehsan