No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Biology Student
- Interests
- Computer programming, squash, table tennis, badminton
11 Posted Topics
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 [CODE] ........ while (true) { cout << "Enter a command: "; getline(cin, input); cout << input << endl; } ......... [/CODE] The … | |
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 here: [CODE] #include <iostream> #include <string> using namespace std; int main(void) { string inputStr; while … | |
![]() | Re: 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 [I]new[/I] and [I]delete[/I] operator? They could only deal with pointers. Now my own problem comes. Books say we can use [I]new[/I] … |
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 library could do the job? One of my friend said using Visual Basic … | |
Re: Hey man, Seems like you have declared your function in this way: (defun my-add (n) (...)) instead of this: (defun my-add (m n) (...)) Hope this could help. Jim | |
Re: [CODE] ;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 (cons ((caar(L)) (animalList(cdr(L))))) ; <= LOOK AT HERE ) ) [/CODE] You have missed out the "else" … | |
Re: [QUOTE=tristan17]hi, thanks for your reply, but how do i check the permission setting of the file? rgds, tris[/QUOTE] 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 hello.cgi … | |
Re: 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 characters present in both the 2 strings", the no. … | |
Re: When I run your programme using Dev C++ at the line [CODE]if (name == "silver") {[/CODE] I add-watch to the comparison [CODE]name == "silver"[/CODE] I get [CODE]name == {115's', 105'i', 108'l', 118'v', 101'e', 114'r', 0'\0'}[/CODE] name occurs like C string and is delimited by '\0'. So name is "silver\0" but … | |
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 must run in lab or otherwise the programme I write is rubbish. What so strange … | |
Re: 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 |
The End.