Tushar Goel
I tried using Codeblock
still didnt work
Anonymous
try punching your keyboard when it compiles and runs...
Tushar Goel
Guys please help
Mar!o
Send a screenshot pls but not with a camera
Dima
Of the code?
no, your keyboard
Tushar Goel
Mar!o
Tushar Goel
😂😂
Programing
I am excited for something new experience
Mar!o
Bruh
Dima
bruh
Mar!o
Tushar Goel
What ?
Tushar Goel
What happened?
Anonymous
The compiler doesnt compile gets statement in my program
gets is deprecated in C99, and is removed in later standards. use fgets: fgets(c, sizeof(c), stdin);
Mar!o
You have no build file and project 🤣
Tushar Goel
Listen
Tushar Goel
include <string.h> int main() { int i = 4; double d = 4.0; char s[] = "HackerRank "; int a; double b; char c [20]; gets(c); scanf("%d",&a); scanf("%lf",&b); printf("%d\n",a+i); printf("%0.1lf\n",b+d); strcat(s,c); puts(s); return 0; }
Tushar Goel
it worked
Tushar Goel
i just changed the position of gets(s)
Mar!o
🤨
Abhisek
Thank you
Anonymous
Thank you
Tushar Goel
Can you please write the code
Aris
Hello guys...I just start to learn C++ by myself for the last 1 month
Aris
I have a question and I'm not sure what i did wrong with my coding 😔
Tushar Goel
#include <string.h> #include<stdlib.h> int main() { int i = 4; double d = 4.0; char s[] = "HackerRank "; int a; double b; scanf("%d",&a); scanf("%lf",&b); char c [20]; fgets(c,sizeof(20),stdin); printf("%d\n",a+i); printf("%0.1lf\n",b+d); strcat(s,c); puts(s); return 0; }
Aris
Its for no 1a and 1b.
Aris
Aris
Its for repetitive control structure
Aris
The loop
Tushar Goel
Ya now it worked
Tushar Goel
can you please explain why it worked
James🤍
A program that asks the user to type 10 integers of an array. The program must compute and write how many integers are less than or equal tu. . Anyone with an idea
Aris
It ask me to display number 1 to 20 then display even number from 2 to 20
Tushar Goel
Ya I checked it
Tushar Goel
Ya I checked it
but like it is still unclear
James🤍
The line code for the computing function
Tushar Goel
What is new line character
Aris
The output i get always end with 22 while the question only limit it to 20
Aris
Ok i try first
Tushar Goel
Okay so if scanf ends the current line and moves to start of next line then gets should take and store the content of next line
Tushar Goel
Can I share a picture?
Tushar Goel
Screenshot
Tushar Goel
Its that pic of question
Tushar Goel
Okay listen
Tushar Goel
i will type
Dima
Bruh.
Tushar Goel
in the problem firstly the user input a integer, then a double and then string value . all of them in a new line
Tushar Goel
Tushar Goel
Now It worked in codeblocks but not in hackerrank😂
Dima
forget about hackerrank
Dima
useless one
Anonymous
Yes, because arrays start at zero.
kdkdkddddddkddd
Hi guys
kdkdkddddddkddd
I am student, I am learning c++ and I have some difficulties. If you know c++ well, please type me to private chat. I have some programs that I should write, if you help it will be great. Thank you
kdkdkddddddkddd
why private chat? are you selling drugs?
No, i want to buy program. I give to the person home assignment and he give me answer
klimi
oh okay i see
klimi
@Neko_cpp watch this
Dima
at least he wants to buy it
kdkdkddddddkddd
Or it is not possible?
Dima
Or it is not possible?
maybe someone will help you
kdkdkddddddkddd
Webmoney?
MᏫᎻᎯᎷᎷᎬᎠ
^-^
Anonymous
Hey guys if I have 2array and I want to find the longest sequence of character horizontal and the start index for the longest sequence ?!
Anonymous
How I could update the index for the longest sequence
Anonymous
Yes
Anonymous
The same character
Anonymous
Horizontal or vertical and diagonal (right up and down )
Anonymous
I write the code but I couldn't get the start index for the longest sequences
MᏫᎻᎯᎷᎷᎬᎠ
Btw Where is Maxi?🤔
Dima
Btw Where is Maxi?🤔
he’s banned for annoyance