der ðiβüśüɾę
Anonymous
der ðiβüśüɾę
der ðiβüśüɾę
der ðiβüśüɾę
der ðiβüśüɾę
Anonymous
K
Hey guys 👋🏻
matt
Guys, I have one more thing to ask. pthread_mutex_unlock() from what I have seen from the manpage cannot be called from another thread, right?
matt
Anonymous
matt
RANGER
how char getter can be create in MS visual studio?
RANGER
class Event
{
private:
int eventID;
char eventType[20];
char themeColor[20];
char location[20];
public:
void setEventDetails(int pEID, char const pEType[], char const pTcolor[],char const pLoc[]);
void displayEventDetails();
void setEventLocation(char const pNewLoc[]);
_ getEventLocation();
};
ꍏꈤꀸ
Hi,
I have a string like "2|4" and i expect that first parameter ("2") is uint32_t and second ("4") is uint64_t. How can i verify that data in string is of expected type?
Anonymous
#include<stdio.h>
int main ()
{
int Temp;
float co=1.8;
int C=32;
printf("Enter the Temperatue in Celcius \n");
scanf("%d \n", &Temp);
printf("Temperature in Faranheit %f \n ", co*Temp+C);
return 0;
}
Anonymous
Don't understand what is wrong with this code...
Stay Forward
YVEF
Hi. If someone use Windows. Please can you check CorProf.h header from windows library. if you added this header to your project, your build will fail because some definition in this header hidden by directive #if 0. so, my question, what is the best way to work with it? because change windows header file is at least strange for me. thanks
Prince kumar
RANGER
Anonymous
Anonymous
YVEF
Anonymous
it might be a bug
Anonymous
why would you have code necessary for compilation behind a #if 0
YVEF
well, are you using the latest .NET SDK?
it swaned by dotnet runtime team :) it's not a bug. because the header is corrupted because of it. some definitions is missing. you can check it just create empty project and add the header to your any file
Aniket
Can anybody please help me how to store a name in a dynamically allocated charcter buffer and print it.
Aniket
Aniket
Bro actually I want this with the help of dynamic memory allocation
Captain
GodXAnubis
I learned C/C++ recently what should i do now
Anshika
GodXAnubis
Books
Anonymous
Waiting to hear how u did it..
Anonymous
The C±± language is different..
abbdullah
#include <stdio.h>
#include<string.h>
int main()
{
char s[100];
int n;
scanf("%s",s);
n=strlen(s);
if(s[0]==0 && s[n]==1)
{
printf("0");
}
for(int i=0; i<n; i++)
{
if(s[0]==1 && s[n-i]==1)
{
printf("%d",n-i-1);
break;
}
}
return 0;
}
abbdullah
If
Ip
1001001010
Op
7
Explanation
Want to print digits between 1 at 0th index & last one.
Ip
010101
Op
0
Explanation
0th index 0 & last index 1 op 0
ARx
hi, i've been learning c from kernighan and ritchie c programming, and i'd like to know what graphics API do you recommend to start learning, and if it's too much change from C to C++ to develop game
abbdullah
Plzz anyone....Help me to rectify my logical error in coding
YUSUF
Things depends in which field you want to go
GodXAnubis
YUSUF
😊
Emre Atakuru
ARx
Sabmakovic
ARx
Suka
Disha
#include<stdio.h>
int main()
{
char ch;
int a[50],c=0,n;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
scanf("%c",&a[i]);
if(a[i]=='a''e''i''o''u' && a[i]=='A''E''I''O''U')
c++;
}
printf("Count:%d",c);
return 0;
}
Disha
.whats the problem plz tell me
Prince kumar
Disha
i dont understand
YUSUF
YUSUF
Anonymous
Why do bitwise operators require parentheses when printing with cout?
Like cout << (3 & 6);
Anonymous
Lion
Steven
wow you are here
Anonymous
@SilhouetteInDark @o0_0b
So the program tries to leftshift the cout object by 3 bits and then & the result with 6, right?
My question is, why doesn't it affect cout when used with a single integer? If we use cout << 5, why doesn't it try to leftshift cout by five bits?
Steven
Steven
because ostream provides an overload for operator<<
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Knowing when the compiler generated constructors, destructors and assignment operators are implicitly defined.
Naina
What does copy assignment && move constructor && move assignement mean here ??
Can someone plz give a brief explanation about them and what this table basically denotes ...
ꍏꈤꀸ
Hey,
I have two strings, the first is the data "1 | 2 | 3", the second is the types I expect "int | uint32_t | uint64_t". I need to convert this data to the appropriate types and substitute it as parameters in a function. How to achieve this in C ++ 11?