Anonymous
If possible
Anonymous
for (i=1; i<=n; i+=2) { if (i==1) printf("%d ", i); else printf("+ %d", i); sum += i; }
Samrat
This is the program i have written
Run the loop 1time less for(i=1;i<n;i=i+2){ printf("%d + ",i); sum=sum+i; } printf("%d",i); sum=sum+i; printf("\nsum=%d\n",sum);
Ashish
I just want to show 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 Not 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 +
for(int i = 1 ; i <=n ; i+=2) { cout<<i; If( i != n ) cout<<" + "; sum += i ; } cout<<"\n\n SUM : "<<sum<<endl;
BinaryByter
#noendl
❤️
Ashish
#noendl
Thanks Man!
Ashish
*newbie here*
Ибраги́м
Thanks Man!
No problemo
Ashish
https://gist.github.com/Ashish0077/78736099ef5482dabfe9aff6e4b37ced Pls have a look at the inc_marks() I'm getting a junk value in output
Anonymous
Thanks guy 😊
Dima
lol
Anonymous
Anonymous
kk
LoneWolf
Guys, is reading too much code from stackexchange, time waste? I find myself trying to figure out stuff/doubts and end up going in rabbit holes on stackexchange, 4 hours later I don't know what I was looking for in the first place. It gives severe headache, when I'm trying to figure out snippets, and without figuring out the first one, I find myself confused on the second, and it keeps going like this. I haven't read past the 50 page of the book I'm following, but keep having this urge to code something new, which uses and does something new(new for me).
klimi
what junk values
Nikhil
Guy'sz ,plz anyone Send the link of basic programming of c,c++ For beginners🙂
John
What about C++ RTFM channel?
Anonymous
Who can find leads ??
klimi
i can find lead
klimi
Who can find leads ??
https://thefiringline.com/forums/showthread.php?t=440612
John
what is that?
Look it up
klimi
no
klimi
Who can find leads ??
isn't it privacy violation?
Ludovic 'Archivist'
Bader
could I share a telegram group here?
Bader
it's a one about electronics, embedded devices etc. just wanted to share with everyone, it's new
Bader
don't want to break any rules though
Mat
C/C++, programming, platforms...
Ashish
iot
Anonymous
Move that to OT please .. ABDULHASIB
BinaryByter
Anonymous
BinaryByter
xD
Anonymous
BinaryByter
Urg my unit tests take long to compile
BinaryByter
any idea on how to make that faster?
BinaryByter
no i will NOT remove all the warning flags
klimi
Use my machine
Bader
it includes pretty much all of the above, haha
Bader
@electronicscorner
BinaryByter
thanks for not allowing me to optimize my code you dumbfuck
BinaryByter
any idea on how I can force the compiler to swallow this?
tyoc213
0.0?
BinaryByter
0.0?
huh?
BinaryByter
No
BinaryByter
the problem is this:
BinaryByter
nn.guess (std::vector<double> (layerSize, 0)); where NeuralNetwork::guess(vectorReferenceType)
BinaryByter
unfortunately we can't make references to temporarys
BinaryByter
wait
BinaryByter
consting out vectorReferenceType makes it work
Bader
that way, you will never change
BinaryByter
wat?
BinaryByter
was this supposed to be a pun? xDD
BinaryByter
lol
klimi
Puuun
Anonymous
Best ide
BinaryByter
BinaryByter
Best ide
ide's are soo 2005
BinaryByter
urrgghh why isn't my typedef recognized outside of the class?
klimi
Best ide
notepad
Anonymous
Compiler ?
BinaryByter
G++
klimi
gcc
BinaryByter
gcc
gcc-g++
klimi
gnu compiler collection
BinaryByter
not gcc
BinaryByter
Since gcc is C only
klimi
nope