Anonymous
Anonymous
It's is the name
Dima
Lol
Anonymous
Anonymous
Anonymous
As I consider it or think
Maximus
Callisto Network is hiring Smart-contract security auditors (EOS/ C++) to join our team. Job description on the URL below.
github.com/EthereumCommonwealth/Proposals/issues/64
#Job #Auditors #EOS #C++
Maximus
👆🏻 authorized post by admins
Maximus
Dima any news about the job channel?
klimi
Pure
Hi any stuffs
Dima
What..?
Anonymous
Anonymous
now
rashid
Anonymous
what?
Anonymous
Hey guys, does anyone know how can I guess the output of this exercise?
Anonymous
Just run it I suppose
Anonymous
But if you only have paper then step through it line by line, annotate everything as you go and draw out a trace table
Anonymous
Pick some example inputs and write out each calculation, substituting the vars for the inputs
Anonymous
Anonymous
I don't know how to calculate the output...
Anonymous
Yeah I know... Is there any tutorial for calculate output of these types of programs?
Anonymous
Well what you need to do is go through it on paper
Anonymous
So take each line and take it apart
Anonymous
I have done this but my calculations are differents from PC's calculations... where am I wrong?
Anonymous
Better learn rust
OMG rust ? I would have love it but I guess it will be hard 👀
Fourteen_98
Anonymous
Anonymous
Anonymous
Yes but honestly I can't calculate it, for this reason I'm asking this
Anonymous
Your next step could be conversion to pseudocode.
Fourteen_98
so the values passed in their respective form.
2 1 3
y x z // the main var
a b *c // the var in the func
// now the arithmetric calculation
b = * c + a // b = 3 + 2
b = 5 then,
*c = b - a + 3 //5-2+3
c = 6 then,
a = *c + b -2 // a = 6 + 5 - 2
a = 9 then
print a,b,*c
9 5 6
Fourteen_98
Anonymous
Fourteen_98
anytime
Francisco
I think it's the worst waste of time guessing the output of a program just by reading the source code. Sure that ability can help, but in large codebases (in small ones you just run the program) it's just not productive at all. Good luck with that shitty exercise
Nikolas
It's not about guessing the output, it's about understanding what operations are performed and their meaning
Nikolas
Not saying that particular exercise is worth anything, just saying the exercise are inherently a big simplification and you should not focus on their final output but on how they guide your reasoning
Francisco
And what better way to understand the operations than executing the program and change little things to see what changes
Francisco
It's like guessing if a program compiles or not, which is even more useless
Nikolas
Francisco
If I have to teach programming, I'll just teach the basic concepts and then let them practice by solving programming problems
Nikolas
Try that and tell me how it works out for you. Teaching something seems extremely easy until you try to do it
Nikolas
Not saying that I ever give that exercise or a similar one to a student
Nikolas
Just that I don't see it as a complete waste of time
Nikolas
It's like a much much easier version of http://cppquiz.org
Surely not the best exercise ever, but I still learned a few valuable things from that
Anonymous
How to use class in c++
Nikolas
!report
Ariana
/ban ad
🐰🐾 سمیه
I thought name of the program will be stored on element zero of argv[ ]. but when debugging, I found out that it was stored on element -1 actually. any idea about that?
🐰🐾 سمیه
in this example, the name of the program was "e"
klimi
Noooo
klimi
Mine
Francisco
🐰🐾 سمیه
Francisco
Try printing argv[0]
klimi
🐰🐾 سمیه
Makes no sense at all
yep. it definily is sth to do with debugging . because I was suopposed to pass the argumet at the same time as running the program, like: "-x book". and it read -x but left the second part behind to get it in the middle of running when needed.
🐰🐾 سمیه
I thought name of the program will be stored on element zero of argv[ ]. but when debugging, I found out that it was stored on element -1 actually. any idea about that?
🐰🐾 سمیه
in this example, the name of the program was "e"
Pawan
Hello i m new here is anyone their who can help me to write code
Pawan
Define a structure data type TRAIN_INFO. The type contain Train No.: integer type Train name:
string Departure Time: aggregate type TIME Arrival Time: aggregate type TIME Start station: string End
station: string The structure type Time contains two integer members: hour and minute. Maintain a train
timetable and implement the following operations:
(i) List all the trains (sorted according to train number) that depart from a particular section.
(ii) List all the trains that depart from a particular station at a particular time.
(iii) List all he trains that depart from a particular station within the next one hour of a given time.
(iv) List all the trains between a pair of start station and end station.
Francisco
Francisco
Show us what you've done and ask specific problems in your implementation
Pavel
Are there some multicast functional objects in STL?
to be able to call multiple std::function at once
Anonymous
How to calculate the diagonal in the matrix of numbers?
Francisco
Riccardo
Pavel
Can you explain it with an example?
E.g. I have an event and want different systems to be able to subscribe to this event (like signals and slots in Qt, but using std::function or other STL functionality).
I'm making a custom one as a wrapper around std::vector<std::function<T>>, but it's such a basic functionality (that is implemented in every game engine that I ever used) so I wonder if there is alredy something similar in STL.
Pawan
Francisco
Pavel
🐰🐾 سمیه
expr 1 ( expr 2 == expr 3)
If expr 2 and 3 are not equal, then what's the value of expr 1? Is it necessarily 1 or just non-zero?
Boddu
if expr2 and expr3 are not equal value of expr1 will be zero.if expr2 and expr3 are equal then value if expr1 will be 1.== returns either zero or one only
Dima