Guile
I was wondering if someone can help me with this vain doubt: What name should I use for a C++ class for handling a CMOS SRAM (AS6C1008) chip?
Guile
/rules
Dima
I was wondering if someone can help me with this vain doubt: What name should I use for a C++ class for handling a CMOS SRAM (AS6C1008) chip?
lol one of the hardest question in software development/writing a code is how to name variables/classes
correctmaninwrongplace
Long name, but you understand what it does
Guile
Thanks a lot.
correctmaninwrongplace
or just AS6C1008Controller
correctmaninwrongplace
??
correctmaninwrongplace
Shorter but if u know that its the code for a cmos maybe its ok, only if u are the one maintaining the code
correctmaninwrongplace
You dont want a junior arriving and use it without knowing what it should do
Dima
create a namespace for this type of controllers lol
Dima
namespace cmos::sram::as6c1008
correctmaninwrongplace
namespace cmos::sram::as6c1008
good idea, combine both of my options
Guile
like it. I thanks you both.
Asdew
My opinion is that cmos::sram::as6c1008 feels like it would be a library/driver for many CMOS chips, not just the AS6C1008. I suggest AS6C1008Controller.
Dima
THATUpperCLASSNaming lol
Asdew
To me this looks very weird: TcpListener.
Dima
To me this looks very weird: TcpListener.
but great for me. lol. well different opinions
Asdew
To me this looks very weird: TcpListener.
This is actually why I went back from Rust to C.
Dima
class tcp_listener
Anonymous
https://www.hackerrank.com/challenges/utopian-tree/problem
Anonymous
#include<stdio.h> int main() { int n; //no of test case scanf("%d",&n); int cas[3]; //case value for(int i=0;i<n;i++) { scanf("%d",&cas[i]); } for(int i=0;i<n;i++) { long long int ht=0; //initial height for(int j=0;j<=cas[i];j++) { if(j%2==0) ht = ht+1; else ht = ht*2; } printf("%llu\n",ht); } return 0; }
Anonymous
can anyone tell why am i getting segmentation fault in this program
Dima
lol
Anonymous
dimka I have just started with programming so I think you understand😅😅
Anonymous
Someone pls help...
Anonymous
Anonymous
This is the test case that is failing
Anonymous
Ok sir, thanks for help
Anonymous
Ok sir, thanks for guidance
Anonymous
Wait, whoah, there are variable-length arrays in C?
yes, since C99 I guess. However it is conditional (optional feature), but almost every compiler that I know has implemented that
Asdew
I found it defined in the GCC 9.2.0 source code.
Artöm
https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
Anonymous
why are people taking pictures of their screens instead of sending the source or taking a screenshot
Anonymous
is it a meme or something?
manas
is it a meme or something?
You'd think that'd be the case, but it's probably not. Sending a screenshot or the code in paste bin or something is too much work for some, I guess
Anonymous
/warn Nikunj pming
Сарвар
hi
Anonymous
C teaching speaking
Anonymous
Help
Сарвар
I did not understand the code can help me
Сарвар
I did not understand the code can help me
#include<stdio.h> #include<math.h> float S(float k, float x) { float s; s= (sin(k * x) / k); return s; } float Y(float x) { float y; y = x / 2; return y; }
Anonymous
Starting to c teaching
Artöm
Whats the problem?
Artöm
It does some simple equations
Ashur
Hello guys,does anyone help me ?
Artöm
Maybe
Ashur
İ can not do it(
Artöm
Fill the matrix first
Asdew
I've done that same task and it has a simple algorithm you can implement to calculate the number at a specific coordinate.
Ashur
Okay, i am new in the programming, but i ll try, thanks guys🙃
Anonymous
Hello
Anonymous
I'm new to c++ can anyone suggest me a project based tutorials?
Ludovic 'Archivist'
I'm new to c++ can anyone suggest me a project based tutorials?
A class to generate a multiframe gif of 512x512, receiving its color table on construction, then getting sent frames as std::array<std::array<uint8_t, 512>, 512> The class will then be used to generate the rasterized render of a cube in C++ only. At first without lighting and later with lighting from the left side.
Anonymous
I am new to c++ bro
Ludovic 'Archivist'
I am new to c++ bro
Then don't ask for a project based task to learn if you are not ready to spend a month on it
Ludovic 'Archivist'
Of course you are new, if you were not I'd have given you a task that required external libraries instead of one that requires you to read Wikipedia pages
Anonymous
🤔
Ludovic 'Archivist'
This is doable by a group of 2 students working with PBL methodologies in 10 days
Anonymous
Interesting
Anonymous
You do c++?
Ludovic 'Archivist'
So this is a question and you want me to try it out
That is a full learning project, doable in 10 days by 2 students and likely less than 30 days by a single one
Ludovic 'Archivist'
Anonymous
Sounds good
Anonymous
I'll get on it, if I have any issues I'll ask you
Anonymous
Thanks boss
Ludovic 'Archivist'
"boss" xD
Anonymous
😁