ikeay / cs50 Goto Github PK
View Code? Open in Web Editor NEWstudy cs50
study cs50
Line 17 in 6176a97
If you specify a negative number but -1, the code returns an unexpected result. It should display an error message when a negative value is specified as the key.
Example:
$ ./caeser -10
plaintext: abcdefgABCDEFG
ciphertext:WXYZ[]789:;<=
テンプレートが存在していることに気づいたので、テンプレートに沿っていないコードを修正する。
cs50/pset8/finance/application.py
Lines 105 to 110 in 2e1de93
TODO
comment in 2e1de93. It's been assigned to @ikeay because they committed the code.Line 48 in 6176a97
I am guessing you'd want to check if any non-digit character is contained in the specified string when atoi() returns a zero. I'd suggest to simply check if (str[i] < '0' || str[i] > '9') instead.
It will return -1 if a negative number is specified, but it should be ok since your code doesn't expect any negative number. Also the previous issue that I raised (#2) will be automatically resolved.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.