10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade.
I have:
if ( $response =~ m/^/ ) {
$user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
2. Shell Programming and Scripting
Here's the assignment. I'll bold the parts that are rough for me. Unfortunately, that's quite a bit lol. The syntax is, of course, where my issues lie, for the most part. I don't have a lot of programming experience at all :/. I'd post what I've already done, but I'm so lost I really don't know... (1 Reply)
Discussion started by: twk101
1 Replies
3. Homework & Coursework Questions
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies
4. Shell Programming and Scripting
I am trying to understand a program in a book and this program suppose to call other programs which are in the same folder, the other programs are called 'lu' and 'add' but for some reason when it gets to the last line of each case to call these programs there is an error message saying
./rolo:... (2 Replies)
Discussion started by: bartsimpsong
2 Replies
5. Programming
I wrote a simple program that generates a random word 10,000,000 times.
I wrote it in python, then in C++ and compared the two completion times. The python script was faster! Is that normal? Why would the python script be faster? I was under the impression that C++ was faster. What are some of... (2 Replies)
Discussion started by: cbreiny
2 Replies
6. UNIX for Dummies Questions & Answers
Hello Geniuses of the unix world. please help, stupid chemist. I have the following script that I need to create a file. Doesnt make sense unless i explain this way: I need to create a file called summary.in I would like all these lines to be inserted however in the command line I would like the... (1 Reply)
Discussion started by: gingburg
1 Replies
7. UNIX for Dummies Questions & Answers
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
8. Programming
Hi,
I wanted to know if i can write a program using switches and signals, etc to trace execution of other unix program which calls c program internally.
If yes how? If not with signals and switches then are there any other methods apart from debugging with gdb/dbx. (3 Replies)
Discussion started by: jiten_hegde
3 Replies
9. Programming
Hi my friends
I am beginner unix programmer I have written small c++ program in text editor and I have change it mode to 555 to make it executable file to use it in unix O.P.
#include<iostream.h>
main()
{
cout<<"Hello World";
}
but some syntax erroe came for <<
can any one help... (5 Replies)
Discussion started by: bintaleb
5 Replies
10. Shell Programming and Scripting
Write a shell script (to run on the Bourne shell) that runs an infinite loop to check every 5 seconds to report on who logs into and who logs out of a UNIX system. Without loss of practical significance of this little utility, we can ignore multiple logins from the same user during a time period of... (1 Reply)
Discussion started by: lydragon
1 Replies
shevek::rostring(3) Library Functions Manual shevek::rostring(3)
NAME
shevek::rostring -
shevek::rostring is identical to shevek::ostring, but it uses std::string instead of Glib::ustring.
SYNOPSIS
#include <iostring.hh>
Public Member Functions
operator std::string () const
Use the result as a string.
std::string operator+ (std::string const &that) const
Use the result as a string.
rostring (std::string const &fmt)
Create a string with a constant format.
template<typename T1 > rostring (std::string const &fmt, T1 const &a1)
Create a string with one argument.
template<typename T1 , typename T2 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2)
Create a string with two arguments.
template<typename T1 , typename T2 , typename T3 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3)
Create a string with three arguments.
template<typename T1 , typename T2 , typename T3 , typename T4 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const
&a3, T4 const &a4)
Create a string with four arguments.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > rostring (std::string const &fmt, T1 const &a1, T2 const
&a2, T3 const &a3, T4 const &a4, T5 const &a5)
Create a string with five arguments.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > rostring (std::string const &fmt, T1 const
&a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6)
Create a string with six arguments.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > rostring (std::string const
&fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7)
Create a string with seven arguments.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > rostring
(std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7, T8 const
&a8)
Create a string with eight arguments.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 >
rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7, T8
const &a8, T9 const &a9)
Create a string with nine arguments.
Friends
std::ostream & operator<< (std::ostream &s, rostring const &o)
Send the result to an ostream.
Detailed Description
shevek::rostring is identical to shevek::ostring, but it uses std::string instead of Glib::ustring.
Author
Generated automatically by Doxygen for libshevek from the source code.
libshevek Fri May 11 2012 shevek::rostring(3)