C++ program through Konsole

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers C++ program through Konsole
# 1  
Old 11-30-2017
Question C++ program through Konsole

Hey all I am new to Linux/Unix and even newer to this forum. I am currently in college and am finishing intro to computer programming (C++) and Intro to operating systems. We only touched on Unix for a couple weeks but had an old laptop lying around so I downloaded linux mint onto it and figured id explore and try and educate myself more. For my programming class for our final project we had to make a very basic game of tic-tac-toe and i was curious if there was a way I could upload that through the Konsole to play. ( I also wouldn't mind just being able to load it through the GUI as right now the only way i know how to make it work is to load it through visual studios on my windows 10 laptop.) Any input would be greatly appreciated! Feel free to share other topics that may be fun or interesting to someone that is new to this OS in general.
SmilieThanks in advance!!Smilie
# 2  
Old 12-01-2017
Quote:
Originally Posted by Texhilarate
For my programming class for our final project we had to make a very basic game of tic-tac-toe and i was curious if there was a way I could upload that through the Konsole to play.
What does "upload through konsole" mean? Are you having trouble compiling a cpp file, or trouble creating one in the first place?

Assuming your program is written portably, and your computer has gcc installed, you can compile a cpp file with
Code:
g++ filename.cpp -o executablefilename

and run it with
Code:
./executablefilename

If your program was written in a Microsoft IDE, it's extremely unlikely to be portable even if written portably, but might still work with a little adaptation.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to launch a KDE Konsole window with multiple tabs

Gents, I found this script to to launch a KDE Konsole window with multiple tabs.. #!/bin/bash # # Create my standard konsole windows. if ]; then profile=Shell fi sessions=( sh1 $profile 'clear; bash' sh1 $profile 'clear; bash' su1 $profile 'clear; su'... (1 Reply)
Discussion started by: jiam912
1 Replies

2. UNIX and Linux Applications

Groups are disappearing on opening of new konsole/terminal

Hi when I open a new KDE/terminal all my project groups are disappearing. help is much appreciated. Thanks Sujay (2 Replies)
Discussion started by: sujaybatni
2 Replies

3. Shell Programming and Scripting

Launch a text program inside a konsole at startup

Hi ULFers, I am trying to setup a (very) simple startup script on a centos 6.4 computer and it kind of failed.... Here are the details : As said just above the computer setup is running a CentOS 6.4 x64, on this computer a vncserver is automatically started (by a chkconfig vncserver on), i... (1 Reply)
Discussion started by: pierpier
1 Replies

4. Shell Programming and Scripting

Help with changing font size in konsole

I created a very very basic script that opens multiple konsole terminals when I run the script which essentially sshs into a jump box into the end device and tails some logs etc etc. A few of the konsoles run scripts where the default font size is too big and the lines are cut off. Which I would... (3 Replies)
Discussion started by: NiCe
3 Replies

5. Shell Programming and Scripting

Using pipe with Konsole -e

Hello, I am attempting to create a script using kDE and bash. I need to be able ssh into a jump box and then the server then tail the log files then grep for. I have everything working cept the Grep for when using a pipe it does not run it on the server, I have removed the pipe enclosed... (0 Replies)
Discussion started by: NiCe
0 Replies

6. UNIX Desktop Questions & Answers

KDE Konsole crashes (solved)

Hello The KDE konsole crashed after I changed the font size to 64. And It crashes every time when started. How can I get it back? Thanks. ---------- Post updated at 08:23 AM ---------- Previous update was at 07:48 AM ---------- solved, I finally find the config file called consolerc. (0 Replies)
Discussion started by: vic005
0 Replies

7. Shell Programming and Scripting

How to run a command in a new Konsole

I'd like to know how to open a new konsole window and execute a command though it automaticaly. like is there a way to pipe a command into a newly opened window?? something like open new window command-> newly opened window execute command (2 Replies)
Discussion started by: beatzz
2 Replies

8. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

9. Linux

web browser from konsole

hi experts, i'm running red hat linux, consider there's no visual interface, no X server... actually there is one but it's written in Python! what i need is to intall a decent web browser on it! is it possible? and i only have abt 100 MBs of free disk space... (1 Reply)
Discussion started by: elzalem
1 Replies

10. UNIX for Dummies Questions & Answers

Color konsole in FBSD 4.6

FBSD 4.6 How do I colorize my konsole to see directories etc. Am able to get color in the shell with ls -GF in my .bashrc. But color does not show in KDE3 Konsole (Xwindows) for some reason.FBSD 4.6 (1 Reply)
Discussion started by: lancest
1 Replies
Login or Register to Ask a Question