Message from C, C++ discussions

December 2019

— Purge complete.

— 

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
FILE *f,*c;
char ch,cr[200],a;
int i=0,j=0;
system("cd");

c=fopen( "math.txt","r");
f=fopen("mac.txt","w");

while(j!=4)
{
i=0;
while((ch=fgetc(c))!='\n')
{

i++;


}



if(i>20)
{


while((ch=fgetc(c))!='\n')
fputc(ch,f);

}

j++;

}

fclose(c);
fclose(f);
}

— Now see

— It shows infite loop

— Rather being copied

— No \n in files maybe

— Hi, me need get uint16_t from uint32_t, what method is correctly? static cast or var & 0xFFFF ?
example

uint32_t wtf = ((100 << 16) | 55);
std::cout << static_cast<uint16_t>(wtf);
std::cout << (wtf & 0xFFFF);

Message permanent page

— I think both correct

— C++2B

— template for? Why not for constexpr?😂

— Maybe it's some kind of iteration over variadics parameters!!!🤷🏻‍♂

— User Harsh has 1/2 warnings; be careful!
The latest warn was because:
spam