English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - February 2007

[Selected]: All categories Computers & Internet Programming & Design

I want to know what language is Facebook.com and myspace.com writen. Thank you

2007-02-21 15:10:18 · 2 answers · asked by nick707 1

Write a program that reads an integer between 0 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all its digits is 14. Use the int operators / and %.

2007-02-21 15:05:26 · 5 answers · asked by camarodriver682005 2

I saw it actually answer three questions for this one guy, and two of them were about me, He asked who i "josh" was talking to, and it said Kevin, the guy i WAS talking to was named kevin. He asked what color shirt i was wearing and it said black and white, that was correct, he also asked "who played basketball today?" and it said SAE a ferternity that actually played that day against another fertinity, it will not however answer one single question of mine, could someone please explain how it would work?

2007-02-21 14:58:52 · 2 answers · asked by Josh S 1

2007-02-21 14:55:12 · 2 answers · asked by Mrs. J 3

Dim numArr() As Decimal = { CInt(txtNbr1.Text), **
CInt(txtNbr2.Text), **
CInt(txtNbr3.Text)}

This won't work because I need something where I have put asterisks in order for VB not to complain.

2007-02-21 14:44:16 · 3 answers · asked by federmonkey 2

I need to make one for school and im not quite sure where I can make one.. I have Microsoft Works if that helps.. But im not sure HOW i make one..

2007-02-21 14:29:49 · 7 answers · asked by victoria.♥ 2

Like, including the taskbar and window borders, etc...

2007-02-21 14:01:42 · 5 answers · asked by Picard Facepalm 5

Obtain the final answer using recursive boxes: problem 1
int mist (int n){
if (n == 1){
return 3;
}else{
return 3 * mist(n-1);
}
}
What values does mist (5) return?


Obtain the final answer using recursive boxes: problem 2
void misty(int n){
if (n > 4){
misty (n % 4);
}
System.out.print(n / 4 + ""):
}
What sequence of numbers will the call to misty (38) yield?

2007-02-21 13:42:02 · 2 answers · asked by jumba 1

you are to prompt the user to enter an integer value, and then accept the value from the user. The program should then determine and display an appropriate message as to whether the entered integer's value was EVEN or ODD. HINT: this is a situation where the modulo (remaindering) operation may come in handy; that is, what do you get as a result of taking an integer modulo 2 (divide the number by 2 and take the remainder)?

This is the last part of the HW that I am suppose to do, but I can't seem to figure out the modulo.

Can anybody help me with this?

I think if-else statement is needed for this, since that's what we are currently learning.

Thank you

2007-02-21 13:32:34 · 6 answers · asked by Anonymous

which do you like better.. and why ?

2007-02-21 13:25:52 · 3 answers · asked by nola_cajun 6

When I send out emails to my friends I would like to highlight certain words in the letter which when my friends click on would bring them to a certain page or article on the web. Can somone help me do this?

2007-02-21 13:21:46 · 5 answers · asked by Anonymous

I have an Access file that I need to upload to my online database (hosted at GoDaddy) thru Dreamweaver. How?

2007-02-21 12:48:28 · 1 answers · asked by Anonymous

2007-02-21 12:45:43 · 6 answers · asked by cs_dreamer_101 1

;Prints the BCD number stored in p2 and p0 in seven
printBCD:
mov a,r6
jz m1
jnz m2

m2:
setb p2.4
mov dptr, #table7seg
mov a,R7
anl a,#0fh
movc a,@a+dptr
mov P0, a
mov a, R7
mov dptr, #table7seg1
swap a
anl a,#0fh
movc a,@a+dptr
mov P2, a

m1:
clr p2.4
mov dptr, #table7seg
mov a,R7
anl a,#0fh
movc a,@a+dptr
mov P0, a
mov a, R7
mov dptr, #table7seg1
swap a
anl a,#0fh
movc a,@a+dptr
mov P2, a


ret
;This table is used to convert a number to its 7-segment representation
;The bits are connected as follow: e,g,f,x,a,b,d,c
table7seg:
db 01010000B ; 0
db 11111010B ; 1
db 00110001B ; 2
db 10110000B ; 3
db 10011010B ; 4
db 10010100B ; 5
db 00010100B ; 6
db 11110010B ; 7
db 00010000B ; 8
db 10010000B ; 9

table7seg1:

db 00010010B ; 0
db 01011111B ; 1
db 10010100B ; 2
db 00010101B ; 3
db 01011001B ; 4
db 00110001B ; 5
db 00110000B ; 6
db 01010111B ; 7
db 00010000B ; 8
db 00010001B ; 9

2007-02-21 12:19:34 · 1 answers · asked by Anonymous

I need to learn C programming by myself. where can i do that in the net? or maybe there is someone out there who is an expert who can help me. Just respond and we can talk through email. i will send you an email. I need to learn or else i will fail in my course. thanks.

2007-02-21 11:58:40 · 2 answers · asked by needhelpasap 2

I've been trying to code this for hours! Below is the page with the problem and I've included my code. Thank you.

P.S. This is in C++



http://www.putfile.com/pic.php?img=4828206
______________________________________

#include

using std::cout;
using std::cin;
using std::endl;
int getFahrenheit();
int calcCelsius();
int main()
{

//declare variables
int fahrenheitTemperature= 0;
int celsiusTemperature=0;
//call

fahrenheitTemperature=getFahrenheit();

//display output item
cout << "Celsius temperature:" << celsiusTemperature << endl;
system ("Pause");
return 0;
} //end of main function

int getFahrenheit()
{
int fahrenheitTemperature;
cout << "Enter fahrenheit temperature:";
cin >> fahrenheitTemperature;
return fahrenheitTemperature;
}

int calcCelsius()
{
int celsiusTemperature;
celsiusTemperature = 5.0/9.0 * fahrenheitTemperature;
return calcCelsius;
}

2007-02-21 11:56:17 · 4 answers · asked by Christi 4

I know what is 2's complement and how to calculate 2's complement. How do I calculate a negative number (ex: -14096) to 10's complement to 8 digits?

2007-02-21 11:49:37 · 1 answers · asked by Rosy 3

If we were to change to a 10's complement scheme for expressing negative numbers, what digit would indicate the value was positive or negative?

2007-02-21 11:25:19 · 2 answers · asked by Rosy 3

Is there a website that allows you to make a free website?
if so can you PLEASE tell me?
Thanks
:D

2007-02-21 11:24:04 · 5 answers · asked by baby_princess_melissa 2

If you have a list of songs you want your visitors to be able to play what is the best way to embed this in your website so that it works with most browsers and OSes.

I tried the embed tag but it doesn't seem to want to work with firefox and netscape. Maybe me system is just FUBAR.

This is the page so far:
http://yearofthemonkey68.com/music.html

2007-02-21 11:21:25 · 3 answers · asked by Anonymous

This must be a really easy-to-answer question for a computer obsessed person, but I'm so confused! I have the new "Vista" thing for my computer and I don't know how to make the words on the computer smaller-- you know, the things when you open your user account. They say like um... "Microsoft Word 2007" and other things like that!!!

---~~PLEASE HELP!!!~~---

2007-02-21 10:58:09 · 2 answers · asked by Anonymous

How do I translate these codes to assembly language?

x = a + 19 - b

z = a * a * a (a = 2 bytes)

Can anyone also tell me where I can read more on this subject?

2007-02-21 10:49:13 · 4 answers · asked by Rosy 3

i've been DESPERATE to find out. please just tell me. people say alt + 3. what does that amean? does that mean alt and 3 togehter at the same time..or?? please clue me in..make it easy to understand. i am clueless.

10 points to the first person who explains it stepbystep!

2007-02-21 10:21:47 · 5 answers · asked by Baby!! =) 1

I know a little about changing offsets but nothing about reading G codes or programming. Just wondering how hard it was to learn.

2007-02-21 10:21:32 · 2 answers · asked by stayoutofharmsway 1

what e-commerce system does bustedtees.com use? 2Checkout?? or What?

2007-02-21 09:56:36 · 1 answers · asked by reuben 1

I have put a banner on my desktop using Paint but it has a background,how do I just have the words showing on my desktop and not the surround,I want the word but no background with it,in other words like a see through word with my desktop and icons as they are originally,am I making sense!!!!

2007-02-21 09:32:32 · 3 answers · asked by bavis 2

$file_rev="041308";
////////////////////////////////////////////////////////
// phpBannerExchange //
// by: Darkrose //
// (darkrose@eschew.net) //
// //
// You can redistribute this software under the terms //
// of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of //
// the License, or (at your option) any later //
// version. //
// //
// You should have received a copy of the GNU General //
// Public License along with this program; if not, //
// write to the Free Software Foundation, Inc., 59 //
// Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// //
// Copyright 2004 by eschew.net Productions. //
// Please keep this copyright information intact. //
////////////////////////////////////////////////////////

include("config.php");
include("lang/common.php");

if($use_gzhandler==1){
ob_start("ob_gzhandler");
}

$uid=$_REQUEST['uid'];
$cat=$_REQUEST['catid'];
$uid = strip_tags($uid);
$uid = htmlentities($uid);

$cat = strip_tags($cat);
$cat = htmlentities($cat);

if (get_magic_quotes_gpc()) {
$uid = stripslashes($uid);
$cat = stripslashes($cat);
}

$uid=mysql_real_escape_string($uid);
$cat=mysql_real_escape_string($cat);

if(!$cat){
$cat="0";
}

//if this is false, will return "Invalid Banner!" (see bottom)
if(ctype_digit($uid) and ctype_digit($cat)){
$db=mysql_connect("$dbhost","$dbuser","$dbpass");
mysql_select_db($dbname,$db);

$status = mysql_query("select * from bannerconfig where name='exchangestate'");
$get_status=mysql_fetch_array($status);
$status=$get_status[data];
if($status == '1'){
//display default banner.
$eligible=mysql_query("select * from bannerurls where uid='0' limit 1");
$defaultbanner="1";
}else{
if($cat=="0" or !$cat){
//display the banner + without category support.
if($use_dbrand == 1){
$eligible=mysql_query("select uid from bannerstats where approved='1' and credits >= '$steexp' and uid != '$uid' order by rand() limit 1");
}else{
$eligible=mysql_query("select uid from bannerstats where approved='1' and credits >= '$steexp' and uid != '$uid'");
}
}else{
if($use_dbrand == 1){
//display the banner + with category support.
$eligible=mysql_query("select uid from bannerstats where approved='1' and credits >= '$steexp' and category = '$cat' and uid != '$uid' order by rand() limit 1");
}else{
$eligible=mysql_query("select uid from bannerstats where approved='1' and credits >= '$steexp' and category = '$cat' and uid != '$uid'");
}
}
//check to see the number of banners found.
$get_number=@mysql_num_rows($eligible);
if($get_number == 0){
if($use_dbrand == 1){
$eligible=mysql_query("select uid from bannerstats where defaultacct='1' and uid != '$uid' and uid != '0' order by rand() limit 1");
}else{
$eligible=mysql_query("select uid from bannerstats where defaultacct='1' and uid != '$uid' and uid != '0'");
}
}
$get_number=@mysql_num_rows($eligible);
if($get_number == 0){
//if none found, display the default account.
$eligible=mysql_query("select bannerurl, targeturl from bannerurls where uid='0' limit 1");
$defaultbanner="1";
}
}

$find_num=@mysql_num_rows($eligible);

//if we STILL can't find a banner, display an error.
if($find_num == '0'){
echo "You're getting this message because there's no default account or default banner set up! Set one up before proceeding!";
die();
}

if($defaultbanner=="1"){
$get_banner=mysql_fetch_array($eligible);
$bannerurl=$get_banner[bannerurl];
$bannerid=$get_banner[id];
$update_uid=mysql_query("update bannerstats set credits=credits+$steexp,histexposures=histexposures+1 where uid='$uid'");
$pick="0";
}else{
while($rand_rows = @mysql_fetch_array($eligible)){
$id_array[] = $rand_rows[uid];
}

if($use_dbrand == 0){
srand((double)microtime()*1000000);
@shuffle($id_array);
srand((double)microtime()*1000000);
@shuffle($id_array);
}

$pick = $id_array[0];
$takecred=mysql_query("update bannerstats set credits=credits-$banexp where uid='$pick'");

//anti-cheat
if($anticheat=="cookies"){
include("cookies.php");
}

if($anticheat=="DB"){
include("dblog.php");
}

if($anticheat==""){
$update_bid=mysql_query("update bannerstats set exposures=exposures+1 where uid='$pick'");
$update_uid=mysql_query("update bannerstats set credits=credits+$steexp,histexposures=histexposures+1 where uid='$uid'");
}

if($use_dbrand == 1){
$get_banner = mysql_query("select * from bannerurls where uid='$pick' order by rand() limit 1");
}else{
$get_banner = mysql_query("select * from bannerurls where uid='$pick'");
}

while($rand_ban = mysql_fetch_array($get_banner)){
$ban_array[] = $rand_ban[id];
}

if($use_dbrand == 0){
srand((double)microtime()*1000000);
@shuffle($ban_array);
srand((double)microtime()*1000000);
@shuffle($ban_array);
}

$bannerid=$ban_array[0];
$get_banner=mysql_query("select bannerurl from bannerurls where id='$bannerid'");
$get_banner_url=mysql_fetch_array($get_banner);
$update_bannerstats=mysql_query("update bannerurls set views=views+1 where id='$bannerid'");
$raw_query=mysql_query("select raw from bannerstats where uid=$pick");
$get_raw=@mysql_fetch_array($raw_query);
$rawcode=$get_raw[raw];
}
if($rawcode != '0'){
echo "$rawcode";
}else{
$bannerurl=$get_banner_url[bannerurl];
}
?>
/click.php?uid=&bid=&ban=" target="_blank">" border=0 width= height=>
}else{
echo "Invalid Banner Code!";
}
?>

2007-02-21 09:30:11 · 4 answers · asked by cwconline 2

fedest.com, questions and answers