Showing results 1 to 22 of 22
Search took 0.01 seconds.
Posts Made By: jimFan
Forum: Legacy and Other Languages Oct 4th, 2006
Replies: 1
Views: 1,707
Posted By jimFan
Re: Scheme Newbie

;L is is the list of animals and countries
(define (animalList L)
(cond ((null? L) '())

;caar L gets the first animal then the recursive
;call gets the rest of the animals
...
Forum: Legacy and Other Languages Oct 4th, 2006
Replies: 4
Views: 2,022
Posted By jimFan
Re: LISP newbie

Hey man,

Seems like you have declared your function in this way:

(defun my-add (n) (...))

instead of this:

(defun my-add (m n) (...))
Forum: Perl Jan 30th, 2006
Replies: 5
Views: 1,926
Posted By jimFan
Re: newbie woes

Hi tris,

Use the following command to check if your hello.cgi is executable:

ls -l hello.cgi

Note the following position of the output:

-rw-rw-rwx 1 user group 564 Jan 29 00:02...
Forum: C++ Mar 29th, 2005
Replies: 2
Views: 13,009
Posted By jimFan
Re: while(true) loop + getline() = infinite loop??

Hi Dave,

Oh sorry for my grammer. I actually mean input from:

$a.out < inputFile

Here is what the content of inputFile maybe:

ls
changecc COMP271 5
Forum: C++ Mar 29th, 2005
Replies: 2
Views: 13,009
Posted By jimFan
Solution while(true) loop + getline() = infinite loop??

Dear all,

Forgive me for posting two threads for the same problem. I was not showing my problem clearly enough in the previous one. Thank Narue for answering that anyway. Now I do it again...
Forum: C++ Mar 22nd, 2005
Replies: 3
Views: 2,267
Posted By jimFan
Re: getline() error when cin is redirected

Thanks for that Narue.

Since I have placed several rows of words in the inFile, although the loop goes infinitely it should be able to print the file's content. But this is not the case. It just...
Forum: C++ Mar 22nd, 2005
Replies: 3
Views: 2,267
Posted By jimFan
getline() error when cin is redirected

Dear all,

I experienced an unexpected error when using getline() to get input from a file like this:

a.out < inputFile

Part of the code is shown below


........
Forum: C++ Feb 13th, 2005
Replies: 7
Views: 5,389
Posted By jimFan
Re: comparing strings

When I run your programme using Dev C++ at the line

if (name == "silver") {

I add-watch to the comparison

name == "silver"

I get
Forum: C++ Feb 13th, 2005
Replies: 9
Views: 2,216
Posted By jimFan
Solution Re: String operatios

//############ my method ############

Say string1 = "corn", string2 = "chound"

set TargetChar = string1[0]
//so that TargetChar is 'c'

search TargetChar in string2

if found: get position of...
Forum: C++ Feb 12th, 2005
Replies: 9
Views: 2,216
Posted By jimFan
Re: String operatios

Ooops I miss that you wanna solve the problem using C++
Forum: C++ Feb 12th, 2005
Replies: 9
Views: 2,216
Posted By jimFan
Re: String operatios

Hi Chound,

I would like to help out but could you clarify your question a bit and post what you've got so far?

Do you mean C string or C++ string?

If you have 2 strings and you "remove all the...
Forum: C++ Jan 21st, 2005
Replies: 11
Views: 3,145
Posted By jimFan
Solution Re: Dev bloodshed question. ������

Narue you even know Japanese (Nihonjin) better than me (I am an Asian).

I have to admit that my English grammar is not that good............. So what? English is not 'the tongue of my mum' (mother...
Forum: C++ Jan 19th, 2005
Replies: 11
Views: 3,145
Posted By jimFan
Re: Dev bloodshed question. ������

Hi xxraveteddyxx,

Hey I am just interested by the Japanese characters you used. Are you native Japanese (or 'Nihongo' if you feel more comfortable with)?


Jim
Forum: Visual Basic 4 / 5 / 6 Jan 19th, 2005
Replies: 15
Views: 6,060
Posted By jimFan
Re: .exe cannot be run on particular machines

Hi,

The name of that file should be vbrun60.exe instead of vb60run.exe. I've made a mistake in the previous post.

So Real-tiner, I've extracted the vbrun60 and discover that it contains several...
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2005
Replies: 15
Views: 6,060
Posted By jimFan
Re: .exe cannot be run on particular machines

Thank you for your caring mnemtsas. I wear a blue one today :mrgreen:

Just kidding ~

I know it ease everybody if I post the error number and message in here but firstly, it gives no error number...
Forum: Visual Basic 4 / 5 / 6 Jan 13th, 2005
Replies: 15
Views: 6,060
Posted By jimFan
Re: .exe cannot be run on particular machines

Real-tiner,

Thank you so much for your information.

First, I did not create a helper file for the programme. So it should not be problem of helper files. But I would be careful on this matter in...
Forum: Visual Basic 4 / 5 / 6 Jan 12th, 2005
Replies: 15
Views: 6,060
Posted By jimFan
.exe cannot be run on particular machines

Hi all,

I tried Visual Basic 6.0 recently and I used it to generate a programme for simple experimental data analysis. The programme runs fine on most machines EXCEPT those in my laboratory. But it...
Forum: C++ Jan 7th, 2005
Replies: 7
Views: 20,555
Posted By jimFan
Re: Manipulate Excel file using C++??

Thank you for all of your input.

Just to make the problem clearer:

In fact I have only learned C++ for one semester only but recently my professor asked me to write a programme like this. Since...
Forum: C++ Jan 6th, 2005
Replies: 7
Views: 20,555
Posted By jimFan
Manipulate Excel file using C++??

Dear all,

Is it ever possible to write a programme in C++ which enables me to:

1) Read the data in spreadsheet of MS-Excel

2) generate another Excel file as output ?

Also, are there any standard...
Forum: C++ Jan 4th, 2005
Replies: 19
Views: 5,044
Posted By jimFan
Re: Purpose of Pointers?

Let me quote the lecture notes from my school:


int main(void)
{
cout << “How many students? “;
cin >> n;

//Declare an array to hold students' information
int *grades =...
Forum: C++ Jan 4th, 2005
Replies: 19
Views: 5,044
Posted By jimFan
Help Re: Purpose of Pointers?

Sorry the version using new operator should look like this:

<code>

int n;
int* ptr = new int[n]; //the array ptr has interger type but size not defined

cin >> n; //ask user to enter size of array,...
Forum: C++ Jan 4th, 2005
Replies: 19
Views: 5,044
Posted By jimFan
Re: Purpose of Pointers?

I got the similar problem with you, Geek-Master. What kaiser<lucy> said is still a little bit abstract for me.

So Geek-Master have you tried the dynamic memory allocation using new and delete...
Showing results 1 to 22 of 22

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:07 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC