Theophile
To me at least.
Theophile
What I use can influence my thought process
Jay
Anonymous
Whats this
Anonymous
I can't understand
Eu
a lot of managers think that if one programmer do one task in one month, putting two programmers working together will cut that time in half. However, becuase of the nature of programming, a lot of times sync issues and stuff like that make the work even harder with two thinkers, doubling the time :)
Eu
another analogy that I like a lot to explain that issue is "I can read this book in one month. I will tell my friend to read it with me, so we will read the book in a half month!"
Eu
or "I will buy another copy of the book so I can read it in half month!"
Eu
ovbiosly, neither of them works as expected
Jay
I can't understand
You need neo bro 🤣
Jay
Want to win a million dollars? Just solve this puzzle https://www.newsbytesapp.com/timeline/Science/10584/57457/one-million-dollars-for-solving-the-queens-puzzle
Siddhant
Can anyone explain me increment n decrement operator?
Jay
Can anyone explain me increment n decrement operator?
https://www.tutorialspoint.com/cprogramming/c_operators.htm
J
decrement x--, —x
Siddhant
increment x++, ++x
Ik that much. Tell me how it works
Mat
X++ read x, then increment it
Mat
Like X=4 V=X++ Is equals to X=4 V=X X=X+1
Mat
++X do the opposite
Mat
Like X=4 V=++X Is equals to X=4 X=X+1 V=X
Mat
With -- is the same
Jay
Ik that much. Tell me how it works
Increment operator increases the integer value by one.
Jay
Play around with simple program and see how it produces results of ++ & --
J
Thankyou fellas
AjRdj
why gets() gives error when we use it with strucure variable
AjRdj
ok
Top T : Trollface Was Real
.
AjRdj
AjRdj
output
AjRdj
Show the code at fault
Rokas ,here is the code and output
AjRdj
Roxifλsz 🇱🇹
Any particular reason why you are using gets instead of just scanf?
AjRdj
i want multiword string
AjRdj
and scanf does not give support
AjRdj
scanf("%[^\n]s",x) also not working with structure variable
Roxifλsz 🇱🇹
It looks like the comma character makes it crash
Roxifλsz 🇱🇹
I think so anyway
Roxifλsz 🇱🇹
I'm mostly fluent in C++ tbh
Roxifλsz 🇱🇹
No, I mean when u input the number
Roxifλsz 🇱🇹
Roxifλsz 🇱🇹
Try entering just 78
AjRdj
yes it can take input "int" well but is fales with multiword string
AjRdj
😩
Roxifλsz 🇱🇹
Does scanf("%[^\t\n]", x); work for the string?
AjRdj
no
AjRdj
😟
Top T : Trollface Was Real
/* gets example */ #include <stdio.h> int main() { char string [256]; printf ("Insert your full address: "); gets (string); // warning: unsafe (see fgets instead) printf ("Your address is: %s\n",string); return 0; }
AjRdj
no ,issue is working with structure
Majeedoz
Hi Is there group for java beginners?? Such Trainings 🙏🏻
Anonymous
Only C/C++
AjRdj
why gets() gives error when we use it with strucure variable
i got it friends....... fflush(stdin) work for structure to get multiword string
Anonymous
morpheus: morpheus: Guys Anybody help me I want to write the program If I type 1 it as to print 'a' If I type 2 it as to print 'b' Similarly if I type 1234 it as to print 'abcd'
Anonymous
Please help me
Anonymous
Guys
Roxifλsz 🇱🇹
morpheus: morpheus: Guys Anybody help me I want to write the program If I type 1 it as to print 'a' If I type 2 it as to print 'b' Similarly if I type 1234 it as to print 'abcd'
#include <iostream> #include <string> int main() { std::string meme; std::cin >> meme; for(int i = 0 ; i < meme.length() ; i++)meme[i] = meme[i] + 48; std::cout << meme << std::endl; }
correctmaninwrongplace
it would be better to give him the ascii table
correctmaninwrongplace
https://yandex.com/images/search?text=ascii%20code
Roxifλsz 🇱🇹
Yes, that should help him to understand how this works and why it will only work for a limited set of letters
AjRdj
#include<stdio.h> void main() { char name[]={' ','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; int x[100],i=0,k,j; printf("Enter your no:\n"); do { scanf("%d",&x[i]); printf("Enter 27 to EXIT & print message\n"); i++; }while(x[i-1]!=27); printf("\n"); for(j=0;j<i-1;j++) { k=x[j]; printf("%c",name[k]); } } i hope it will help you
deltanicola
sorry if i ask
deltanicola
but
deltanicola
if i put the { } i can set all the variables in a vector?
AjRdj
are you asking about the char name[]={..........}
AjRdj
you want to say like this "abcdefgh........z"
AjRdj
yes this is also possible
AjRdj
i fergot😝😁
AjRdj
sorry
AjRdj
😂👍
deltanicola
cool
deltanicola
thank you!