Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 15-08-2008, 09:08 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2008
Posts: 1
Default C++ Adding, then loop operation


I am very new to programming and I am trying to create an application that will add 1 to 0000000000000000000, once it has added one and creates 0000000000000000001, then if i run the function again it will make 0000000000000000001 equal 0000000000000000002.

Any help would be greatly appreciated
ShArP is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-08-2008, 02:02 AM   #2 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: C++ Adding, then loop operation

0000000000000000000 is no different from 0 (assuming you're just processing them as numbers, not strings)

Code:
int num = 0;

void function()
{ 
  num = num + 1;
}
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 16-08-2008, 12:59 PM   #3 (permalink)
Right Off the Assembly Line
 
L0rd_Aryan's Avatar
 
Join Date: Aug 2008
Posts: 5
Default Re: C++ Adding, then loop operation

are you talking about displaying it in a number of zeros ???
L0rd_Aryan is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java-Swing buttons - adding as array in loop problem ilugd Programming 6 14-07-2008 10:06 AM
The Loop Kingdom abhi.eternal Chit-Chat 1 22-12-2007 07:13 PM
Annoying windows startup loop thingy...Help! ~Lil JinX~ Software Q&A 2 14-06-2007 09:20 AM
How to create a music loop? abhijitroy Software Q&A 5 07-02-2006 02:23 PM
XP-Automatic-updates, infinite restart loop. abhie Software Q&A 9 29-09-2005 07:24 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2