-
Posts
799 -
Joined
-
Last visited
Reputation Activity
-
alphabeta reacted to Dr3nz4r in legacy to UEFI Issue
oh thought he has a windows installation already and dont wanna loose data..
-
-
-
-
-
-
alphabeta reacted to Camul in prison break
Don't waste your time after the first season. First season is good, second is meh, everything after that is terrible.
-
alphabeta reacted to Kevo05s in r9 285 vs gtx 960
I know it's out of the suggestion, but i'd go with a 280(non-x), it has 3GB and it's a bit cheaper than the 285
-
-
alphabeta got a reaction from mustafaali61 in R'as El ghul
So I played batman arkham origins and watching Arrow series, In the game R'as wanted bruce wayen to be R'as El ghul while in arrow He wanted Oliver Queen So according tot he comics or DC universe in general what's true ?
-
alphabeta reacted to Volbet in R'as El ghul
I know what it's about. I just don't know if Arrow is accepted as being the canon universe.
For some god forsaken reason, people need to identify whether or not a story takes place in the canon or the non-canon universe.
If you want to watch a fun discussion, try asking comic book fans about how many times Batman has beat Superman in canon.
-
-
-
alphabeta reacted to mathijs727 in Help C++
Have a look at Regex (Regular Expressions). Its part of c++ and a really clean way of doing this:
http://www.cplusplus.com/reference/regex/regex_search/
-
alphabeta got a reaction from SIGSEGV in I Need Help With English Assignment
Write one using a programming language and I guarantee that she'll know what you like :lol:
-
alphabeta got a reaction from shujin in ....Did I just short circuit my PC?
I did that once and I saw the spark .. the weird thing that it worked after I unpluged and repluged the power cable again
-
alphabeta got a reaction from railfan in ....Did I just short circuit my PC?
I did that once and I saw the spark .. the weird thing that it worked after I unpluged and repluged the power cable again
-
alphabeta got a reaction from KuramaTheCrimsonFoxa in So my friend wants to make a stopmotion, Bionicle type Z, inspired by Dragon ball
I liked The naruto vs Goku it's really cool
-
alphabeta reacted to JeffreyEagan in How to Format(FIX) RAW HDD
Diskpart is the CMD version of the disk management window.
http://prntscr.com/5yex0b
Here's what you should see. Select the disk that has the same data size as your boot drive.
-
alphabeta got a reaction from Mojo-Jojo in A program to compare these words and find the one with the longest length, and the one with the largest value
Thanks alot
-
alphabeta reacted to Mojo-Jojo in A program to compare these words and find the one with the longest length, and the one with the largest value
You're subtracting '0' which is not equal to 96.
Here's my code which I tested working. I edited the varnames for more clarity too.
#include<iostream>#include<string>using namespace std;int main(){ int iWordCount,iCurrentValue,iHighestValue = 0; string highestValueString,longestString,currentString; cin>>iWordCount; for(int i=0; i<iWordCount; i++) { cin>>currentString; iCurrentValue = 0; for(int j=0;j<currentString.size();j++) { iCurrentValue += currentString[j] - '`'; } if(iCurrentValue>iHighestValue) { highestValueString.assign(currentString); iHighestValue = iCurrentValue; } if(currentString.size()>longestString.size()) { longestString.assign(currentString); } } cout<<highestValueString<<endl<<longestString; return 0;} Edit: Subtracting 'a' returns a value too small by 1. Subtract '`' instead.
-
alphabeta reacted to Mojo-Jojo in A program to compare these words and find the one with the longest length, and the one with the largest value
I had a look at your code and there are a couple problems:
1) sumold is uninitialized. You should always initialize values to 0. Not doing so may lead to whatever being in the allocated memory being used for its value.
2)
sumnew=sumnew+s1[j]; does not add 1 to sumnew if the letter is A. It adds the ASCII table value. If you want to convert them to their respective index value in the alphabet, you'll have to subtract the offset (sumnew=sumnew+s1[j] - 96;) in this case, but remember that Capitals have different offsets. You can either convert all letters to lower case first or do some other conversion.
There's more nitpicky stuff, but these two are the main problems.
-
alphabeta got a reaction from Mojo-Jojo in A program to compare these words and find the one with the longest length, and the one with the largest value
:v I forgot to write the problem .. just a sec
-
alphabeta reacted to dlaws18 in R9 280 ports
Yes it comes with a cpu power cable and 1 gpu connector which is 6 pin with another 2 pins that are slightly detached
-
alphabeta reacted to Jacona in Tablet for ebooks and browsing
The old LG G Pad 8.3 with the Snapdragon 600 would be pretty good, and it has a microSD card slot. (~$230)
A Google Play variant would be even better.