User Profile

Collapse

Profile Sidebar

Collapse
xiaolim
xiaolim
Last Activity: Aug 20 '08, 05:37 AM
Joined: Jul 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • xiaolim
    replied to palindrome check programe using stack
    in C
    Code:
    int main()
    {
        char input[100], output[100];
        Stack s1;
        Stack s2;
        Stack s3;
        s1.StackInit();
        
        // write your code here
        cout << "This Is A Palindrome Check Programe" << endl;
        cout << "Please Enter Anything For Palindrome Check" << endl;
        fflush(stdin);
        cin.getline(input,
    ...
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to palindrome check programe using stack
    in C
    Code:
    #include <ctype.h>
    #include <stdio.h>
    #include <string.h>
    #include <iostream>
    #define STACKSIZE 80
    #define TRUE 1
    #define FALSE 0
    using namespace std;
    
    class Stack 
    {
       public:
              void StackInit();
              int IsStackEmpty();
              int IsStackFull();
              int StackPush(char c);
    ...
    See more | Go to post

    Leave a comment:


  • xiaolim
    started a topic palindrome check programe using stack
    in C

    palindrome check programe using stack

    hi, sorry to disturb again, currently i have an assignment on stacks and as show in the the title, i need to use stacks to determine palindrome.

    i've done part of my code, here it is:
    Code:
    // Write your name, student number, part-time/full time, degree here
    #include <string>
    #include <iostream>
    #define STACKSIZE 80
    #define TRUE 1
    #define FALSE 0
    using namespace
    ...
    See more | Go to post

  • xiaolim
    replied to counting of all kinds of characters
    in C
    hmm.. then what function should i use?
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to counting of all kinds of characters
    in C
    hmm...i tried again and the code looks like this now:

    Code:
    #include <iostream> 
    #include <cstring>  
    #include <fstream>
    #include <conio.h>
    #include <stdio.h>
    #include <string.h>
    #include <cstdlib>
    
    using namespace std;
    
    
    int main(void)
    {
    
        ifstream fin;
        ofstream fout;
    ...
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to counting of all kinds of characters
    in C
    ya i know, but i having problem coding them as to count other characters as well as i don't know where to start with.
    See more | Go to post

    Leave a comment:


  • xiaolim
    started a topic counting of all kinds of characters
    in C

    counting of all kinds of characters

    i making a simple program to count the different kinds of characters in a text file and then display them out, however i only manage to count the total numbers of characters.

    Code:
    #include <iostream> 
    #include <cstring>  
    #include <fstream>
    #include <conio.h>
    #include<stdio.h>
    #include <string.h>
    
    using namespace std;
    ...
    See more | Go to post

  • xiaolim
    replied to File Open
    in C
    yes, is alright already, thanks for the help from you guys, i figured it out, thanks alot. ^^^
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to File Open
    in C
    oh.i got it already, have another question to ask
    Code:
    #include <iostream> 
    #include <cstring>  
    #include <fstream>
    #include <conio.h>
    
    using namespace std;
    
    
    int main(void)
    {
        int total=0;
        int upper=0;
        int lower=0;
        int digits=0;
        int blanks=0;
        int eosp=0;
        int others=0;
    ...
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to File Open
    in C
    hi, i've tried it. it seems like i still can't understand. could your explain a bit more detail?
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to File Open
    in C
    hmmm. i did learned about it, but i am still very lost, but thanks, i will read up more on it.. i am sorry, very new to this.

    hi arnaudk, i dont really get it, i did learn but i am very new to it. may i have more example ? such as a working simple example will do a great help, thanks. ^^ sorry for the troble
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to File Open
    in C
    nope, i dont want to do it with browser, just want to construct a simple .cpp then run. any idea?
    See more | Go to post

    Leave a comment:


  • xiaolim
    started a topic File Open
    in C

    File Open

    hi there, if i want to prompt user to locate the file and open, how would i do it?
    for example:

    #include <iostream>
    #include <fstream>
    using namespace std;

    int main () {
    ofstream myfile;
    myfile.open ("example.txt") ;
    myfile << "Writing this to a file.\n";
    myfile.close();
    return 0;
    }

    if i want to...
    See more | Go to post

  • xiaolim
    started a topic return to "menu"
    in C

    return to "menu"

    hi

    as shown in the source, i wanted to return to 'choice' in the 'switch' statement so that user can input their choices again after they chose the option.

    Code:
    #include <iostream>
    #include <string>
    #include <fstream>
    #include <conio.h>
    #define MAX_STUDENT 100
    using namespace std;
    
    struct stud
    {
    	char id[8];
    	char name[20];
    ...
    See more | Go to post

  • xiaolim
    replied to code wont run, have error
    in C
    but then i wanted to call back the functions after user had chosen tt option as well as displaying all the record that is in the database, if i cant define, den is there ani other way?
    See more | Go to post

    Leave a comment:


  • xiaolim
    replied to code wont run, have error
    in C
    if i removed the semicolon, the errors become:

    In function `int main()':
    122 a function-definition is not allowed here before '{' token
    122 expected `,' or `;' before '{' token
    See more | Go to post

    Leave a comment:


  • xiaolim
    started a topic code wont run, have error
    in C

    code wont run, have error

    ok, after i put these code n compile n run, gt some error :

    "
    [Linker error] undefined reference to `addstudentMODU LE(int)'
    [Linker error] undefined reference to `displayMODULE( int)'
    ld returned 1 exit status
    "

    here is my source code:
    [code=cpp]
    Full code removed - please read Posting Guidelines
    [/code]
    why is tt few error keep popping up, if i removed...
    See more | Go to post

  • xiaolim
    started a topic Expected value different from actual output
    in C

    Expected value different from actual output

    hi guys, need a little help here, although is, but i m new to C++, please take a look at my code:

    [code=cpp]
    // Program to demonstrate writing to text file
    #include <iostream>
    #include <fstream>
    #include <string>

    using namespace std;

    #define MAX_STUDENTS 100

    struct student
    {
    char ID[30];
    char Name[40];
    char Address[30];...
    See more | Go to post
    Last edited by sicarie; Jul 8 '08, 06:34 PM. Reason: Code tags are [code=cpp] and after your code [/code]. Please use them. They want to be used. They like to be used.
No activity results to display
Show More
Working...