Archived Programming Thread

Status
Not open for further replies.

Kazi

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Jul 20, 2008
Messages
858
Reaction score
56
Gender
Male
Country
Germany
Use the Airbrush Pen Opacity Flow. It looks like a normal round brush, but if you go over it with the mouse you will see the names ^^

does someone have knowledge of ajax?
 
Last edited:

Xevoss

Registered User
下級員 / Kakyuuin / Jr. Member
Joined
Jul 21, 2008
Messages
94
Reaction score
64
Gender
Male
Country
Poland
program hello;

uses CRT;

label str;

var i:integer;
hw:string;

procedure rpt;
begin
repeat
writeln(hw);
i:=i+1;
until i=50;
end;

begin
str:
hw:='HELLO MH!!';
i:=1;
rpt;
goto str;
end.



Peace and Love guys \../ ;D
 

getsome

Registered User
下級員 / Kakyuuin / Jr. Member
Joined
Jun 27, 2008
Messages
63
Reaction score
5
Gender
Male
Country
United States
Use the Airbrush Pen Opacity Flow. It looks like a normal round brush, but if you go over it with the mouse you will see the names ^^

does someone have knowledge of ajax?
awesome, thanks!

i've used some ajax to do very basic div manipulation but i'm no expert. as far as javascript goes, i was told jquery is the way to go. i gotta start reading...but i also wanna start sketching...aaah! stupid job taking all my time!
 

roma

Registered User
上級員 / Jyoukuuin / Sr. Member
Joined
Nov 29, 2008
Messages
490
Reaction score
205
Gender
Female
Country
Philippines
well then ...

Code:
main    ldy #$00
.1      lda str,y
        beq .2
        jsr $fded ; ROM routine, COUT, y is preserved
        iny
        bne .1
.2      rts
str     .as "HELLO WORLD"
        .hs 0D00
ack! i hate codes like this. makes me wonder how i passed the subject. totally forgot all about it after passing. :p

PERL:
Code:
#!/usr/local/bin/perl
print "Who are you?\n";  
$name=<STDIN>;  
print "Hello $name";
 
Last edited:

holmes221

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Nov 24, 2005
Messages
619
Reaction score
75
Gender
Male
Country
Indonesia
How about some .NET ?

Code:
namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World.");
        }
    }
}
AJAX with ASP NET is fun to learn too. :tem
 

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
How about some .NET ?

Code:
namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World.");
        }
    }
}
AJAX with ASP NET is fun to learn too. :tem
when i look at this code i know why i hate java, javascript and .net. :oh
 

David Gill

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Dec 16, 2007
Messages
790
Reaction score
396
Gender
Male
Country
England
Hello, i need some help, I've tried to do a bit of the function but i cant get it to return the first n characters. The variables have stay the same and nothing can be changed. All i have to do is complete the function. Can someone help me please? What i've already done is kinda wrong because it only copies string1 into string2.

Thanks alot. BELISAR !

This is the function: void strhead(char * string1, char * string2, int n)
{
/* copies the first n characters of string1
to string2
*/

int i=0;

for(i=0; string1 != '\0'; i++)
{
if
string2 = string1;

}

}




case 7 : testing("strhead");
printf("Input a string? ");
getString(stringA,255);
printf("Take how many? ");
n=getInt();
strhead(stringA,stringB,n);
printf(" First %d of '%s' is '%s'\n",n,stringA,stringB);

if (testno != 1) break;
 

Belisar

Registered User
英雄メンバー / Eiyuu Menbaa / Hero Member
Joined
Aug 12, 2008
Messages
1,940
Reaction score
506
Gender
Hidden
Country
Germany
Hello, i need some help, I've tried to do a bit of the function but i cant get it to return the first n characters. The variables have stay the same and nothing can be changed. All i have to do is complete the function. Can someone help me please? What i've already done is kinda wrong because it only copies string1 into string2.

Thanks alot. BELISAR !

This is the function: void strhead(char * string1, char * string2, int n)
{
/* copies the first n characters of string1
to string2
*/

int i=0;

for(i=0; string1 != '\0'; i++)
{
if
string2 = string1;

}

}




case 7 : testing("strhead");
printf("Input a string? ");
getString(stringA,255);
printf("Take how many? ");
n=getInt();
strhead(stringA,stringB,n);
printf(" First %d of '%s' is '%s'\n",n,stringA,stringB);

if (testno != 1) break;

it's c? i will try to solve it. have patience. :)

edit:
Code:
#include <stdio.h>
#include <stdlib.h>

void function(char stringInput[255], char stringOutput[255], int number)
{
     int i;
     for (i = 0; i < number; i++)
     {
         stringOutput[i] = stringInput[i];
     }
}

int main(int argc, char *argv[])
{
    char stringInput[255], stringOutput[255];
    int number = 0;
    
    printf("Input String: ");
    fflush(stdin);
    scanf("%s", &stringInput);
    
    printf("Input Number: ");
    fflush(stdin);
    scanf("%d", &number);
    
    function(stringInput, stringOutput, number);
    printf("Output String: %s \n\n", stringOutput);
  
  system("PAUSE");	
  return 0;
}
 
Last edited:

infyquest

Registered User
上級員 / Jyoukuuin / Sr. Member
Joined
Oct 2, 2006
Messages
312
Reaction score
0
Gender
Male
Country
India
in shell script
Code:
#!/bin/sh
echo "hello world"
 

razor

Banned
上級員 / Jyoukuuin / Sr. Member
Joined
Nov 26, 2005
Messages
322
Reaction score
6
Gender
Male
Country
Malaysia
wow.programming thread.good!!
 

kryptlight

Registered User
初心者/ Shoshinsha / Beginner
Joined
Feb 2, 2009
Messages
4
Reaction score
0
Gender
Female
Country
Germany
Here some in java :)

Code:
public class
{ 
       public static void main(String[] args)
      { 
         
          System.out.println("Hello world");
      }
}
 

Ascension

Registered User
下級員 / Kakyuuin / Jr. Member
Joined
Feb 11, 2009
Messages
98
Reaction score
9
Gender
Male
Country
United States
ugh, you all are reminding me how much PHP work I need to get done.... If anyone experienced wants some extra money via pay-pal PM me
 

lord0din69

Registered User
初心者/ Shoshinsha / Beginner
Joined
Mar 5, 2009
Messages
5
Reaction score
0
Gender
Male
Country
United States
user(lord0din69,new).
sayHello(User) :- user(User,new), write('Hello').

sayHello(lord0din69).
 
Last edited:

Asusp3v4x

Registered User
有名人 / Yuumeijin / Celebrity
Joined
Oct 12, 2008
Messages
3,322
Reaction score
889
Age
37
Gender
Male
Country
Brazil
hey Belisar ... noob question... know any program where I can test my programs in C?????
 

GSLinux

Registered User
初心者/ Shoshinsha / Beginner
Joined
Feb 2, 2009
Messages
2
Reaction score
0
Age
38
Gender
Male
Country
United States
I love C++ so here :

Code:
#include "SEML.hpp"                 // My own graphics engine using SDL
#include "SEGL_freetype.hpp"     // My font rendering engine using freetype

//example function
//=================== Draw text(Baseline) =================//
void ftDrawText(const char * string, int x, int y)
{
 register unsigned low = font_manager->low_char;
 register unsigned baseline = y + POINT_SIZE;
 register int temp_y = y;
 register image * char_img = 0x0;
 for(register int i=0; string[i] != '\0'; )
 {
  if(string[i] == ' ') {x+=PIX_SIZE; i++; continue;}
  char_img = ftCharImage(string[i++]);
  temp_y += baseline - (y + char_img->height);
  char_img->draw(x,temp_y);
  x += (ftCharImage(string[i-1]))->width + 2 ;
  temp_y = y;
  //font manager takes care of displaying text...
  ....
 }   
}


//somewhere in main :

void main()
{
  ....
  ftDrawText("Hello Mate!!", 320, 240);
  ....
}
I used my own libraries here, mostly build from Assembly and C :darn
 
Status
Not open for further replies.
Top