Skip to content

Commit 631ec32

Browse files
committed
Remove print debugging line from starter code
1 parent dc1246b commit 631ec32

File tree

27 files changed

+51
-139
lines changed

27 files changed

+51
-139
lines changed

compiled_starters/c/app/main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#include <stdio.h>
22

33
int main() {
4-
// You can use print statements as follows for debugging, they'll be visible when running tests
5-
printf("Logs from your program will appear here!\n");
6-
74
// Uncomment this block to pass the first stage
85
// printf("$ ");
96
// fflush(stdout);

compiled_starters/cpp/src/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ int main() {
55
std::cout << std::unitbuf;
66
std::cerr << std::unitbuf;
77

8-
// You can use print statements as follows for debugging, they'll be visible when running tests.
9-
std::cout << "Logs from your program will appear here!\n";
10-
118
// Uncomment this block to pass the first stage
129
// std::cout << "$ ";
1310
//

compiled_starters/go/cmd/myshell/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ package main
22

33
import (
44
"bufio"
5-
"fmt"
5+
// Uncomment this block to pass the first stage
6+
// "fmt"
67
"os"
78
)
89

910
func main() {
10-
// You can use print statements as follows for debugging, they'll be visible when running tests.
11-
fmt.Println("Logs from your program will appear here!")
12-
1311
// Uncomment this block to pass the first stage
1412
// fmt.Fprint(os.Stdout, "$ ")
1513

compiled_starters/java/src/main/java/Main.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
public class Main {
55
public static void main(String[] args) throws Exception {
6-
// You can use print statements as follows for debugging, they'll be visible when running tests.
7-
System.out.println("Logs from your program will appear here!");
8-
96
// Uncomment this block to pass the first stage
107
// System.out.print("$ ");
118
//
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
// Uncomment this block to pass the first stage
22
// const readline = require("readline");
33

4-
// You can use print statements as follows for debugging, they'll be visible when running tests.
5-
console.log("Logs from your program will appear here!");
4+
const rl = readline.createInterface({
5+
input: process.stdin,
6+
output: process.stdout,
7+
});
68

79
// Uncomment this block to pass the first stage
8-
// const rl = readline.createInterface({
9-
// input: process.stdin,
10-
// output: process.stdout,
11-
// });
12-
//
1310
// rl.question("$ ", (answer) => {
1411
// rl.close();
1512
// });

compiled_starters/python/app/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33

44
def main():
5-
# You can use print statements as follows for debugging, they'll be visible when running tests.
6-
print("Logs from your program will appear here!")
7-
85
# Uncomment this block to pass the first stage
96
# sys.stdout.write("$ ")
107
# sys.stdout.flush()

compiled_starters/rust/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
use std::io::{self, Write};
33

44
fn main() {
5-
// You can use print statements as follows for debugging, they'll be visible when running tests.
6-
println!("Logs from your program will appear here!");
7-
85
// Uncomment this block to pass the first stage
96
// print!("$ ");
107
// io::stdout().flush().unwrap();
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
// Uncomment this block to pass the first stage
2-
// import { createInterface } from 'readline';
1+
import { createInterface } from 'readline';
32

4-
// You can use print statements as follows for debugging, they'll be visible when running tests.
5-
console.log("Logs from your program will appear here!");
3+
const rl = createInterface({
4+
input: process.stdin,
5+
output: process.stdout
6+
});
67

78
// Uncomment this block to pass the first stage
8-
// const rl = createInterface({
9-
// input: process.stdin,
10-
// output: process.stdout
11-
// });
12-
//
139
// rl.question('$ ', (answer) => {
1410
// rl.close();
1511
// });

solutions/c/01-oo8/diff/app/main.c.diff

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
@@ -1,15 +1,11 @@
1+
@@ -1,12 +1,11 @@
22
#include <stdio.h>
33

44
int main() {
5-
- // You can use print statements as follows for debugging, they'll be visible when running tests
6-
- printf("Logs from your program will appear here!\n");
7-
-
85
- // Uncomment this block to pass the first stage
96
- // printf("$ ");
107
- // fflush(stdout);
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
@@ -1,16 +1,12 @@
1+
@@ -1,13 +1,12 @@
22
#include <iostream>
33

44
int main() {
55
// Flush after every std::cout / std:cerr
66
std::cout << std::unitbuf;
77
std::cerr << std::unitbuf;
88

9-
- // You can use print statements as follows for debugging, they'll be visible when running tests.
10-
- std::cout << "Logs from your program will appear here!\n";
11-
+ std::cout << "$ ";
12-
139
- // Uncomment this block to pass the first stage
1410
- // std::cout << "$ ";
1511
- //
1612
- // std::string input;
1713
- // std::getline(std::cin, input);
14+
+ std::cout << "$ ";
15+
+
1816
+ std::string input;
1917
+ std::getline(std::cin, input);
2018
}

0 commit comments

Comments
 (0)