BinaryByter
use fibers
whats a fiber? 🙃
Dima
Ghoul
also a thread
BinaryByter
no and no
Dima
it’s not a thread
Dima
it’s a coroutine
Ghoul
🤔 i thought it was like a thread
BinaryByter
its basically threading on one processor
BinaryByter
Calling it a coroutine is like calling a carrot a dildo
BinaryByter
fibers are useful for async io
Dima
lol
BinaryByter
for exampli
Dima
totally negative
Dima
oh wait… async io yeah, but don’t even put blocking io/sockets etc in it
Anonymous
#include <stdio.h> #include <string.h> int main(){ int i, j, numRows, numCol; char tabela[numRows][numCol]; printf("Create a table doing these steps::\n-Number of columns:\n-Number of rows and its value \n\n(Where null == NULL) \n\n"); printf("Number of columns:\n"); scanf("%d", &numCol); printf("Number of rows:\n"); scanf("%d", &numRows); printf("%d rows e %d columns:\n", numRows, numCol); for (i=0;i<numRows+1;i++){ // +1 = coluna criada aki) for (j=0;j<numCol;j++){ printf("Scaneando posicao [%d][%d]:\n", i,j); scanf("%s", tabela[i][j]); } } }
Giorgio
hi guys, i have a problem with MINGW (?) https://imagebin.ca/v/4jNHfD4G2KO7 how do i fix this ?
Anonymous
What is wrong here with my for guys? Thank you
Ghoul
xd please use markdown
Ghoul
code is messy
Anonymous
Sorry
Ghoul
https://sourceforge.net/p/telegram/wiki/markdown_syntax/
Ghoul
reffer to the code part
Dima
please format your code
Dima
or use pastebin
Ghoul
take input first then declare array
🐰🐾 سمیه
int a = 2; char b = a; At the second line, is type of b converted to an int ?
Ghoul
no type casting will not occur it will take as an ASCII value
Ghoul
try a = 65 and print b
🐰🐾 سمیه
char is an int between -127 and 128
As a partner, you just answer the simplest question 😂
🐰🐾 سمیه
Than you both🌷🌷🌷
Ибраги́м
Than you both🌷🌷🌷
I think u want to know the behavior of char when int is assigned to it.
🐰🐾 سمیه
Right
Ибраги́м
char is a different beast
🐰🐾 سمیه
😱
Ибраги́м
Just do a for (char l = 0; l < 128; ++l) std::cout << l << '\t' << (int)l << '\n';
Ибраги́м
Sorry we don't use printf in hare
Ghoul
and not all the characters will support by the compiler😂
Ибраги́м
Who cares about Core guidelines
Ибраги́м
😱
Yes. Now u know not to mess with guy.
Ибраги́м
😐
Iranian detected!
Ибраги́м
start the loop from 33
Write yours sire
Ибраги́м
I'm on Mobile
Ибраги́м
i just follow this
It's actually useful for the most part but different project with different goal.
Ибраги́м
C style cast is fine for my usage above tho
🐰🐾 سمیه
Iranian detected!
error: "an English-speaking Russian with Arabic profile not possible", result : undefined behavior.
Ибраги́м
Sky
http://durgasoft.com/
Sky
this good idea to learn jaba in week???
Sky
india by the way
Anonymous
This ain't no Java (your so called jaba group);
Sky
variety is key mohamud
Sky
oh u not mohamud, u mr japan
Anonymous
How to print division and passed or fail in a marksheet by use of only one if condition?
Anonymous
How to print division and passed or fail in a marksheet by use of only one if condition?
Use logical operators to check if the student has passed all the subjects required
Anonymous
if(maths && physics && chemistry) pass(); else fail();
Anonymous
if(maths && physics && chemistry) pass(); else fail();
Cant use next if for division Sir told to use only one if condition...
Anonymous
Division?
Anonymous
What kind of division
Anonymous
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ int i, j, numLinhas=1, numColunas=3; char tabela[numLinhas][numColunas]; printf("Sua tabela tera uma coluna de %d indices.\n(Onde 1ª coluna = [0][y] e y = linhas).\n\n", numColunas); printf("Numero de linhas: %d\n\n", numLinhas); // Inserindo dados na tabela: for (i=0;i<=numLinhas;i++){ for (j=0;j<numColunas;j++){ printf("Insira o valor da posicao: [%d][%d]\n", i,j); scanf("%s", &tabela[i][j]); } } printf("%s", &tabela[0][0]); }
Anonymous
I want to output a string in table positions
Anonymous
my output is always characters, am I wrong on scanning or printing?
Anonymous
ty
Anonymous
What kind of division
Marksheet division Like first, second, distinction
Anonymous
Oh you meant grades
Anonymous
Or rank
Anonymous
Or rank
Its like if percentage>=75 print division: distinction If percentage>=60 and<75 print first division And if >= 50 and<60 print second division...... . If >=45 and<50 print third division Else fail But the main problem is i have to use if condition once only
Anonymous
Oh you meant grades
Its almost like grades (Our country's old marking system was percentage system nt grade)
Anonymous
I don't know if it's possible with just one if condition, wait for others here.
Okey Before i did with multiple if condition But later sir told to use only one if condition