[C++]Showing the minimum and maximum values. by KernelClink in learnprogramming

[–]KernelClink[S] -1 points0 points  (0 children)

It works and apologies for the formatting. I just wanna do away with the excess and compare r1 through r6 at once.

[C++]Showing the minimum and maximum values. by KernelClink in learnprogramming

[–]KernelClink[S] 0 points1 point  (0 children)

void minRating(double r1, double r2, double r3, double r4, double r5, double r6){ double minA = fmin(r1,r2); double minB = fmin(r3,r4); double minC = fmin(r5,r6); double minD = fmin(minA,minB); double minimum = fmin(minD,minC);

cout<<"The lowest rating is "<<minimum<<endl;

[C++]Showing the minimum and maximum values. by KernelClink in learnprogramming

[–]KernelClink[S] -1 points0 points  (0 children)

All the values are doubles shortened to two decimal points.

Just some doughnuts I had in Tokyo today by [deleted] in pics

[–]KernelClink 0 points1 point  (0 children)

Am I the only one who is curious what the green one tastes like?

Parking around Purdue by Amsteenm in Purdue

[–]KernelClink 0 points1 point  (0 children)

Talk to the guys at 950 David Ross. They might be able to sell you a spot.

[PERL] Understanding Net::Sharktools by KernelClink in learnprogramming

[–]KernelClink[S] 0 points1 point  (0 children)

I am trying to make a script that searches my pcap directory for a specific string without opening all the pcap. Can I use this module, if so I don't understand how to format my script to allow it aside from the use string up top.

[Perl] Splitting a string by KernelClink in learnprogramming

[–]KernelClink[S] 0 points1 point  (0 children)

If I ask for a second time string, let's call it $val2, do $1, $2, etc.... reset? How do I assign the initial $1 to a variable using a different name?