Ilya
why i can't run with scanf_s?
Replace it with scanf()
Nameful
Or expected<T, E>
Pavel
It's NOT like in Java!
And what is different?
Pavel
Except for habits
01000001011011010100000101101110
https://pastebin.com/HRXE8aPV what should i learn to understand the auto Solve = [&] (auto ..) part i dont know that is happening in that "Solve" part, what "Self" is.. i have never seen it before and thus im unable to understand the code.. about how Solve is calling itself with Solve as parameter( line 40) i did study about what iota() does..but still unable to understand the code due to these advance things. thank you
LOGESH C
Excuse mee pls send basics material for c programming
Tobias🐾🚲
NEVER code your own.
01000001011011010100000101101110
01000001011011010100000101101110
Ilya
Thank you.😇
Don't say it twice
Anonymous
don't look back in anger
___
#learn
Hasan
Does anyone use Python?
Hasan
I have a few questions.
Anonymous
Does anyone use Python?
You can choose: a warn or a ban?
Francisco
I have a few questions.
Look for a Python group
LOGESH C
Soo what ???
Khan
#include <stdio.h> #define SIZE4 //array's size void main(){ float score[3]; int i; //loops to input scores to array printf("Masukan %d nilai float: ",score); for(i=0;i<=(score-1);i=i+1) scanf("%f",&score[i]); //loops to show scores from array printf("The scores in reverse order \n"); for(i=(score-1);i>=0;i=i-1) printf("%.2f\t",score[i]); printf("\n"); } i have a problem here that i can't show the result from reverse score which i have inputted
Hasan
Warn
Khan
what should i do?
Anonymous
Which is the best book to study cpp
Anonymous
For beginners
Ilya
Which is the best book to study cpp
Prata (or Deitel Deitel if you are an absolute beginner in IT, too)
Ilya
What did you fix? The prog is complete disaster.
Khan
*i already fix it
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Hello
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
someone uses BSPonMPI here?
Ilya
Hello
#include <cstdio>
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Someone is working on parallel algorithms here?
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
#include <cstdio>
Okay ! May be I'll change it...😬
infi ptr
https://www.hackerrank.com/challenges/variable-sized-arrays/problem can anyone explain why my code is getting fail for 2d array of size of order 10^6
infi ptr
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long int n, q,i=0,k,arri,eli; long long int arr[1000][1000]; cin>>n>>q; while(n--) { long long int size; cin>>size; for(k=0;k<size;k++) cin>>arr[i][k]; i++; } while(q--) {cin>>arri>>eli; cout<<arr[arri][eli]; cout<<endl; } return 0; } this is my code
frakw
this is a program convert decimal to hexadecimal can someone explain the code in itohex? i'm a new hand in c thanks for the answer.
frakw
frakw
#include <stdio.h> char *itohex(unsigned int n); int main(void) { int a; printf("input:"); scanf("%d",&a); printf("0x%s",itohex(a)); return 0; } char *itohex(unsigned int n) { static char hexstr[sizeof(n)*2+1]; char hexdigit[]="0123456789ABCDEF"; char *str=hexstr+sizeof(n)*2; *str = 0; do { *(--str)=hexdigit[n&0xf]; n>>=4; } while(n); return str; }
Anonymous
I have a question please
Anonymous
How could I use loops to type 500 number
Anonymous
Anonymous
And after typing them print the numbers between 30-40 which were scanned
Anonymous
I mean to scan a 500 number using loop and then after scanning them type all the numbers between 20 and 40
Anonymous
In c not cpp
Anonymous
Any help please
MilkBeforeCereal
try first
MilkBeforeCereal
it can't get easier than that although 500 numbers is retarded af
Anonymous
Please help me guys
Anonymous
I am new to programming and i need help
MilkBeforeCereal
I am new to programming and i need help
you are asking to be babysat and not for help
MilkBeforeCereal
try and then ask where you're stuck
Anonymous
I am stuck
MilkBeforeCereal
you're not going to learn anything unless you try yourself
Ilya
Any help please
This is explained in the kindergarten, read any C book and you will know
Anonymous
Thanks for help
MilkBeforeCereal
learn-c.org is more than enough for starting and has plenty of advanced stuff too
Ilya
I am new to programming and i need help
I can't read books instead of you
Anonymous
I told you i tried
Anonymous
But what i did was not what i want