Tuesday, July 14, 2009

In linux which function will do the work of flushall() function in C?

flushall() function is ued to clear the buffer in ansi C.


in linux flushall() is showing error.(undefined reference )

In linux which function will do the work of flushall() function in C?
flushall is not ANSI C.





For linux, maybe fpurge and __fpurge are what you are looking for?
Reply:Good places to post LINUX questions:
Reply:C is a programming language


Linux is a operating system





you won't have the same function.... :s





there's no output buffer to flush in a operating system.

sundew

How can I optimize a C++.NET DLL?

I've just finished creating a .NET Class Library DLL of a C++ Application I've been working on.





It mainly deals with graphics processing routines and the purpose of the DLL is so that I can use it with my primary application which is written in C#.





I've successfully added the DLL as a reference and I can call the functions but some of the routines that take 1 second to complete when run in standard C++ take nearly 50 seconds to complete when called from C# across the DLL.





I wrote a quick function to return a Bitmap loaded from file across the DLL and C# was able to get *this* done in a second, so I'm assuming it's my Bitmap filter routines that need optimizing.





Does anyone have some helpful tips on how I can re-do the DLL without major routines re-writes or optimize it so that the processing times are about the same as they conventionally are?





Thanks!

How can I optimize a C++.NET DLL?
So that i understand this correctly, you wrote a DLL in C++ and are referencing it from C#...Makes sense....And you mention that that DLL, when it takes action, normally thakes 1 second to process a loaded bitmap (using your filter routine) but when you call that same C++ function(s) from your C# app then the result takes 50+ secs?





And you've narrowed it down to not be the problem of the Bitmap loading (either from C++ or C#) but potentially the Bitmap filtering routines held in the C++ DLL when being requested from C#?





Not sure if you would want to do this but have you tried inlining the C++ unmanaged code routines within your C# app and see if that helps (C# can execute C++ code too -- in unmanaged mode, of course).





It is a bit strange to me why your routines take 50+ seconds when being requested from C# because i've done some very intense graphical stuff in the same manner (C# to C++ dll) and have not experienced this before. Granted the DLL and its dependent libraries are not loaded at runtime until required by the C# code and so when you make your requests it is technically then starting to put your code into memory and process it (and its supporting libraries) -- this is possibly the slow down...You could have it loaded immediately into your process space when your c# code launches


I am looking for a rare book entitled something like, 100,000 Years B. C. Giordano Bruno may be referenced.?

It would be a book on Philosophy or Spirituality.

I am looking for a rare book entitled something like, 100,000 Years B. C. Giordano Bruno may be referenced.?
Have you tried on Ebay or Amazon.com ?
Reply:Check bigjar.com in Phila Pa. Phila is full of used and rare book stores.


V=u+at which means ds/dt=u+at. Then integrate both sides and s=ut+0.5at^2+c where c is a constant but why is c

v=u+at which means ds/dt=u+at. Then integrate both sides and s=ut+0.5at^2+c where c is a constant but why is c always left out when we have a reference point?





Side question also related to projectile motion:


How does air resistance affect the range of the motion?


How does the angle change ,compared to the angle without air resistance to reach a point, when there is air resistance to reach the similiar point?

V=u+at which means ds/dt=u+at. Then integrate both sides and s=ut+0.5at^2+c where c is a constant but why is c
There are infinitely many curves that satisfy the differential equation s' = u + at. We need information, to uniquely identify the required curve.


Given a reference point is an initial condition.





Your side question i am not sure of because its been a long time since i did physics,
Reply:The constant c is left out because the reference point constraint defines the constant. Note that if you did not define u, you would have TWO constant terms for the displacement eqtn, c1*t and c2.





Air resistance slows the projectile, and the total range will be lower than in a vacuum.





The shape of the path of the projectile in a vacuum is a parabola. So if it is projected upwards at an angle theta and the target is at the same level, the projectile will hit at the angle theta.


For a projectile in air, the angle at which the projectile hits the target is greater than theta.
Reply:s=ut+0.5at^2+c





This is a general solution.





You have to find the value of C from the initial condition.





That is valid for any integration.





Now when t = 0 we know S = 0.If you wish you can take it to be some value C.





If we take S = 0 when t = 0, then putting these values in the equation





s=ut+0.5at^2+c , we get C = 0.





Thus in all equations we assume that at the start the distance is zero.





If it starts from some distance c in the beginning, then the equation is





s=ut+0.5at^2+c or





[s-c] = ut+0.5at^2.


--------------------------------------...





In projectile motion, if there is resistance due to air, then both the horizontal and vertical motion are affected by the resistance.





If ma is the force of friction, then a is the acceleration opposing the motion.





Then the verrticl motion we use [g-a] instead of g alone.


The vertical acceleration decreases.





and in horizontal motion the equations to be used are





v = u –at . s = ut -1/2at^2 , v^2 –u^2 = -2as etc and solve accordingly





t=The angle is always determined by the ratio of the horizontal and vertical velocities at that instant
Reply:Because c represents the initial position(initial value of s) and at a reference point you´´ll take it normally =0


The influence of air resistance is very complicated and the differential equation is completely different
Reply:♥ sorry I’m late with my answer; let me also put in a few words.


♠ constant c in


s=ut+0.5at^2+c solution


of differential eqn s’=u+at


is always taken into account!


Its value depends on initial condition attached to differential equation.


☺If initial condition says “at t=0 s(0)=0” then


s(0)=u*0+0.5a*0^2+c, hence c=0; thus your final solution looks


s(t)=ut+0.5at^2+0, that is s(t)=ut+0.5at^2;


☻Suppose initial condition says “at t=0 s(0)=7.7”; Then


s(0)=u*0+0.5a*0^2+c, or 7.7=u*0+0.5a*0^2+c,


hence c=7.7; thus your final solution looks


s(t)=ut+0.5at^2+7.7; c is present!


♦♦ your Side Question is a real headache in artillery schools coz drag force of air and wind has a great effect on hitting a target successfully;


E.g.: differential equation with constant drag force in still air looks:


y’’ +ky’ +g=0, x’’+kx’=0, where x=x(t) and y=y(t) are describing trajectory coordinates of projectile with initial conditions x’(0)=u, x(0)=0, y’(0)=v, y(0)=0, while k should be found experimentally;


♥ the solution of this eqn looks:


x=u*f(t), y=(v +9.8/k)f(t) –9.8t/k, where f(t)=(1-exp(-kt))/k;


now if k → 0 (drag force is negligible - vacuum!),


then x=u*t and y=vt -0.5gt^2 represent recognizable parabolic trajectory!


♥ conclusion: 1)the trajectory in air is lower than that in vacuum; 2)the projectile will hit the ground sooner than in vacuum;


since tan(θ) =u/v, and muzzle speed w=√(u^2 +v^2) is constant for the given cannon, then 3) launch angle θ must be greater in air than that in vacuum.
Reply:Usually c is left out because it is always assumed that s = 0 for t = 0.





For general conditions the C constant cannot be forgotten. Its definite value will depend on the initial conditions.





Side question: Air resistance. The air friction force obeys to the following approximate law:





f = k* v^2 (1 + alpha*v^4)





(assuming the body is not too small, u is not too small and u not of the order of the sound speed).





For a free fall you can integrate the equations (hyperbolic funtions, you can find also that there is a limit speed), but for a general balistic motion the only way to find the trajectory is by computer simulation. It is very easy, Quick Basic or Borland Pascal are enough, not forgetting to use double precision arithmetic.





Then you can find that the angle to reach the maximun distance is less than 45 degrees. For u = 200 m/sec and K=0.001 (alpha= 0) the angle found is 36.7 º and the max high = 128.6 m, with the projectile falling at a distance = 1274 m. Time on air is 16.5 secs. Without air resistance the figures are: 3911 m distance, max high 347 m, time on air 24 secs.





I apologize for my poor English.





Note: Were you interested on the subjetc, I could send you the source BASIC code. Comments are in Spanish, but the instructions can be easily understood.





Hello again! at home now. From the link





http://pedroweb.dyndns.org/ashow





you can download the projectile motion simulation code (QuickBasic45) and the executable module (DOS environment). I translated the prompts into English. Resulting figures are written in an ouptut file so you can plot the trajectory with Excel or any other tool.
Reply:yes you are right.but i willrewrite the whole enunciation and solution:


suppose a particle starts(at t=0) ftrm positon s(0)and initial velocity u


and moves with uniform acceleration (constant) a along a straight line. Find the expressions for the velocity v or v(t)%26amp;position sor s(t) at time t


Solution


dv/dt=a


integrate with respect to t


v=at+B


to find the constant B, we use the initial condition v=u at t-0


u=0+B


substitute B=u above, we get expression for v(t)OR v


v=u+at


OR ds/dt=u+at


integrate with respect to t again;


s=ut+1/2at^2 +C


to find the constant C, we again use the initial condition: when t=0, s=s(0).


s(0)=C


Putting C=s(0), we get the expression for s(t) abbreviated to s


s=ut+1/2at^2+s(0).


so yor c=s(0) given by the initial condition.


sometimes we take the starting point as origin, then s(0)=0


and then the equation reduces to s=ut +1/2at^2


C++ question?

Please tell me in C++ how does return *this; relates to returning a reference in assignment operator overloading





I am confused because this is a pointer to the current object and the return value of the function is ClassName %26amp; which is a reference. so how can ClassName%26amp; be the return type when we are returning using return *this; statement.





sample code:





MyClass%26amp; MyClass::operator=(const MyClass %26amp;rhs) {


... // Do the assignment operation!





return *this; // Return a reference to myself.


}

C++ question?
well a reference is like a pointer whose address you can't set so *this returns a MyClass Object and c++ can automatically make a MyClass reference from an objec.t

baby breath

If I'm writing a VB.NET command line app, how do I reference the command line parameters?

for example, if I type:





C:%26gt; myapp.exe -s -t





how do I reference the command line parameters ("-s" and "-t") so I can use them in my application?

If I'm writing a VB.NET command line app, how do I reference the command line parameters?
Re-declare Main like this:





static void Main(string[] args)





(that's C# syntax btw)


Pointer to reference conversion?

in c++ how do I convert a pointer to a reference without using rtti depedency, I know its dangerous but the conversion is only made after a null pointer check has been made

yucca

Reference books?

Which author's book(Reference book) is the best for 10 th C.B.S.E board exam for all subjects?

Reference books?
HI there :) whosever you are, let me tell you that the 10th boards are going on and are about to be finished!!!!





But if you'll be doing 10th in 2008-09, then i think there are different BEST books for each subject.





Maths- R.D. Sharma, Together with


Science- V.K, together with





(together with is fine. i'd rate it 3.5/5 but i think our NCERT texts are the best!)





S.st- together with


Hindi- together with


English- BBC.





Anyways best of luck to you. :))


CATHOLICS: Please provide a Biblical reference for the catholic practice of blessing pets.?

Thanks!





Saying that "one of the saints did it b/c he loved animals" is not a biblical reference.

CATHOLICS: Please provide a Biblical reference for the catholic practice of blessing pets.?
Deu 28:4 Blessed shall be the fruit of thy body, and the fruit of thy ground, and the fruit of thy beasts, the increase of thy cattle, and the young of thy flock.





Deu 7:14 Thou shalt be blessed above all peoples: there shall not be male or female barren among you, or among your cattle.





These are but a few of the blessings of obedience to the Law. I dunno. Nothing is impossible with God...I sort of grimaced when I heard about the blessing of dogs.
Reply:It's logical folly to condemn things not listed in the bible. You drive a car and use a computer don't you? See those listed in the Bible anywhere?





EDIT: All right, we'll change the way we look at this then. Tell me in the Bible where it says you shouldn't bless your pets. See the problem now? Same deal with infant baptism. Not mentioned at all. So if the Bible's silent on it you shouldn't assume it's good OR bad.
Reply:*Is Catholic*





Sure not a problem.





First though let me chide you. In Catholicism, scripture is not the bedrock fundamental to what we believe. We are not a "people of the book", but rather a people of Christ. Scripture exists for Catholics not as an instruction manual but rather as something that testifies to the Faith, which predates the writing of scripture, being true.





Here is your scripture verses.





First please memorize John 21:25.





Now let me show you how scripture testifies to the Catholic practice of blessing pets.





Read


Zechariah 14:20-ff


Romans 8:18-22





Now the day of the LORD is present now in time. The eschaton has broken into the middle of time, and that which we await, Christ, is now present. What does it mean that things in Zechariah have inscribed upon them "Holy to the Lord"? If you have read your books of the Law you understand that to be such, the item must have been sanctified and blessed by the priests. In Judaism, that which was "Holy to the Lord" served in the temple in the religion of God (read the books of Moses), but in Zechariah we find that common things in the Day of the Lord are inscribed with "Holy to the Lord". This shows that all of creation will be in the service to the Lord. Creation itself will be sanctified and blessed by the priests of the Lord.





Now look at Romans. What do we find? St. Paul says that creation (and this includes animals and pets) has been waiting for the revelation of the sons of God and to be redeemed itself. What does it mean according to St. Paul for creation to be redeemed? It means to be put into the service of Christ instead of service to self. How is creation redeemed? It is redeemed through the sons of God..or rather through Christians. How is this done? By being sanctified, blessed, and put to the service of Christ. Each part of creation must be inscribed with "Holy to the LORD" on it.





So now then why are pets blessed? It is to fulfilled the need of creation and the command of God to sanctify and make holy all things.





Thus a Christian who does not seek to sanctify and bless the world around him, including his pets, does not act in accordance with scripture.





Message me if you have any follow up questions or other questions.
Reply:Please provide a Biblical reference that EVERY practice of faith must be found in the Bible
Reply:Do you really have a problem with Catholics blessing pets? How could you possibly have an issue with that? And in case you didn't already know, Catholics don't base every little detail on the bible. They're a little more well-rounded than that.
Reply:As you may already know, Catholics do have extra-biblical traditions. This is not a problem for Catholics, but it does seem to be for people of other faiths. Why not just let them have their traditions? If you don't like them, don't become a Catholic.
Reply:Blessing ANIMALS is fine. Saying that you own an animal is not. They deserve a life of their own. RESPECT THAT.
Reply:Try 1 Timothy 4:4-5.





And by the way, blessing animals is not required of Catholics. Nor does this occur (on or near the feast day of St. Francis, or any other day) in every Catholic parish.





What is your objection to asking God's blessing on what He has made, especially since the effects of Adam's sin have also effected all creation?





Edit: "Jesus did not die for animals!!!"


Well, no kidding. Who said He did? It's you who is stretching things to this meaning, not me.





You didn't want an answer.
Reply:Where in the bible does it say to break away from the one true church that existed since christ.





Where in the bible does it say thay communion in symbolic.





Where in the bible does it say not to baptise infants.





Where in the bible does it say that you should not confess your sins to others.





Where in the bible does it show Jesus not giving the apostles the power to forgive sins.





Where in the bible does it tell you to take out the books you dont like to fit your doctrine.





Where in the bible does it say that you can interpret the bible as you see fit without church tradition.


Any SC judgement saying that a writ can be issued for matters where a direction under 482 Cr.P.C cud be given?

there is a supreme court judgement which says that a writ under Article 226 can be issued in such matters where a direction can be given under section 482 of Cr.P.C. i need the judgement references....

Any SC judgement saying that a writ can be issued for matters where a direction under 482 Cr.P.C cud be given?
There are several judgments of the SC. To cite a few





1) State of Orissa Versus Debendra Nath Padhi


2005 (1) SCC 568





2) N. Natarajan Versus B.K. Subba Rao


2003 (2) SCC 76, 2003 AIR(SC) 541, 2002 (9) Scale 16, 2002 (8) Supreme 651, 2002 (7) SLT 378, 2003 (1) SRJ 507, 2003 (109) CrLJ 820, 2003 SCC(Cr) 437, 2003 (1) Crimes 235, 2003 (1) CCR 36, 2003 (2) CRJ 410, 2002 (10) JT 1





3) A.V. Mohan Rao %26amp; Anr. versus M. Kishan Rao and Anr


2002 (111) CC 390, 2002 (6) SCC 174, 2002 SCC(Cri) 1281, 2002 AIR(SC) 2653, 2002 (S1) SCR 175, 2002 (5) JT 180, 2002 (5) Scale 218, 2002 (5) Supreme 8, 2002 (4) SLT 429, 2002 (7) SRJ 250, 2002 (3) CCR 33, 2002 (3) RecentCR 561, 2002 (5) CRJ 77, 2002 (3) SCJ 381, 2002 SCC(Cr) 1281, 2002 (3) Crimes 1





http://www.firstappeal.com


What does H.C.F. stand for as referenced in Mere Christianity by C.S. Lewis?

He doesn't explain in the book, but a quick search indicates that Lewis was referring to the mathematical term "highest common factor". (This is the same thing as "greatest common divisor".)





In the context of "Mere Christianity", Lewis is using this term to mean those beliefs and practices that all Christians share, but that are not shared by non-Christians. It's what Lewis considered to be the core of Christianity that remains once the differences between Catholics, Episcopalians, Methodist, Presbyterians, etc., are all stripped away.





In "Mere Christianity", Lewis attempts to explain what this HCF or common ground for Christianity actually is.

What does H.C.F. stand for as referenced in Mere Christianity by C.S. Lewis?
This is just a guess... Holy Christian Faith... maybe.





That would be a reference to the sacrifice gospel preached by Paul. But of course Jesus preached the Kingdom Gospel which was an entirely different thing.

chrysanthemum

What is the meaning of B.C. and A.D. and why we use it?

Is it right that we are in 2007A.D.? how do we use B.C. and A.D.? what is the reference point? Is it After death of Christ? or B.C. before Christ?

What is the meaning of B.C. and A.D. and why we use it?
B.C.=Before Christ


A.D.=After Death
Reply:Basically, you've got it. The cross-over point is the birth of Christ, BC= Before Christ, AD=Anno Domini (Year of our Lord). There was no year 0 (although I've had a professor of math try to tell me there has to be because if you look at any number-line, there's always a 0 between -1 and +1). Technically, there wouldn't have been a 1BC AND a 1AD (unless Christ was born midnight December 31), since the same year would've been partially both.





The current preferred terminology is BCE (Before Christian Era) and CE (Christian Era) to recognise the fact that when historians originally dated the birth of Christ, they got it wrong and Christ was actually born in the year "called" 5BC. But clearly Christ can't be born before He was born and equally clearly we can't redate every book, every document, every medical and legal record, etc. so BCE/CE was chosen as a means of indicating "we know the calendar is out by 5 years and the actual date is 2012 but we're going to keep on using the current numbering system".
Reply:A.D means anno domini which is a year in the christian era and B.C means before christ
Reply:It used to be Before Christ and Anno Domino which is Latin for, I think, the year of our Lord. It seems to me people are now saying Before the Common era for B.C. I guess it's PC to use that now.
Reply:BC stands for "Before Christ". AD stands for "Anno Domini", which is Latin for "In the year of our Lord". They're Chrisitan references using the birth of Christ as the reference point. Some people are now using "BCE" (Before Common Era) and "CE" (Common Era) instead.
Reply:In Catholic terms...


A.D = After Death


B.C = Before Christ


but..


In more Modern terms..


B.C.E = Before Common Era


C.E = Common Era
Reply:Actually, now we use B.C.E and C.E. Before Common Era and Common Era. That's because AD means ano domine (in the year of our Lord) but not everyone believes in Christ as being Lord and Savior. So, now we use less religious words.
Reply:yes we are in 2007 AD. and b.c means before christ and a.d means after the death of christ.
Reply:B.C.-Before Christ


A.D.- Anno Domini (the Year of of Our Lord-birth of Christ)


We use it to describe timeframes and give a reference point to time. A.D. does not refer to the death of Christ.
Reply:0BC was the year christ died. then it was 1 AD,





12bc 11bc 10bc.....0......10AD 11ad 12ad





and so on.
Reply:Anno Domini (Latin : "In the year of (Our) Lord"), abbreviated as AD or A.D., defines an epoch based on the traditionally reckoned year of the conception or birth of Jesus of Nazareth. AD is also an abbreviation for Christian Era. Similarly, Before Christ (from the Ancient Greek "Christos" or "Anointed One", referring to Jesus), abbreviated as BC or B.C., is used in the English language to denote years before the start of this epoch.





The designation is used to number years in the Christian Era, conventionally used with the Julian and Gregorian calendars. More fully, years may be also specified as Anno Domini Nostri Iesu (Jesu) Christi ("In the Year of Our Lord Jesus Christ"). 'Anno Domini' dating was first calculated in 525 and began to be adopted in Western Europe during the 8th century.





The numbering of years per the Christian era is currently dominant in many places around the world, in both commercial and scientific use. For decades, it has been the global standard, recognized by international institutions such as the United Nations and the Universal Postal Union. This is due to the prevalence of Christianity in the Western world, the great influence of the Western world on science, technology and commerce, as well as the fact that the solar Gregorian calendar has, for a long time, been considered to be astronomically correct
Reply:AD stands for the year Christ was born in, not after he died.





Its short for Anno Domini, meaning "In the year of our Lord"
Reply:BC means before Christ AD stands for anno Domini and was used after Christ died.


Can you reference a referenced fact?

If you are writing a scientific paper, and there is a fact which is stated and referenced in another paper, and you want to use that fact in your paper...





A. Do you have find the original article and look for the fact and cite it





B. Or do you just cite the reference without having to look it up





C. Or can you just cite the paper where you found the fact?

Can you reference a referenced fact?
C.u can just cite the paper where u found the fact
Reply:you should look it up, just in case it was referenced wrong. Usually that doesn't happen, but you never know.


If an object is moving to a distant point at a speed approaching c, does the distance in between contract?

According to the Lorentz Transformation, an object, as observed from a "stationary" frame of reference, moving at a speed approaching c will contract in the direction parallel to the direction of motion.


Say an object is moving towards a distant star with a speed approaching c. The length of the moving object will contract in the direction of motion as observed from an outside frame.


Here's the question: Can't it be said that the distance between the moving object and the distant star it's traveling towards is also contracting?


I'm not talking about the fact that the object is moving towards the star, %26amp; that's why it's getting closer. I mean that the effects of the Lorentz Transformation are also contributing to the contraction of the distance.

If an object is moving to a distant point at a speed approaching c, does the distance in between contract?
yes, and this is actually observed in nature. fast atomic nuclei constantly rain down on earth, and sometimes, one will strike an atomic nucleus in earth's upper atmosphere. when one does, a particle called a muon is created. muons are very short-lived and should not have time enough to make it to the surface, but they do. the muons are traveling so fast that they see the distance between the upper atmosphere, where they originated, and the surface, where we detect them, as much shorter than we do so they have enough time to travel the short distance before decaying. also, we see the time of the muon dilated so much that they exist long enough to reach the surface.
Reply:yes it contracts but in the frame of the objet, in the rest frame the length is still the same
Reply:Yes and No.





In the "Frame of Reference" yes, in the "real universe," no. You can't actually make shortcuts in nature yet. And any Shortening is illusionary based upon the principle of your approach "towards the speed of light" and not based in the "universe at large." So, when you "slow back down" the illusion drops and you find yourself further away than you expected. However, you have to realize, that according to those "observing you" you yourself "forshortened also." Meaning what was a 1,000 ft spaceshp may have looked only 100 ft long when obseved from outside in the regular universe. However, this too was corrected when speed approached "normal velocities."
Reply:It is the length of the object itself, measured from the original "at rest" frame of reference, that contracts, and the mass increases. At C the length is zero, and the mass is infinite, obviously asymptotic (not achievable).


Time also slows, and this has been tested at much lower speeds with extremely accurate cesium clocks.
Reply:Yes
Reply:Yes. That's why ultra-relativistic muons are able to make it to detectors here on Earth before decaying.


What does R.S., 1985, c. 30 (4th Supp.) means in Canadian law?

I have to translate a Canadian Act: Mutual Legal Assistance in Criminal Matters Act R.S.,1985, c 30 (4th Supp). From what I understand "R.S.,1985, c 30 (4th Supp)" is like a reference but what I don't understand is that why after that it says " [1988, c 37, assented to 28 July, 1988]? What happens with the year 1988? Or chapter 37? And why "assented to 28 July 1988" while the reference after the title of the Act is R,S, 1985.....? That means it became an Act in 1988 but it was published in the RS in 1985? And what is a Supplement exactly? Anyone who knows about this, please help. I am so desperate.

What does R.S., 1985, c. 30 (4th Supp.) means in Canadian law?
It mean is was a 1988 Act which was supplement by the 1985 revision act which suppose to add on, change or delete something from the 1988 Act

daffodil

There are two types of ____ parameters: value parameters and reference parameters.?

There are two types of ____ parameters: value parameters and reference parameters.





A. actual


B. formal


C. active


D. passive

There are two types of ____ parameters: value parameters and reference parameters.?
The answer should be A. Because a formal parameter is just a dummy parameter.





Value parameter is the one that is just a copy of one parameter. and reference parameter is the one that contains the pointer to one parameter. when reference parameter is changed the original value is changed. but it does not happen in the case of value parameter.


C++ which two types of parameters? (more details)?

There are two types of ____ parameters: value parameters and reference parameters.?





A. actual


B. formal


C. active


D. passive








the test says the answer is A. but in the book it shows the answer as being B. so I'm really confused %26gt;_%26lt;

C++ which two types of parameters? (more details)?
They are function parameters so the answer is B - formal.





Value parameters are used to pass information into a function. Reference parameters are used to pass information in and out of a function.





i.e. type function-name (formal parameter type list);


The term angle of deviation is used in reference to ?

The term angle of deviation is used in reference to?


A polarizer.


B prism.


c.lens.


D. an analyzer.

The term angle of deviation is used in reference to ?
prism.





(polarizer - phase shift; lens - angle of relection,refraction; analyzer - phase)


How can I reference part of an Excel page in the header?

I have got a spreadsheet to repeat a title row on every page when it prints.


Is it possible to have something in this title row reference a cell on each page so that when it prints a different value will appear on each page?





I don't know if I'm being clear so here's the technical bit.





Suppose I use page setup to have row A repeat on every page I print, and then I have page breaks before row C, D. Can I have cell A1 reference cell B1 on page 1, C1 on page 2, D1 on page 3 and so on?

How can I reference part of an Excel page in the header?
In Page Setup up on the Sheet tab, there is an option of Rows to Repeat. This will use that row for the top of all pages printed.
Reply:use the help, not real people.

hyacinth

Error with Visual C++ Express 2005?

When I try to compile my C code in Visual C++, I constantly receive the following error message:


MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup


C:\SDP\Debug\SDP.exe : fatal error LNK1120: 1 unresolved externals


Does anyone know how to fix it?

Error with Visual C++ Express 2005?
1st place you should look anytime you have a problem with any thing microshaft related is MSDN..





Try this link





http://forums.microsoft.com/MSDN/ShowPos...