Skip to content
Advertisement

Tag: c++

Where is the itoa function in Linux?

itoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), is there an equivalent function or do I have to use sprintf(str, “%d”, num)? Answer EDIT: Sorry, I should have remembered that this machine is decidedly non-standard, having plugged in various non-standard libc implementations for academic purposes 😉 As itoa()

IDE’s for C# development on Linux?

What are my options? I tried MonoDevelop over a year ago but it was extremely buggy. Is the latest version a stable development environment? Answer MonoDevelop 2.0 has been released, it now has a decent GUI Debugger, code completion, Intellisense C# 3.0 support (including linq), and a decent GTK# Visual Designer. In short, since the 2.0 release I have started

Handling file paths cross platform

Do any C++ GNU standalone classes exist which handle paths cross platform? My applications build on Windows and LInux. Our configuration files refer to another file in a seperate directory. I’d like to be able to read the path for the other configuration file into a class which would work on both Linux or Windows. Which class would offer the

Embed data in a C++ program

I’ve got a C++ program that uses SQLite. I want to store the SQL queries in a separate file — a plain-text file, not a source code file — but embed that file in the executable file like a resource. (This has to run on Linux, so I can’t store it as an actual resource as far as I know,

Execute program from within a C program

How should I run another program from within my C program? I need to be able to write data into STDIN of the launched program (and maybe read from it’s STDOUT) I am not sure if this is a standard C function. I need the solution that should work under Linux. Answer You want to use popen. It gives you

Advertisement