matak
Dec 18 2006, 06:33 AM
Ok, I've been playing with CSS for that IHB project of mine, and this is the result My WebpageNow, when you hover those doors and left chair you can see how it changes. Ok, that is fine for me, but next thing i need to do is :active links. When you press on the left chair and hold mouse you can see that it is different color, beacouse image is different. Now when you click on it, index.html is reloaded and the chair looks the same as first time, which is normal. I could put <a href="index_left_chair.html"> to be loaded and then the same for the right chair, but that would make things way to much complex. Now since i already have that image which looks bit darker, can i use some piece of PHP code, that when i click on LEFT chair that it changes code so that it uses that picture :active as base picture so that it looks like you are sitting on a chair. Hope you understand this question... QUOTE(hts @ Oct 24 2006, 08:29 PM)  it can be done much much simpler, no iframes or such: CODE <?php echo "<div class=\"content\">"; $page=$_GET['page']; $page.="php"; include($page); echo "</div>"; ?>
and your url`s will be like: index.php?page=about this will include in index.php, the about.php page (if this is found in the same directory as index.php). well, this piece of code has security problems, as the $_GET[] value is not sanitized...but that`s another story...just understand this and we`ll continue afterwards  Now this code looks ok to me. Could i use it for the question up, and how? Here is another link i found that could be useful but i don't know how could i use it Change CSS color with PHPI wanted to add poll.. Hope i made it
Reply
AeonLan
Dec 18 2006, 07:37 AM
I pretty much bugged. First of all you have no questions. Secondly, I didn't see an opening or problem that you would like to be solve in the situation.
Reply
Saint_Michael
Dec 18 2006, 07:50 AM
I think I Understand where going and I can say you don't need php whatsoever you just need a simple css code. What your asking is that you want the chair to look active in hte sense that the picture looks like the other well it is a simple css thing. Here is an example of and active page link http://www.oswd.org/design/preview/id/2981As you notice the about link is highlighted over the rest as you scroll through the links. Which means that link is currently active or the in the sense your looking at that page right now. So all you do is put in a small css code for a current link and then set that link style and your set. From the site I showed you the set up looks like so. HTML CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Welcome to webnia</title> <link href="stylesheet.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="colLeft"> <div id="divlogo"> <span class="web">web</span><span class="ain">ain</span></div> <div id="Navigation"> <ul> <li><a href="#"> home</a></li> [b]<li><a href="#" class="current"> about</a></li>[/b] <li><a href="#"> portfolio</a></li> <li><a href="#"> contact</a></li> </ul> </div> <div id="menuTab">navigation</div> </div> <div id="colRight"> <div id="divBanner"></div> <div id="divMainContent"> <h2> Welcome to webain..</h2> <p class="allpara">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. </p> <h2> About the author..</h2> <p class="allpara">I am a web designer and developer and have been creating bespoke contemporary web sites and web applications for three years. This is my first attempt at open source web design template. I hope you like it. </p> </div> </div> <div id="footer">©your copy right designed by <a href="http://www.webain.co.uk" target="_blank">M S Rahman</a> </div> </div> </body> </html>
As you see that is the link style set up that you would place for that page. Now for the actual nav CSS CODE #Navigation { padding: 0px; margin-top: 40px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; width: 175px; } #Navigation ul { list-style: none; margin: 0px; padding: 0px; }
#Navigation li { display: block; }
#Navigation ul li a { color: #FFFFFF; display: block; text-decoration: none; font-size: 14px; background-color: #32556B; border-left-width: 5px; border-left-style: solid; border-left-color: #32556B; height: 15px; padding-top: 3px; padding-bottom: 3px; padding-left: 25px; margin: 0px; border-right-width: 5px; border-right-style: solid; border-right-color: #32556B; padding-right: 10px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #3A5D73; background-image: url(images/icons/arrow.gif); background-repeat: no-repeat; background-position: left; } [b] #Navigation ul li a:hover, #Navigation ul li a.current { background-color: #365D7A; border-right-width: 5px; border-right-style: solid; border-right-color: #FFFFFF; border-left-width: 5px; border-left-style: solid; border-left-color: #365D7A; color: #B4FF05; }[/b]
As you can see the nav menu is set up with a current code, so all you have to do is individual current css for your images and then when a user clicks on the page that image will remain highlighted, hopefully this isn't that to confusing if it is contact me at my yahoo or msn accounts and I can help you from there.
Reply
2091
Dec 18 2006, 12:50 PM
matak
Dec 18 2006, 05:43 PM
QUOTE(2091 @ Dec 18 2006, 01:50 PM)  well it's a joke i guess beacouse you probably know that dhtml doesn't work right in Firefox... to Saint_Michael is this ':current' property or a class. beacouse if i have like 5 links that i want to have current will it work for every one of them.. *edited not i don't want to change pages from index.html to about.html or like that, i want all of the user choices to stay in index.html. i know i'm asking to much, but hey you gotta ask somewhere.. hope u understand what i want.. so you see, this is something that could easily be done with some simple php code... you don't need to reply that. i'll try code and post back later. i was more intrested in php code beacouse later i wanted to add dynamical page, in which users could "see" somebody else sitting on that chair, and maybe when they try to sit on it it will be unavailable. i think that making something like that is just impossible in CSS. ok, i'm going to test this code of yours and post back soon...
Reply
matak
Dec 18 2006, 06:54 PM
sorry couldn't find a way to use that current.. but i found this CODE <?php function myfunction(){ echo("<strong>I love PHP !</strong><br>"); } ?>
<a href="<?php echo("$PHP_SELF?execute=myfunction")?>">click to execute myfunction ! </a> <p> <?php if ( isset($execute) ){ myfunction(); } ?>
Could i use it to onclick change ID, or CLASS of div tag?! I was thinking about something like this CODE $idname=nonactive
<?php function myfunction(){ echo($idname=current); } ?>
<a id=$idname href="<?php echo("$PHP_SELF?execute=myfunction")?>">click to execute myfunction ! </a> <p> <?php if ( isset($execute) ){ myfunction(); } ?> but since i have no idea how to correctly type this code, can someone help?!
Reply
Saint_Michael
Dec 18 2006, 09:10 PM
current is a class so it will work for all of them if you set the link style to that. But what your asking in order to stay on the index page you would have to set up a iframe like include in which it looks like a frame but doesn't act like one. I seen it done but I haven't found the coding for it yet.
Reply
matak
Dec 18 2006, 09:30 PM
QUOTE(Saint_Michael @ Dec 18 2006, 10:10 PM)  current is a class so it will work for all of them if you set the link style to that.
But what your asking in order to stay on the index page you would have to set up a iframe like include in which it looks like a frame but doesn't act like one.
I seen it done but I haven't found the coding for it yet.
ok.. here's the code i've tried CODE <?php $idname="sit1" ?>
<a id=<?php echo "$idname" ?> href=""></a>
this sets id to a on #sit1 ok now function CODE href="<?php echo("$PHP_SELF?execute=myfunction") ?>" calls for myfunction when i click on link.... then i don't know how to setup that function... i tried CODE <?php function myfunction(){ $idname = $idactive; } ?> where $idactive is ID of a when clicked... CODE <?php $idactive="sit1clicked" ?> sit1clicked is defined as sit1:active in css, but i removed sit1:active to see does the script work but that doesn't work (well i guessed it wouldn't) I would like to try function with $_GET['id'] but i don't know how to set it up... Now the example given prints "I love PHP !" under the link, so it means that script is ok, now just the function that would replace $idname with $idactive would be great!!!
Reply
Saint_Michael
Dec 18 2006, 09:45 PM
Well I was able to find something about the $_GET['id'] CODE if(!isset($_GET['id']) | !isset($_GET['rid'])
so you you have to set up a if statement of some sorts to finish off the script from the looks of it.
Reply
matak
Dec 18 2006, 10:07 PM
QUOTE(matak @ Dec 18 2006, 10:30 PM)  ok.. here's the code i've tried CODE <?php $idname="sit1" ?>
<a id=<?php echo "$idname" ?> href=""></a>
this sets id to a on #sit1 ok now function CODE href="<?php echo("$PHP_SELF?execute=myfunction") ?>" calls for myfunction when i click on link.... then i don't know how to setup that function... i tried CODE <?php function myfunction(){ $idname = $idactive; } ?> where $idactive is ID of a when clicked... CODE <?php $idactive="sit1clicked" ?> sit1clicked is defined as sit1:active in css, but i removed sit1:active to see does the script work but that doesn't work (well i guessed it wouldn't) I would like to try function with $_GET['id'] but i don't know how to set it up... Now the example given prints "I love PHP !" under the link, so it means that script is ok, now just the function that would replace $idname with $idactive would be great!!! Hm..Or maybe it would be better to add function that would replace the whole a tag which is defined with id= $idname with a tag defined by $idactive ?! Huh.. i totaly forgot on CODE <?php if ( isset($execute) ){ myfunction(); } ?>
QUOTE(Saint_Michael @ Dec 18 2006, 10:45 PM)  Well I was able to find something about the $_GET['id'] CODE if(!isset($_GET['id']) | !isset($_GET['rid'])
so you you have to set up a if statement of some sorts to finish off the script from the looks of it. yes you are right. I forgot on end part with that $execute thingy.. now i have to edit everything again. But by the looks of this script i feel it could be possible.. hm.. i could add totaly new div tag here.. but that is not the point. i guess i must sleep on this, maybe tomorrow i'll wake up with solution  just a couple more hours... Finaly Success!!!
Reply
FLaKes
Jan 2 2007, 05:02 PM
I guess I came to late, I didnt see any problems, I guess it was already fixed. By the way, about the poll, its kind of confusing so I voted interesting as I am interested in ruby on rails, as soon as I can get some time on my hands I will try it out.
Reply
2091
Jan 2 2007, 09:48 AM
QUOTE(element1988 @ Dec 20 2006, 08:21 AM)  umm...yeah, not trying to sound like a noob here but whats CSS? ive seen ppl talking about it alot, its driving me crazy :S
this means "cascade style sheet" (dunno how to spell) and defines the layout for your page like CODE <html> <body bgcolor=black text=#FFA500>
<style type=text/css> body{ background:#000000; color:#FFA500; }
.democlass{ background:#FFA500; color:#000000; }
.democlass2{ background:#00A500; color:#FF0000; }
#demotable { background:#FF0000; color:#F0F0F0; } </style>
<table id=demotable> <tr> <td class="democlass" id='demoWindow' onMouseover=java script:switcher(this.id) onMouseout=java script:switcher(this.id)>try me</td></tr>
</table>
<script language="JAVASCRIPT">
function switcher(item){ if(document.getElementById(item).className == "democlass2") document.getElementById(item).className = "democlass"; else document.getElementById(item).className = "democlass2"; } </script> </body> </html>
you can write it directly in the html file or in a extra file... mfg
Reply
Similar Topics
Keywords : solve, situation, php, ways
- Say No To Sinful Ways
Jesus Forgives all our Sins (3)
Ways To Avoid Jet Lag
(0) Just some tips from personal experiences and friends' experiences about avoiding jet lag. Jet
lag is a horrible feeling and can really ruin your vacation especially if you're just planning a
really short one. You end up feeling dreadful for practically the entire vacation! Keep
yourself fit and healthy Before the trip, ensure you eat right, exercise and get enough rest,
especially the day before you fly. Being tired or hungover is a poor way to start a trip. Stay
hydrated Drink lots of water, especially during the flight, to counteract dry cabin air. Av....
Honey And Your Sex Life
WAYS HONEY, A FOOD SUPPLEMENT CAN IMPROVE YOUR SEX LIFE (0) Honey has all it takes to improve your sex life. Honey when used appropriately or combined with
other food items could promote growth and regeneration of body tissues and strenghten a healthy
physical body. It is therefore not an overstatement that honey can improve your sex life
miraculously in more than 10 solid ways, which include the following: a) AS AN APHRODIASAC - Pure
and unheated honey is a mild sexual stimulant naturally, since it contains numerous substances such
as zinc, vit. E, e.t.c., which promotes virility and reproductive health. A mixture of honey and ....
Top 10 Geek Ways To Beat Boredom
My list. What's yours? (12) My Top Ten recommendations for what geeks can do to stop getting bored... 1. Visit a humorous
website. My recommendation: Computer Stupidities - http://www.rinkworks.com/stupid/ 2. Download
a new computer game Linux: http://www.happypenguin.org Windows / DOS: http://www.pcgaming.ws
Mac: http://www.macgamesandmore.com/best_freeware.html For the record, my geek-game recommendation
would be nethack: http://www.nethack.org 3. Build something in 3D For this I recommend Blender.
It's a big program to learn, but well worth it. Download from: http://www.b....
Ftp Issue?
Solve? (1) I can not access to my FTP server, and I am sure the data which I am entering. The FTP manager says
that wrong data, password or username. But, I am sure that it is the correct ones, the ones I used
ti access the forum. Please, help me somebody.....
Friend's Tough Financial Situation, No Work
(5) Hi, One of my best friends is in a really bad situation right now...his dad got laid off about six
months ago and hasn't been able to find a job since, and money is quickly running out for them.
It's causing a lot of problems at home and stuff and he's really worried about it and I
don't like seeing him unhappy. /sad.gif" style="vertical-align:middle" emoid=":(" border="0"
alt="sad.gif" /> I guess the job market is just pretty crappy right now, but I wish I could do
something to help my friend and his family. Any comments or help would be appreciated.....
Money For Teens
Good ways to earn money? (15) So I have noticed that many recommends Google Adsense when people wants to earn money by placing ads
on their website(s). The only problem is that you need to be 18 in order to use Adsense. (Maybe you
can get your parents to sign up.) But still I am wondering if there are any good options out there
for people under 18? Maybe there are not any good out there, what do I know. Therefore I am asking
you. Thanks. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
I'm In A Difficult Situation Here
Buying a car and gas prices (14) I'm turning 17 in 2 months, and I have to get a car soon. Bad thing is , is gas prices. It will
keep getting xpensive and more expensive. As a teen in highschool, I can earn about 8 dollars an
hour working a job! But bad thing is the gas prices. I cannot afford all that, and I am totally
dependant on my self except staying at my moms house. Food, clothes, school, gas, and car payment is
all up to me. So I have a question...If I buy a car now, it will keep getting more more
expensive...If I don't have a car, my life would be a total failure and I can't ....
Sats- Seriously Annoying Tedious Situation.
(2) Anyone else had maths SATS today, if so what tier? I sat tier 6-8 (top one xD) calculator paper last
question was easiest on the paper! Cumulative frequencies we covered on Friday in school so that
was easy, the mental test was...well...3 seconds for 1 question to write the answer down, What do
you people think easiest one in 5 years?
....
Ways To Destress And Prevent Yourself From Bingeing
(5) 1. Fit in fitness everyday. Getting regular physical activity works wonders in coping with stress.
Let the treadmill or jogging path help you elevate your mood and release stress. 2. Get out of the
house and enjoy natural sunlight by taking a brisk walk in a nearby park. 3. Keep a journal.
Self-monitor your food, fitness and emotional feelings to become more aware of your triggers and
behavioral patterns. 4. Don't deprive yourself of enjoying the foods you love, for this only
leads to bingeing. Instead, plan to eat a small portion of the desired foods, eat it slow....
Riddle Competition
Solve a riddle to be entered into draw to win cash (0) Hey A British site. Solve the riddle to be entered into free draw. Bit of fun! Riddle
Competition Good luck! /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
alt="smile.gif" />....
Coder Or Designer?
HELP ME SOLVE THIS DILEMMA!!! (15) WHAT DO YOU THINK ABOUT MY DILEMMA? SOME OF MY FRIENDS ARE IN WEB DESIGN BUISINESS AND FEW OF THEM
ARE USING DREAMWEAVER (VISUAL DESIGNING ONLY) AND PHOTOSHOP AND THEY ARE ASSURING ME THAT I CAN MAKE
A GREAT WEB PAGE WITH NO CODING KNOWLEDGE. AT THE OTHER SIDE ONE OF THEM IS WORKING ONLY WITH COREL,
PHOTOSHOP, AND THEN FINISHING WITH CODE (HTML, PHP...) AN HE IS ASSURING ME THAT THERE IS NOTHING
LIKE CODING. I'VE BOUGHT HTML TUTORIAL BOOK AND NOW I DON'T KNOW SHOULD I START LEARNING
CODE (IS THAT NECESSARY) BECAUSE I ALLREADY KNOW TO MAKE A VERY GOOD WEB PAGE ONL....
Tough Situation
I need the money but... (6) I recently got a job at a 5star restraunt by my house. They are a great family of people that work
there, and its really fun. But sometimes it just gets ridiclouse. And its never anyone elses falt
but the owners. The owner is also the boss and he's a cycopath. and agervates everyone. Some
people that have been there for like, 2 or 3 years, have grown out of hiom, and dont care anymore.
hell the one girl actually has some controll over him due to being there for so long. But lemme tell
you, I definatly do not. He hates me! He pushes me so hard, and I know I cant d....
Family Emergency
My dad's situation with low blood pressure (5) At 8:00 AM at the morning of December 1st, my dad Jose Martinez has collapsed in his bedroom and has
been sent by local paramedics to Stevens Hospital in Lynwood, WA, near I live. He suffers with low
blood pressure and is currently in stable condition. My mom and sister are currently at his room at
the ER. I am hoping he will have a good recovery. Please wish my family and me well in this serious
situation.....
How To Save Yourself From A Rape Situation?
Precautions, Self Defense, Safety Guide (13) QUOTE Source : Email - I found this information very necessary for females. How To
Save Yourself From A Rape Situation? Precautions, Self Defense, Safety Guide Through
a Rapist's Eyes This is important information for females of ALL ages . A group of
rapists and date rapists in prison were interviewed on what they look for in a potential victim and
here are some interesting facts: 1) The first thing men look for in a potential victim is
hairstyle. They are most likely to go after a woman with a ponytail, bun, braid or other ....
This Is Quite Possibly The Most Awkward Situation I Have Ever Been In.
(8) Hey guys, I just found out that a close friend "likes" me. I don't know what to talk to him
about becuase i feel akward being around him he is sorta cute, but i dont know....
Best Ways To Reduce Acne
need help (23) Well, i don't have horrible acne, but it is getting worse as times progresses. So i was
wondering if anybody here knows the best medication, facial scrub, etc. that gets rid of acne. I
have tried many different things. I have tried Proactive, Clearisil, facial scrubs, and
astringents-(They clean your face and help kill the acne). I have also decided to cut back on Pop,
candy, and other foods with a lot of sugar, and chocolate (big one right there i am addicted to
chocolate lol). So i am hoping that doing so will help out. But, i also want a good acne reducer
that....
How To Escape A Bad Situation (by Fighting Or Fleeing)
The second in a series on practical self-defense (14) Before you start on this tutorial, which will teach you how to train physically to SURVIVE a hostile
situation, you should first read the previous topic in this series, which teaches you how to prepare
your mind. Preparing the mind is at least as important as preparing the body. You can access the
tutorial on training your mind here: Dealing with Fear in a Hostile Situation If
you've already read the article on 'dealing with fear', you can go on to: Training
your Body for a Hostile Situation! There are two parts to this section ....
Dealing With Fear In A Hostile Situation
The first in a series on practical self-defense (11) Welcome, all. This tutorial will teach you how to think and act in a hostile situation. It
is only the first in a series of four tutorials that will teach you the basics of practical
self-defense. This tutorial focuses on training the mind for a hostile situation - the next tutorial
will teach you how to effectively fight OR flee a bad situation. The costume in the pictures is just
the training outfit in my Ryu, nothing more. ______________ The first thing you must
understand is that when someone attacks you, there are TWO battles that you have to fi....
Best Ways To Make Money In Runescape
(13) 1.) this is the first.... go run nature runes then fletch yew longs and alch them for money you can
keep them noted and alch a few thousand times. if you don't have the fletching level make steel
platebodys which are more time consuming but well worth the while. 2.) merchanting. the best thins
to merchant are new items buy them for under 300k and sell for 500k on the first day of the new
treasure trail release. 3.) pking. start up a pking account withh some friends that you can all pk
on to get items like rune scimitars. 4.) pick flax in camelot then run to the ho....
9 Ways To Promote You Site
(28) Copied from http://www.artadmires.com/eng/resources/articles/article09/ Warning issued. QUOTE
This short tutorial will show you how you can promote your site without paying a cent to anybody.
1. Search Engines: Submit your site to few search engines. There are a lot of places where you can
submit your site to multiple search engines for free. Try submitting your site every 3-4 month so
search engines won't "forget" about you. There are four best search engines. It's Yahoo,
Altavista, Infoseek, and Lycos. They are the few of the best and can bring you t....
Need Advice On Current Situation
(7) Hi I registered for this site after reading some posts in this forum and finding there were some
real people on here. Here's my situation, I've been with my girlfriend for almost two years,
she has two children from previous relationships. I was with her for most of her pregnancy and birth
of her second child. I've come to see the children as mines as well and have helped her with
them the best I can, for a long time I was the only one working to support us while she stayed home
with the kids. Being 23 years old and formerly living with my parents you can ima....
Extremely Awkward Situation
(6) Okay so I have a really awkward situation that I'm facing with this guy: So his name is Kevin,
and we've known eachother for two years. We've been at the same school and have almost all
the same classes. He is really funny and has a great personality, but we're friends, and nothing
more. I'm not attracted to him at all, and I really couldn't see myself dating him. So last
night I was at a party, and Kevin was there, too. We all gathered into one big circle and started
playing truth or dare (how juvenile, I know). This one girl named Ali asked be t....
Basic Ways To Speed Up Your Web Site
(25) Speed is certainly one of the most important factors when it comes to making a successful web site.
These days’ people have high expectations, they expect a web site to load as fast as an application
on their operating system, and therefore even a few seconds of waiting can frustrate them or leave
altogether. A good website should take about 8-12 seconds (for a 56K) to load. The website owner is
going to have to decide how fast its pages are going to be, for example for a multimedia or a flash
site they can afford to be a bit slower than others provided that the users k....
Ways To Make Money On Line For Real
(19) This site is awesome for direction I suggest the Rich *BLEEP* Book ive bought it and it's
shown me alot and ton's of ways to make money on the internet not just e-bay but things like
e-gold and such check out this site Ways To Make Money Online ....
13 Ways To Find Out If Someone Likes You
(30) QUOTE 13 ways to find out if someone likes you For Guys: 1. She makes eye contact and
smiles at you. 2. She calls you for homework... a lot!! 3. She flips her hair when
she's talking to you. 4. She touches your arm when she talks to you. 5. She says, "No,
I'm not telling you who I like!!" with a big smile on her face. 6. She asks you who
you like or who you would go out with seeming interested. 7. When you go to the movies with a
bunch of your friends, she's almost always next to you. 8. She criticizes (put downs) t....
Learn The Ways Of Making Money Online
This i sMy new Site, Hope it Helps (6) Hello Guys, I have made a New Site Enjoy it, hope it helps. My Site /laugh.gif'
border='0' style='vertical-align:middle' alt='laugh.gif' /> Its Not Totaly Fnished ... merged
posts. ....
Riddles
Can you solve 'em? (4) Riddle 1- Just recently, a boy in Washington had his brother murdered in a tragic incident. Set on
finding the murderer, he goes around his giant house to interrogate everyone. Realize now that this
boy's family is rich, so they were so extravagent that they bought a spherical mansion. The boy
goes to his sister's room and asks her if she knows who murdered his brother. She's playing
with Barbie's and she shakes her head. He goes to his parents watching TV and asks them if they
knew who murdered his brother. They seem quite shocked and say no. He goes ....
2 Really Easy Ways To Make Money Online
(16) i have found two websites that make it really easy to make money online. Hits 4 Pay pays you to
read emails and MySurvey.com pays you to take online surveys. i've been using them for awhile
now and have actually received checks!....
C Code, Can U Solve This?
Another interesting problem (22) Hello, Look at the code given below CODE void fun(void) { /* Put your code here so
that main does not print 20 */ } int main() { int i = 20; fun();
printf("i = %d\n", i); return 0; } 1. You are allowed to put your code
ONLY in fun. 2. You are not allowed to change even one character in main. 3. You should not use
functions like exit(),abort() in the function fun. How do I manipulate and change the value of i?
Have fun.......
Looking for solve, situation, php, ways
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for solve, situation, php, ways
*MORE FROM TRAP17.COM*
|
advertisement
|
|