- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
28 Posted Topics
[code] printf("integers not divisible by 2 and 3 between 1 and 100"); [/code]
This may not be your complete code. As far as I can see, you may need - function prototypes before calling them - to be careful with types Furthermore since c++ is there for oop, change whole thing into oop approach (i.e. to a circle class)
- p should start from 2 -inner loop should break if remainder == 0, else it is a prime no.
You need to define suitable types or use type casting. *** Furthermore, you should use code tags when you publish code on this forum.
Another one for a guaranteed result; [code]system("pause");[/code]
Look for the implementation of "InputBox"
how about using a visual c++.net windows forms application, so that you can make use of objects like image boxes etc..
[URL="http://www.codeproject.com/KB/recipes/crc32_dotnet.aspx"]Here[/URL] is a zip one
If you do not want to use managed print controls, I suggest you the following. You can improve this solution. The following code prints a file using default printer in a windows system (you can easily compile that by any C++ compiler, or by a C compiler by modifying the …
That might be what you are looking for [code] //C++ 2005 private: void DeleteIt() { if (listView1->SelectedItems->Count>0) listView1->Items->RemoveAt(listView1->SelectedIndices [0]); } [/code]
1-read the no. of files (N) from the config file to an integer variable. 2- You only need one file pointer to create N number of files in a loop. Name them e.g. file1, file2.. fileN
There are errors in reading from and writing to a file and do-while results in an infinite loop.
if you know/discover your dependencies, you may also use a third party setup script. You may try Innosetup.
There is no subtraction in boolean algebra, but bitwise operations like AND, OR, XOR ... If you look at the ascii table, there is a decimal 32 between lower and upper case. Looking at the workflow in your program, you first print the lower case which has a greater number …
Look for C file operations and also how to get the system date. A little googling will do.
There is a whole lot of events beginning with Cell.. like [code] private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { MessageBox.Show("I have been changed"); } private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { MessageBox.Show("I am being changed"); } [/code]
Well, you need to learn more about variable types and arrays as well. Here is a little help for the last part [code] for(x = 49; x>-1; x--) { if(num[x] % 2==0) { printf ("%i is even\n", num[x]); } else { printf ("%i is odd\n", num[x]); } } [/code]
well, considering that it has not been updated for years, dev c++ has some reported issues with vista. Before forcing yourself into a decision between vista or devc++, you may try the [URL="http://www.bloodshed.net/dev/help.html"]devc++ forums and mailing lists [/URL]here and do further googling.
You can use the DataGridViewImageColumn object. [URL="http://msdn2.microsoft.com/en-us/library/2ab8kd75.aspx"]Here[/URL] is how it' s done.
First thing you will do is set BindingNavigator' s DeleteItem to none from the properties box Doing this, the button will still show but the default event is gone. Double click afterwards on the delete button and include a similar code like that, [code] private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) …
You may use .net controls with asp.net. Here is an article about how to use the treeview control in asp.net 2.0 [url]http://www.15seconds.com/issue/041117.htm[/url]
You can use iteration as follows [code] foreach (Control t in this.Controls) { if (t is TextBox) { //do something } } [/code]
define an array or simply 2 variables. If you will click a button after your selections, check the .Checked property of radio buttons using for example a foreach loop. If you want your variables to change right upon clicking the radio button, you can use the following method in the …
1. while loop performs loop "if" the condition is true whereas do-while performs it "then" checks if the condition is true. 2. getch makes command line wait for an input from you
or set the SelectedIndex property to the index of the item
The End.
yagiD