Total members 10249 | Gratitudes |It is currently Thu May 17, 2012 7:45 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 6 posts ] 
Author Question
 Question subject: c++ program
PostPosted: Tue Aug 23, 2011 11:01 am 

write a program using function to swap the two numbers Programmer:  


TOP
  
Reply with quote  
 Question subject: Re: c++ program
PostPosted: Tue Aug 23, 2011 10:12 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2272
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
dear , we don;t solve full assignments here , you have to give it a try ( best effort) anyway , this is one is simple

Code:
  int num1=34;
  int num2=35;
  int temp=0;

   temp=num1;
   num1=num2;
   num2=temp;

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: c++ program
PostPosted: Fri Sep 02, 2011 8:17 pm 
Offline
Beginner
User avatar

Joined: Sun Jan 09, 2011 2:16 pm
Posts: 56
Has thanked: 1 time
Have thanks: 0 time
Hi bro..can we swap two variables without operators? if yes how?

_________________
technoyouth


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: c++ program
PostPosted: Sun Sep 04, 2011 1:32 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2272
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
without equal operator ?

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: c++ program
PostPosted: Sun Sep 04, 2011 9:45 am 
Offline
Beginner
User avatar

Joined: Sun Jan 09, 2011 2:16 pm
Posts: 56
Has thanked: 1 time
Have thanks: 0 time
without arithmatic oprators..
But bro is it possible to swap without equal operator?

_________________
technoyouth


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: c++ program
PostPosted: Thu Sep 08, 2011 10:27 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2272
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
how !!! i think it is impossible ? :)

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 6 posts ] 
Quick reply


  

 Similar topics
 I need you to help me to solve this program by c++ language
 How to write a JSP Program to manipulate Last Date visited
 C C++ program help using class
 how to write a "c' program on fibannoic series
 Java Program for communicate PC and Mobile
 java chat program written by Mr.muhammed.
 HOW TO DO C++ PROGRAM?
 run .exe program in matlab
 what is the output of this program and how it be?
 Need help with code for a while loop program

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team