Forum: C++ Feb 6th, 2008 |
| Replies: 7 Views: 1,208 Well, it is "guaranteed" since mark192 says he is using windows XP and not necessarily looking for portability.
On the other hand, neik_e mentions portability problems which is true (+using a... |
Forum: C++ Feb 6th, 2008 |
| Replies: 6 Views: 3,246 Look for the implementation of "InputBox" |
Forum: C++ Feb 6th, 2008 |
| Replies: 7 Views: 1,208 Another one for a guaranteed result;
system("pause"); |
Forum: C++ Feb 6th, 2008 |
| Replies: 10 Views: 2,896 for(n=2;n<=limit;n++)
{
t=0;
for(p=2;p<=n/2;p++)
{
if (n%p==0)
{
t=1;
break;
} |
Forum: C++ Feb 5th, 2008 |
| Replies: 10 Views: 2,896 - p should start from 2
-inner loop should break if remainder == 0, else it is a prime no. |
Forum: C++ Feb 5th, 2008 |
| Replies: 4 Views: 3,401 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... |
Forum: C++ Feb 5th, 2008 |
| Replies: 6 Views: 1,020 You need to define suitable types or use type casting.
*** Furthermore, you should use code tags when you publish code on this forum. |
Forum: C Feb 3rd, 2008 |
| Replies: 20 Views: 3,280 printf("integers not divisible by 2 and 3 between 1 and 100"); |
Forum: C Feb 3rd, 2008 |
| Replies: 5 Views: 767 Try something like that.
main()
{
char no[5], str[10], cmd[5], op[20];
FILE* input = fopen("input4.txt","r");
while(!feof(input))
{ |
Forum: C Feb 3rd, 2008 |
| Replies: 5 Views: 767 look for a list of string functions in C. |
Forum: C++ Feb 3rd, 2008 |
| Replies: 7 Views: 1,321 how about using a visual c++.net windows forms application, so that you can make use of objects like image boxes etc.. |
Forum: C Jan 29th, 2008 |
| Replies: 3 Views: 573 You can look for ShellExecute windows API function. |
Forum: C# Dec 28th, 2007 |
| Replies: 3 Views: 3,325 Here (http://www.codeproject.com/KB/recipes/crc32_dotnet.aspx) is a zip one |
Forum: C# Dec 24th, 2007 |
| Replies: 4 Views: 8,625 Here (http://www.box.net/shared/mf0qiwkggk) is the link to the zipped and compiled "toprinter.exe". Unzip it to the bin folder of your project.
The simple program takes a file name like... |
Forum: C++ Dec 23rd, 2007 |
| Replies: 2 Views: 1,535 That might be what you are looking for
//C++ 2005
private: void DeleteIt()
{
if (listView1->SelectedItems->Count>0)
listView1->Items->RemoveAt(listView1->SelectedIndices... |
Forum: C Dec 22nd, 2007 |
| Replies: 6 Views: 1,086 @sarehu
Thank you for your detailed explanation. After reading job' s problem again, I agree that random access files may not seem the very solution to job' s specific problem. But in case he has... |
Forum: C Dec 21st, 2007 |
| Replies: 6 Views: 1,086 look for "random access files" |
Forum: C Dec 21st, 2007 |
| Replies: 5 Views: 1,406 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 |
Forum: C# Dec 20th, 2007 |
| Replies: 4 Views: 8,625 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... |
Forum: C++ Dec 20th, 2007 |
| Replies: 3 Views: 4,229 There are errors in reading from and writing to a file and do-while results in an infinite loop. |
Forum: C# Dec 16th, 2007 |
| Replies: 2 Views: 5,951 There is a whole lot of events beginning with Cell.. like
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
MessageBox.Show("I... |
Forum: C Dec 16th, 2007 |
| Replies: 8 Views: 2,398 Look for C file operations and also how to get the system date. A little googling will do. |
Forum: C Dec 16th, 2007 |
| Replies: 3 Views: 611 Well, you need to learn more about variable types and arrays as well.
Here is a little help for the last part
for(x = 49; x>-1; x--)
{
if(num[x] % 2==0)
{
... |
Forum: C++ Dec 16th, 2007 |
| Replies: 10 Views: 2,742 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... |
Forum: C++ Dec 15th, 2007 |
| Replies: 4 Views: 1,113 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 devc++... |
Forum: C# Dec 15th, 2007 |
| Replies: 1 Views: 3,306 You can use the DataGridViewImageColumn object. Here (http://msdn2.microsoft.com/en-us/library/2ab8kd75.aspx) is how it' s done. |
Forum: C# Dec 12th, 2007 |
| Replies: 2 Views: 4,819 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... |
Forum: C# Dec 12th, 2007 |
| Replies: 3 Views: 2,221 You may not use dynamic components in html without server side scripting.
You may simulate a treeview with some client side script using e.g. javascript or vbscript. |
Forum: C# Dec 12th, 2007 |
| Replies: 1 Views: 749 You can use iteration as follows
foreach (Control t in this.Controls)
{
if (t is TextBox)
{
//do something
... |
Forum: C# Dec 12th, 2007 |
| Replies: 3 Views: 2,221 You may use .net controls with asp.net.
Here is an article about how to use the treeview control in asp.net 2.0
http://www.15seconds.com/issue/041117.htm |
Forum: C# Dec 6th, 2007 |
| Replies: 6 Views: 5,917 @alc
the problem is.. express version doesn' t have it. |
Forum: C# Dec 3rd, 2007 |
| Replies: 6 Views: 5,917 if you know/discover your dependencies, you may also use a third party setup script. You may try Innosetup. |
Forum: C# Dec 3rd, 2007 |
| Replies: 3 Views: 1,509 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... |
Forum: C# Dec 2nd, 2007 |
| Replies: 2 Views: 1,882 or set the SelectedIndex property to the index of the item |
Forum: C++ Dec 2nd, 2007 |
| Replies: 3 Views: 554 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 |