Search Results

Search: Posts Made By: Darklight
Forum: Programming 04-22-2008
19,156
Posted By Darklight
C++ how to isdigit() a negative number?
hi people,

I have a function which I am passing a stream which is basically postfix notation


if(isdigit(in.peek()))
{
in >> number;
nums.push(number);
}
else if...
4,179
Posted By Darklight
egrep help
Hi there,

Im having some issues using egrep, I have a text file containing server logs:



the user imputs 2 arguments, which are error checked and made into $searchMonth $searchYear...
2,516
Posted By Darklight
Thanks for that, it was the comments that were...
Thanks for that, it was the comments that were the problem.

Thanks also for the advice, im new to shell ill take all i can get.
2,516
Posted By Darklight
hmmm its not working for me... ill include...
hmmm its not working for me...

ill include all the code, perhaps its something else I have done..


# ! /usr/xpg4/bin/sh
# cp2377 lab 4
# Author: Michael Abbott
# $Id:
#
...
2,516
Posted By Darklight
hmm ok maybe ill try restarting cygwin grats...
hmm ok maybe ill try restarting cygwin

grats on 1000 posts :)
2,516
Posted By Darklight
Problem with my case statements
Hi there,

Im having some problems with this function, I pass two arguments to the function $1 $2 (Arguments are month and date inputted by the user)

for some reason the case always fails......
4,623
Posted By Darklight
worked a treat thankyou
worked a treat thankyou
4,623
Posted By Darklight
Is there a command to measure compile speed?
Hello

Ive written 2 programs in shell and I need to compare their speed (Compile) against one another.

what methods could I go about doing this?

Is there a feature in shell do accommodate...
6,894
Posted By Darklight
works perfect thankyou
works perfect thankyou
6,894
Posted By Darklight
hey thanks for the tip, ill try that method out. ...
hey thanks for the tip, ill try that method out.

Yeah I initially used $1 and $2 just to simplify it, being new to shell I didnt realise hte difference it made.

If still intrigued to the method...
6,894
Posted By Darklight
firstly, thankyou for your reply. I should...
firstly, thankyou for your reply.

I should have included some of my code for you to understand what Im on about..

if I use your method, and I have no arguments it skips the first if statement....
6,894
Posted By Darklight
if statement - how can I do 2 arguments?
I am new to shell, and I am trying to do a if statement like the following:

if [ -z $1 -a -z $2]; then

basically it works fine if both arguments of the if are met, however the next elif is:
...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 03:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy