User Profile

Collapse

Profile Sidebar

Collapse
crystal2005
crystal2005
Last Activity: Apr 3 '22, 02:01 PM
Joined: Apr 26 '07
Location: Australia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • crystal2005
    started a topic DHCP deployment problem

    DHCP deployment problem

    Hi there,

    I decided to use DHCP in Windows Server 2008 to enable notebook users to move from one subnet to another without having to reconfigure IP address manually. However, i've got some of IP address scopes are being depleted. Is there anyway to resolve the problem without altering network subnetting??

    Thank you.
    See more | Go to post

  • Hey, thanks a lot mate.... it did work ^_^
    See more | Go to post

    Leave a comment:


  • Retrieve value from the the URL format string

    Hi all,

    As the title, how do i retrieve a value from the URL format string after i pass it to the other page.

    E.g. example in my case is

    Say in admin.aspx i have a link to questions.aspx. I have my URL format string question.aspx?i d=1. The question is how do i retrieve the id value, i'd like to use that value to execute a stored procedure query statement, so that the moment question.aspx page is loaded...
    See more | Go to post

  • crystal2005
    replied to ASP.net and SQL server 2008 help....
    Thanks a lot for helping me, i have been in desperate mode for the past few weeks. Sorry for any misuse of language... I hope no one get offended :(
    See more | Go to post

    Leave a comment:


  • crystal2005
    started a topic ASP.net and SQL server 2008 help....

    ASP.net and SQL server 2008 help....

    Hi, i'm new to asp.net. So forgive me if i'm asking silly question.
    My task is to create an admin login form, in which i have stucked for many days thinking how to do it. Could someone tell me a good article how to create login form which the data is stored in SQL Server. In this case i need to use C# 3.0 and SQL server 2008.

    Don't tell me just GOOGLE it, if only i could fine any, i won't get help from here.

    ...
    See more | Go to post

  • crystal2005
    replied to Need help for the pointer datatype
    in C
    I have tried to assign fareType from token, however the compiler gives me a segmentation fault. Any idea what went wrong?

    i used strtok to retrieve the data from an external file

    E.g.
    F0001|F|Daily|A llow unlimited train, tram and bus travel for a whole day within selected zones.

    "|" is the delimiter. F is the fare type in which i'd like to insert it to the linked list....
    See more | Go to post

    Leave a comment:


  • crystal2005
    started a topic Need help for the pointer datatype
    in C

    Need help for the pointer datatype

    Hi all,

    I'm working with my assignment and get stucked for hours just to simple data type which i'm not familiar with :(

    I have my unchangeable fragment code of my header file
    Code:
    typedef struct category* CategoryTypePtr;
    typedef struct category
    {
       char categoryID[ID_LEN + 1];
       char categoryName[MAX_NAME_LEN + 1];
       char fareType;      /* (F)ull or (C)oncession */
    ...
    See more | Go to post

  • crystal2005
    replied to Finding smallest and largest string
    in C
    After trying for quite sometime, it does work... but my code only take one character comparison in front. Any suggestion to compare probably up to 2 or 3 characters for each string??

    Code:
    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    
    #define MAX_INPUT 25
    #define MAX_CHAR 20
    
    int main(void)
    {
    	int t, i;
    	
    	char text[MAX_INPUT][MAX_CHAR];
    ...
    See more | Go to post

    Leave a comment:


  • crystal2005
    replied to Finding smallest and largest string
    in C
    I want to store the smallest array of string. But the code doesn't seem that way....
    See more | Go to post

    Leave a comment:


  • crystal2005
    replied to Finding smallest and largest string
    in C
    Sorry Jos, what do you mean the first string is the smallest and largest string so far??...
    See more | Go to post

    Leave a comment:


  • crystal2005
    started a topic Finding smallest and largest string
    in C

    Finding smallest and largest string

    I am writing a program that receive maximum of 25 line of string each has 20 characters maximum. The program will print the smallest and the largest string. However the following program gives me Segmentation fault (core dumped) :(( It looks simple but i have no idea what went wrong....

    Can anyone help me out??

    Code:
    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    ...
    See more | Go to post

  • crystal2005
    replied to [Help]Random Walk
    in C
    Thanks for the guidance... I'll try my best first :)
    See more | Go to post

    Leave a comment:


  • crystal2005
    started a topic [Help]Random Walk
    in C

    [Help]Random Walk

    Hi, another thread from me ^_^

    This time i am required to write a “random walk” function across a 10 x 10 array. The array will contain characters (all ‘.’ initially). Until this point, to the best of my knowledge, i just create 2D array and assign all [10][10] with '.' initial.

    Code:
    		for(i=0;i<10;i++)
    		{
    			for(j=0;j<10;j++)
    			{
    				a[i][j] = '.';
    			}
    		}
    ...
    See more | Go to post

  • Hmmmmm.... that quite useful. Thanks

    Is the following code correct if i would like to implement it in my case
    Code:
    	int value;
    	char* array = new char[value];
    	char (*ptr)[20] = new char[value][20];
    ...
    See more | Go to post

    Leave a comment:


  • crystal2005
    started a topic How to set unlimited size of array of characters??
    in C

    How to set unlimited size of array of characters??

    Hi everyone,

    I gonna ask how to set unlimited size of array of characters. According to the tutorial that i have found after amount of time of googling, array size should be defined when we declare it. In my task requirement, i'm gonna need 2D array to store the value of characters.

    E.g.

    char inputText[ ][20]; //20 characters is the maximum for each line

    In my case, i will put the user into...
    See more | Go to post

  • crystal2005
    replied to Translating alphabetic number in C
    in C
    Ahh... this works fine. Thanks a lot guys :)

    But my program has different implementation. I used for loop to traverse all the character inside the char array and put the array into the switch case....
    See more | Go to post

    Leave a comment:


  • crystal2005
    started a topic Translating alphabetic number in C
    in C

    Translating alphabetic number in C

    Hi guys,

    Just like the title, i'm looking for the example of C program that translates an alphabetic phone number into numeric. The idea as the following output

    Enter phone number: 1800-TEST-100

    result: 1800-8378-100


    so basically 2=ABC, 3=DEF, 4=GHI, . . . , 9 = WXYZ

    So, all the non-alphabetic (E.g. dash, punctuations) will leave unchanged.

    Can anyone give the...
    See more | Go to post

  • crystal2005
    started a topic Need Help In SQL Complex Query

    Need Help In SQL Complex Query

    Hi,

    I am having trouble with some complex SQL queries. I’ve got winestore database, taken from Web Database Application with PHP and MySQL book. And some question about queries as the following

    1. The wine name, grape variety, year, winery, and region
    2. The minimum cost of wine in the inventory
    3. The number of bottles available at the minimum price
    4. The total number of bottles available at...
    See more | Go to post

  • The way i used >> to write file is probably just another way in python. My real problem happened when i tried to write file into a temporary file produced by TemporaryFile module.

    What i have done as the following code

    Code:
    import tempfile, email, os
    from time import time, localtime, strftime
    from email.Message import Message
    
    timestamp = str(time())
    prefix = 'test'
    ...
    See more | Go to post

    Leave a comment:


  • Problem writing temporary file using TemporaryFile()

    Hi all,

    Basically, i'm trying to create temporary file using TemporaryFile() module.
    Code:
    TemporaryFile( [mode='w+b'[, bufsize=-1[, suffix[, prefix[, dir]]]]])
    It's done perfectly to create an intended file. But, i encountered a problem to write some useful testing text into the temporary file. When i try to used os.open() it always appears "TypeError: coercing to Unicode: need string or buffer, instance...
    See more | Go to post
No activity results to display
Show More
Working...