How to joint 2 int??? Programming Software Development by Ken JS Hi, e.g. int a = 20; int b = 07; I want to joint a and b together to get 2007. Anybody know how to do it? lots of help, ken js C# Winform One DataGridView with Two Joint Tables Programming Software Development by gingank Dear All, I want to ask it is possible to do that in c# winform? I got two table which to joint together than display it into one datagridview ? My program is once i key in tag no in the textbox it will display out the result into datagridview with two join tables? Any ideas/example/tutorial that i can follow ? Re: How to joint 2 int??? Programming Software Development by zmariow This should work: [code] int a = 20; int b = 07; string as = a.ToString(); string bs = b.ToString(); string result = as + bs; int result_int = Convert.ToInt32(result); [/code] Cheers :) Re: How to joint 2 int??? Programming Software Development by __misha Here's the simple one [code] int result = a * 100 + b; [/code] Re: How to joint 2 int??? Programming Software Development by zmariow [QUOTE=__misha;425493]Here's the simple one [code] int result = a * 100 + b; [/code][/QUOTE] And what if he wants to join the following two numbers??? int a = 9999; int b = 888; Your solution doesn't work for all numbers :-/ Re: How to joint 2 int??? Programming Software Development by Hamrick [QUOTE=zmariow;425483]This should work: [code] int a = 20; int b = 07; string as = a.ToString(); string bs = b.ToString(); string result = as + bs; int result_int = Convert.ToInt32(result); [/code] Cheers :)[/QUOTE] And without .net this works. [code=cplusplus] #include <sstream> template <class T> T Join( T a, … Re: How to joint 2 int??? Programming Software Development by vijayan121 here is a safer version which performs sanity checks [code=cplusplus]#include <sstream> #include <limits> #include <cassert> // returns 0 on overflow template< typename T > inline T join( T a, T b ) { typedef std::numeric_limits<T> limits_type ; assert( limits_type::is_specialized && limits_type::… Re: How to joint 2 int??? Programming Software Development by Hamrick You might as well change the name from join to join_unsigned_int while you're at it. ;) Re: How to joint 2 int??? Programming Software Development by vijayan121 [quote=Hamrick;425545]You might as well change the name from join to join_unsigned_int while you're at it. ;)[/quote] not really, signed int types are ok if b is not negetive. join( -22, 789 ) gives -22789. however, join( 22, -789 ) would fail an assertion. perhaps, join_integral_types? Re: How to joint 2 int??? Programming Software Development by Hamrick [QUOTE]signed int types are ok if b is not negetive.[/QUOTE] Yeah, join_unsigned_int because signed values abort the program. It doesn't matter if the containing type is signed when you still don't allow signed values. ;) [QUOTE]perhaps, join_integral_types?[/QUOTE] Maybe a rule for negative arguments. Like if there's one negative and one … Re: How to joint 2 int??? Programming Software Development by Ken JS Thanks guys for your help... Re: C# Winform One DataGridView with Two Joint Tables Programming Software Development by Ketsuekiame What version of the framework? How can I make abstraction of multiple types of space rovers? Programming Software Development by ikel … rotation -- for wheel private Joint joint8; // continous rotation -- for wheel private RotateJoint(Joint joint, float angle) { //...something } private DriveJoint(Joint joint, float speed) { //...something } private… Re: How can I make abstraction of multiple types of space rovers? Programming Software Development by ddanbe I don't see an implementation of your Joint class. But to me it seems it could contain a continuous and discrete rotation. If I'm correct, this could simplify things further I guess. Re: How can I make abstraction of multiple types of space rovers? Programming Software Development by ikel ddanbe, At the moment, `Joint` only contain id number and other things but not rotation behaviour. You're right there, I could simplify things further having an interface that define rotation in `Joint` including axis of rotation. Hmm... back to Enterprise Architect... Thank you for your feedback! -ikel IBM and Red Hat announce Linux-on-Mainframe programme Hardware and Software Linux and Unix by newsguy …in the evaluation, deployment and support of this joint platform. It was created in response to …[/FONT] [FONT=&quot] [/FONT] [FONT=&quot]Joint Programme [/FONT] [FONT=&quot] [/FONT] [FONT=&…offerings through the programme 's product development, support and joint solution offerings [/FONT] [FONT=&quot] [/FONT] … Re: Deconstructing List Comprehension Programming Software Development by pixeldroid …print tmpJnts [nt.Joint(u'joint1'), nt.Joint(u'joint2'), nt.Joint(u'joint3'), nt.Joint(u'joint4'), nt.Joint(u'joint5')] Tony…tmpJnts[0] #joint1 print len(tmpJnts[0]) # Error - 'Joint' has no len() print str(tmpJnts[0]) #joint1 print len… why doesn't: print tmpJnts[0] return: nt.Joint(u'joint1') Sometimes it takes awhile for this stuff … Deconstructing List Comprehension Programming Software Development by pixeldroid …:[code] print tmpJnts [nt.Joint(u'joint1'), nt.Joint(u'joint2'), nt.Joint(u'joint3'), nt.Joint(u'joint4'), nt.Joint(u'joint5')][/code] I… Need to be done in XSLT Programming Software Development by roboxslt …<number>1</number> <title>Joint ventures</title> <full>Must foreign designers…? Does the law require that the local contractor control the joint venture?</full> <answer> <p… Submit Button Help Programming Web Development by Ben501wh …=2><b>Is this a single or joint application?</b></font></td>…><select name="Is this a single or joint application?"> <option value="Single">…;Single <option value="Joint">Joint </select> </td> </tr>… Help on this Java error message. Part 1 Programming Software Development by java_starter …';' expected cust1 addAccount(account); // a joint account for jack/debie ^ F:\JAVA\… statement cust1 addAccount(account); // a joint account for jack/debie ^ F:\JAVA…(account); cust1 addAccount(account); // a joint account for jack/debie cust1.getAccount(4);… Function & writing to file problem Programming Software Development by Mr NiceGuy … the angle you get from the robot's joint, ReferenceAngle is the angle the joint should go to and the PWMDudy is… something sent to the DC-motor of the joint to make it move. This because we want to see… different settings in the robot will affect the robot's joint. To be able to compare we will process the data… Large amount of data to load Programming Databases by AmrMohammed I'm working on an application for a joint-stock company. A joint-stock company is a business entity which is owned by… consists of 50 shares, 40 shares and so on. A joint-stock company may have a 1000 shares that are distributed… I just wanted to explain what is the mean of joint-stock company so people know what I want. I already… ASP Form problem - email not coming through Programming Web Development by tinggg …href="/services/PayAndEmploymentEquity/resources/fact-sheets/factsheet-3-joint-working-ed3.pdf">Yes</a>…label for="review">Working in a Joint Employer/Union Review Committee on Pay and Employment …amp; VbCrLf Body = Body & "Working in a Joint Employer/Union Review Committee on Pay and Employment Equity: "… Re: OpenGL java skeleton Programming Game Development by emilo35 …at the brackets. If a joint B is declared within the brackets of joint A, then joint B is a child of… also affects its children, but not its parent. offset = Joint's position relative to its parent boxmin, boxmax = corners that…when animating your model) balljoint = Flags that a child joint is coming up next Now this should pretty much round… Fortran code conversion to Python 3.x Programming Software Development by colby.christensen …the modulus E. Separate with commas:")) # Read in joint coordinates and create point table #jts = eval(input("Enter…('{0:^8}{1:^6}{2:^6}{3:^6}\n'.format('Joint','X','Y','Z')) points =[] for i in range(jts…): #tempjt = eval(input("Enter joint {} coordinates; [jt no.,x,y,z]:".format(i+1… Re: Fortran code conversion to Python 3.x Programming Software Development by colby.christensen … axial force in each member and the displacement of each joint. It is only valid for plane trusses with no zero… axial force in each member and the displacement of each joint. Making a table, help please Programming Software Development by Dio1080 … also. The table should look like this: Income Single Married Joint Married Separate Head of house 50000 9846 7296 10398 8506…, 67700, 141250, 307050); case 1: return //Compute tax for married joint computeTax(income, 12000, 46700, 112850, 171950, 307050); case 2: return… Help Java error message: cannot find symbol Programming Software Development by java_starter … : method addAccount(Account) location: class Customer cust1.addAccount(account); // a joint account for jack/debie ^ F:\JAVA\Java Files\lab 9….0); //accountno =4 cust2.addAccount(account); cust1.addAccount(account); // a joint account for jack/debie cust1.getAccount(4); withdraw(20000.0… Needing help with a C++ program ~ Programming Software Development by fans3267 … that the troll will give them coins depending on their joint behavior when the dragon appears. If they both do nothing…, your program will make its next decision depending on the joint outcome of the game just played. When both the user…