Forum: Legacy and Other Languages Oct 4th, 2006 |
| Replies: 1 Views: 1,707 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 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 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 |
Forum: C++ Mar 29th, 2005 |
| Replies: 2 Views: 13,009 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 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 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 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 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 |
Forum: C++ Feb 12th, 2005 |
| Replies: 9 Views: 2,216 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 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 |
Forum: Visual Basic 4 / 5 / 6 Jan 19th, 2005 |
| Replies: 15 Views: 6,060 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 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 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 .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 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 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 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 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 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... |