In c++ is there any function to concatenate an int or a short piece of code i could write that will do this. Everything that i have found so far seems unnecisarily complicated. I was just wondering, because with strings you just add the two strings together, so any integer equivelant.
I thought this would be really simple, but it's presenting some difficulties. If I have std::string name = &quot;John&quot;; int age = 21;  How do I combine them to get a single string &quot;John21&quot;?
Is torque as fundamental a concept as force? I used to think that torque and force were equally “fundamental”. In other words, my understanding was that we usually use Cartesian coordinates in many common problems because it is a convenient system, so as a result instantaneous forces which act in straight lines seem “easier” mathematically but torques require some extra “baggage”. This baggage includes typically teaching that torque is defined in terms of force.  But if say we happened to choose polar coordinates for the problem the situation would appear the other way around. So it would be arbitrary if we chose to define forces in terms of torques instead.  But later on I learned that angular momentum is conserved independently of regular linear momentum (IIRC). Given the definitions of force &amp; torque as derivatives of momentum, this makes it seem much less certain that one should define either torque in terms of force or vice versa — it gives the impression they are more distinct than it first seemed.  That said, as far as I know a lot of physics is about defining &amp; describing “fundamental forces” — not “fundamental torques”.   So is choosing to use either force or torque as the basis of laws &amp; problems arbitrary? Or is there an actual fundamental rationale to when one or the other should be used? How does Neville Longbottom get the Sword of Gryffindor? I recently read the final book of the series. At one point was the vault heist, where the goblin Griphook runs off with the Sword of Gryffindor. Yet near the end of the book, Neville Longbottom suddenly has the sword and uses it to defeat the snake Nagini.  How could this be possible? Griphook wanted the sword because it was goblin-made, so I doubt he would given it over to any non-goblin. How does Neville suddenly get the sword? How to assign values to a MATLAB matrix on the diagonal? OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on anything other than clean PC looks much more complicated than installing Windows. I need to have Ubuntu package + Python 2.7 + C compiler installed. My external hard drive is partially filled, I need to keep all files.   Will Ubuntu run entirely on external hardrive, without writing anythinhg to Windows system folders and to registry?  Can anyone post detailed guide how install Ubuntu on external hard drive? How to remove/install a package that is not fully installed? Why does Stack Exchange ask for a reload on successful automatic login? I'm looking for an answer considering both technical limitations and user experience.   Does it need a reload from a technical standpoint? How to Remove shortcut arrow from desktop icons? How do I turn off the arrow for desktop icons? Is it possible to to take a screenshot of a webpage with JavaScript and then submit that back to the server?  I'm not so concerned with browser security issues. etc. as the implementation would be for . But is it possible? Intuition for uniform continuity of a function on $\mathbb{R}$ How do I delete multiple rows in Entity Framework (without foreach) Fully charged MacBook Air turns off when power cord removed I have a MacBook Air, 2009, with a recently replaced Apple battery in December 2012. Recently, when power cord comes off, the computer shuts down. Also, it usually will not restart unless power cord is attached. How to `bundle install` when your Gemfile requires an older version of bundler? I try to create a 2D game for Android. It looks like Cut the rope (it isn't a clone but it have same level representation) if it has a value. My problem that I can't understand that optimal sprite sizes I should use. I.e. what target screen resolution should I use to sprites didn't have anomalies on HD-devices (like Samsung Galaxy S7 and etc., phones and tablets)?    To make my question is clearer I ask about this 1 unit = X pixels for xxhdpi-screens. What is X?    P.S. Sorry if it's a duplicate I will be grateful for link on this post cuz I couldn't find it. Asymptote: when white isn't white I'm trying to display a white 3D ball with Asymptote (3D PDF), but it always turns up gray:    import graph3; import solids;  defaultrender.merge=true; size(10cm,0);  currentprojection=orthographic(-Z);  //currentlight=Headlamp; //currentlight=light(-10,1,1); //currentlight=White; currentlight=Viewport;  draw(unitsphere,rgb(1,1,1));   I understand it's a lighting issue, and I've tried playing with its settings (the lines commented out in my source are some of my attempts), but I never manage to have white be white. If I understand correctly, I need a whiter diffuse component in my light, but I cannot see how to achieve that. And the documentation is not very clear…    This will be part of a molecular model, and the rendering I'm going for it something like this: What's the preferred method of writing AJAX-enabled plugins? I'm downloading GTA V. After 20gb / 100gb I paused my download for restarting my pc. Then download restarts from 0%.  Why this could happen? Can I restart my PC during downloads without losing progress? I've heard that special relativity makes the concept of magnetic fields irrelevant, replacing them with relativistic effects between charges moving in different velocity frames. Is this true? If so, how does this work? (Note that I have used bold text frequently simply to highlight the key points of my question for those who do not have the time to read through it thoroughly (it is not very long, however); I hope this is not considered offensive.)  There are many textbooks on multivariable calculus. However, some textbooks on multivariable calculus do not focus very much on the theoretical foundations of the subject. For example, a textbook might state a result along the lines of "the order of partial differentiation is immaterial" without proof and ask the student to use this rule to solve problems. Similarly, theorems such as those due to Green and Stokes are often not proved in their full generality.   Therefore, I ask the following question:      What are some good theoretical   multivariable calculus textbooks?   Since "theoretical" is somewhat ambiguous, let me state the following criteria which I would like a "theoretical" textbook on multivariable calculus to satisfy:   The textbook should be rigorous and it should not state a theorem without proof if the theorem is proved in at least one other multivariable calculus textbook. (Of course, the textbook may omit certain theorems; however, this criterion at least ensures that major theorems in multivariable calculus are not stated without proof and used purely for the sake of computations. Also, this criterion permits the textbook to state an interesting theorem if it is beyond the scope of all multivariable calculus textbooks.) The textbook should be primarily based on developing the theoretical foundations of multivariable calculus; therefore, applications such as learning how to compute the partial derivative of a function, learning how to solve extremum problems, learning how to compute etc. should be kept to a minimum. In particular, the textbook can assume that the reader has already seen at least an informal treatment of the subject where these aspects are emphasized. The textbook should have a rigorous treatment of differentiability in $n$-dimensional Euclidean space (e.g., the inverse and implicit function theorems should be proven), Riemann integration in $n$-space, and differential forms (e.g., Stokes theorem should be proven). It would also be a bonus if the book treated the general concept of a manifold. Textbooks with minimal prerequisites are preferred; however, please feel free to suggest books meeting the above criteria even if the prerequisites are quite demanding. Finally, it would also be preferable, but not essential, for the book to only treat multivariable calculus.   Examples of books meeting the above criteria: "Analysis on Manifolds" by James Munkres, "Principles of Mathematical Analysis" by Walter Rudin, and "Calculus on Manifolds" by Michael Spivak.   Although I have studied theoretical multivariable calculus already (four years ago), I could never find "the perfect book" (relative to myself, of course). Every book has its virtues; Rudin for its elegance, Munkres for its beautiful exposition, and Spivak for its "quick and dirty" approach. I am hoping that someone will be able to suggest a book that (relative to myself) is "perfect". Also, this question can be useful to other students who have not yet studied the subject and wish to learn it.   Thank you very much for all answers! Please do feel free to suggest as many books as you can think of so we can form a big list. Also, please try to explain why a particular book is good or at least why you think it is good. I suppose it is fine to suggest a book that is already suggested provided you have a different view as to why the book is good. GSC: How to move a site from a domain to sub domain, sub folder or new domain with a sub folder? Is it possible to tell Google's Webmaster Tools that our site hosted on www. has moved to a sub folder, sub domain or a new domain with sub folder? Would spending one more year as an undergraduate adversely affect my chances of getting into a graduate program?   I wasn't really thinking about economics PhD until recently so my GPA is not too impressive and I lack in math courses so I've decided to spend one more year to boost my GPA taking upper level courses and get a math minor.  However, could the very fact of spending one more year to finish college be a disadvantage of getting into a graduate program?