GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add: fix builtin input · CrazyProger1/FastPy@a276e9f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • cpp_code/libs
    • builtin.hpp
  • fastpy_build
    • bin
      • main.exe
    • src
      • include
        • builtin.hpp
      • main.cpp
  • main.fpy
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎cpp_code/libs/builtin.hpp‎

Copy file name to clipboardExpand all lines: cpp_code/libs/builtin.hpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ T input(const str &t) {
5353

5454
T inp;
5555

56-
std::cin >> inp;
56+
getline(std::cin, inp);
5757
return inp;
5858
}
Collapse file

‎fastpy_build/bin/main.exe‎

Copy file name to clipboard
-388 Bytes
Binary file not shown.
Collapse file

‎fastpy_build/src/include/builtin.hpp‎

Copy file name to clipboardExpand all lines: fastpy_build/src/include/builtin.hpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ T input(const str &t) {
5353

5454
T inp;
5555

56-
std::cin >> inp;
56+
getline(std::cin, inp);
5757
return inp;
5858
}
Collapse file

‎fastpy_build/src/main.cpp‎

Copy file name to clipboardExpand all lines: fastpy_build/src/main.cpp
+1-16Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,8 @@
1616
int main(){
1717
str d = input<str>("hello>");
1818

19-
log(d);
2019

21-
auto a = 123123;
22-
23-
24-
auto b = 123412;
25-
26-
27-
auto c = a + b;
28-
29-
30-
log(c, true);
31-
32-
if (c - 246535) {
33-
log("hello, world!");
34-
35-
}
20+
log(d);
3621

3722

3823
}
Collapse file

‎main.fpy‎

Copy file name to clipboardExpand all lines: main.fpy
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@
2626
#if true and (1 + 1 * a):
2727
# log('hello')
2828

29-
d: int = input('hello>')
29+
d: str = input('hello>')
3030

31-
a = 123123
32-
b = 123412
3331

34-
c = a + b
35-
log(c, true)
32+
log(d);
3633

37-
if c - 246535:
38-
log('hello, world!')

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.