User Profile

Collapse

Profile Sidebar

Collapse
rpapaiof
rpapaiof
Last Activity: Jan 1 '07, 03:31 PM
Joined: Oct 19 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rpapaiof
    started a topic sorting problem
    in C

    sorting problem

    Code:
    #include <stdio.h>#include <string.h>
    int compare (char *s,char *a)
    {
    	int d;
    	for (;*s&&*a;*s++,*a++)
    	{
    		if (*s==*a){d=0;}
    		else d=*s-*a;
    	
    	}
    	return d;
    }
    void copy (char *s,char *a)
    {
    	for(;*s=*a;s++,a++);
    }
    int main()
    {
           char  tname[20], name[20][20];
           int   i, j, n;
    ...
    See more | Go to post

  • rpapaiof
    started a topic sting function(urgent)
    in C

    sting function(urgent)

    how can we write a function to compare strings and copy it.
    i mean 2 different functions that we can use insted of strcmp and strcpy.
    i try to solve it but i cant understand the process.
    Code:
    #include <stdio.h>#include <string.h>
    int main()
    {
           char  lname[40], name[40][40];
           int   i, j, k;
           printf("Enter the number of names:  ");
           scanf("%d",&k);
    ...
    See more | Go to post

  • rpapaiof
    started a topic string compare fucntion(Emergency)
    in C

    string compare fucntion(Emergency)

    Code:
    #include <stdio.h> #include <stdio.h>
    #include <string.h>
    int main()
    {
           char  lname[40], name[40][40];
           int   i, j, k;
           printf("Enter the number of names:  ");
           scanf("%d",&k);
           for(i=0; i<k; i++)
           {
                  printf("\nEnter the name%d:",i+1);
                  scanf("%s&quo
    ...
    See more | Go to post

  • rpapaiof
    started a topic Concate
    in PHP

    Concate

    [PHP]if ($_SESSION[sex]=="M" && $_SESSION[name]=="ara" ) echo "<tr><td width=150 valign=top>."We lcome Mr.$_SESSION[name]&nbsp;&nbsp;$_S ESSION[lname]<img src="a.jpg">.ec ho"</td>"echo"<td valign=top><cen ter><font size=8 color=blue >Thank You For Your Visit</font></center><form><f ont size=4 ><b>Upload Your...
    See more | Go to post
    Last edited by rpapaiof; Nov 29 '06, 03:41 PM. Reason: Missing Text

  • rpapaiof
    replied to Emergency help with user login and greeting
    in PHP
    o i have no idea about it i will follow yout guide from this moment....
    See more | Go to post

    Leave a comment:


  • rpapaiof
    started a topic Emergency help with user login and greeting
    in PHP

    Emergency help with user login and greeting

    i have designed a login page in this form
    <?php
    if ( $_POST[username] && $_POST[password] && $_POST[sbm]) {
    $a=file("file.t xt");
    foreach($a as $k => $v) {
    $b[]=trim($v);
    }
    #echo "<pre>"; print_r($b); echo "</pre>";
    $success="0";
    foreach($b as $k => $v) {
    $b1=split(":",$ v);
    if ( $_POST[username]==$b1[0]...
    See more | Go to post

  • rpapaiof
    replied to convert array to string
    in PHP
    thank u for your help my friend...
    See more | Go to post

    Leave a comment:


  • rpapaiof
    started a topic convert array to string
    in PHP

    convert array to string

    how can i convert an array to string my problem is the following
    i have a TXT file that contain some numbers
    i have to read them from file put them in array then i have to put 3 radio buttons with following functions
    ascend sort of array
    descend sort
    and reverse
    after each function i have to write changed for of array into a new file.
    i have problem with writing them in new file.
    please help...
    See more | Go to post

  • rpapaiof
    replied to Open Dir
    in PHP
    i get my icons from dll files by icon extractor programs .
    also thanks for codes my friends they help me very much...
    See more | Go to post

    Leave a comment:


  • rpapaiof
    replied to Open Dir
    in PHP
    i want to assign JPG icon for JPG File ,Note pad Icon for txt file i have the icons i need to know how i must do it .
    i have tried is_file but can't use it in correct way....
    See more | Go to post

    Leave a comment:


  • rpapaiof
    started a topic Open Dir
    in PHP

    Open Dir

    [php]
    <?php
    echo "<form method=post>";
    echo "<input type=text name=dirname>";
    echo "<input type=submit value='Show file' name=knopka>";
    echo "</form>";
    $d=opendir($_RE QUEST[dirname]);

    while (($str=readdir( $d)) != NULL ) {
    if ( is_dir("$_REQUE ST[dirname]".$str) ) {
    echo "<img src=folder.bmp>...
    See more | Go to post

  • rpapaiof
    replied to Prime Number!! Emergency
    in C
    #include <stdio.h>


    int main(void){
    int j,Lim,i,flag;
    printf("Please enter a limit number : ");
    scanf("%d",&Lim );

    for(i=2;i<=Lim; i++){
    for(j=2;j<=i-1;j++){
    if(i%j==0){
    flag=0;
    break;}
    flag=1;
    }
    if(flag==1)
    printf("%5d\t", i, "%5d",i);
    }

    return 0;
    ...
    See more | Go to post

    Leave a comment:


  • rpapaiof
    started a topic string array reverse
    in C

    string array reverse

    i have this form but i want more compact and simple form
    string str,
    int i;
    cout<<"\n Enter any string to reverse ";
    cin>>str;
    cout<<"\n The string in reverse is ";

    length=strlen(s tr);
    for(i=length;i> 0;i--)
    {
    cout<<str[i];
    }

    or you can do it this way

    string str,str2,
    int i;
    cout<<"\n...
    See more | Go to post

  • rpapaiof
    started a topic fopen in html table
    in PHP

    fopen in html table

    <?php

    $f=fopen("C:\Pr ogram Files\Apache Group\Apache2\h tdocs\file.txt" ,"r");
    $str=fgets($f);

    echo "<table border=2 width=800 bordercolor=gre en>

    <tr>

    <td>NO</td>

    <td> User </td>

    <td>Pass</td>

    <td>Name</td>...
    See more | Go to post

  • rpapaiof
    started a topic average of odd
    in C

    average of odd

    program calculate and print average value of odd elements of initialized array unsigned arr[10}={3,20,7,6}
    use for loop and inside for loop use continue statemen to skip even number
    please dont write code with cout
    See more | Go to post

  • rpapaiof
    replied to Table
    in PHP
    1.there is nothing beetween them
    2.about second just put a text as the way u want it must be printed in family name column.
    3.yes they can...
    See more | Go to post

    Leave a comment:


  • rpapaiof
    replied to Table
    in PHP
    No Name Family Name User Password Birthday
    1
    2
    3
    4
    5
    6



    In text file which we have there is 6 person names and their info


    1.kevin any text User1 002525 02.21.55
    2.katy any text User1 002524 02.21.55
    3.lora any text ...
    See more | Go to post

    Leave a comment:


  • rpapaiof
    replied to Table
    in PHP
    we have a txt file that include users info we have to read that info and print it in correct place in our table also a number for each row ....
    See more | Go to post

    Leave a comment:


  • rpapaiof
    replied to Table
    in PHP
    its a html table my friend...
    See more | Go to post

    Leave a comment:


  • rpapaiof
    started a topic Table
    in PHP

    Table

    im just a beginer in php
    i have some problems
    i have to make a table with 6 row and 7 column then in each row include a name family name and birthday also user name and pass for them .
    i have tried it but i have some problems will someone help me find a way ?please
    See more | Go to post
No activity results to display
Show More
Working...