15,905,912 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 7904482 (Top 40 by date)
Member 7904482
18-Jul-11 5:16am
View
not yet
Member 7904482
13-Jun-11 3:26am
View
I need text box to get different 0,1 Strings
Member 7904482
13-Jun-11 3:25am
View
but it has this error
'System.Windows.Forms.KeyEventArgs' does not contain a definition for 'KeyChar' and no extension method 'KeyChar' accepting a first argument of type 'System.Windows.Forms.KeyEventArgs' could be found (are you missing a using directive or an assembly reference?)
Member 7904482
13-Jun-11 3:22am
View
I use this but it accepts all other things
Does it need else Condition?
Member 7904482
13-Jun-11 3:19am
View
it is just for character but I need for Strings
Member 7904482
13-Jun-11 1:57am
View
thanks
but where I have to use them?
could you edit my code?
thanks
Member 7904482
13-Jun-11 1:38am
View
thanks
Member 7904482
13-Jun-11 1:12am
View
can you help me more
I dont understand what you mean
Member 7904482
12-Jun-11 13:47pm
View
this is new code but it has a lot of errors:
#include <iostream>
using namespace std;
class CBoolOperate{
public:
CBoolOperate ()//default constructor
{
bool a[5];
bool b[5];
a[5]=b[5]={0};
};
~ CBoolOperate (){};//default destructor
void get()
{
cout<<"please enter first 5 binary digit\n";
for(int i=0;i<5;i++)
cin>>a[i];
cout<<"please enter second 5 binary digit\n";
for(int i=0;i<5;i++)
cin>>b[i];
}
bool union(a[], b[])//A member function
{
bool c[5];
for(int i=0;i<5;i++)
{
if (a[i]==1 || b[i]==1)c[i]=1;
else c[i]=0;
cout << c[i];
}
cout<<"\n";
}
void and(bool a[], bool b[])//A member function
{
bool c[5];
for(int i=0;i<5;i++)
{
if (a[i]==1 && b[i]==1)c[i]=1;
else c[i]=0;
cout << c[i];
}
cout<<"\n";
}
bool a[5], b[5]; //Member variables
};
int main()
{
CBoolOperate r;
r.get();
r.union(a[], b[]);
r.and(a[], b[]);
getch();
return 0;
}
Member 7904482
12-Jun-11 12:43pm
View
I update my question with code that I write for that please help me
Member 7904482
1-Jun-11 8:18am
View
I dont understand what it is:
long methodTime;
IList myList = BubbleSort(listToSort, out methodTime);
Member 7904482
1-Jun-11 8:12am
View
could you Edit my code with a BackgroundWorker
Member 7904482
1-Jun-11 7:31am
View
I see it, but I think it show the time at the end of sorting. I said that I need timer show me time each moments like Stopwatch
Member 7904482
1-Jun-11 6:11am
View
could you change my code and show this
thanks
Member 7904482
1-Jun-11 6:07am
View
I write code like this:
public IList BubbleSort(IList arrayToSort)
{
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
int n = arrayToSort.Count - 1;
for (int i = 0; i < n; i++)
{
for (int j = n; j > i; j--)
{
if (((IComparable)arrayToSort[j - 1]).CompareTo(arrayToSort[j]) > 0)
{
object temp = arrayToSort[j - 1];
arrayToSort[j - 1] = arrayToSort[j];
arrayToSort[j] = temp;
RedrawItem(j);
RedrawItem(j - 1);
RefreshPanel(pnlSamples);
}
Thread.Sleep(speed);
}
}
return arrayToSort;
stopWatch.Stop();
}
but how to show the time
Member 7904482
26-May-11 11:21am
View
I need to show the elapsed time for a sorting operation as it runs
Member 7904482
26-May-11 11:21am
View
Deleted
I need to show the elapsed time for a sorting operation as it runs
Member 7904482
26-May-11 10:58am
View
I mean show time of sorting by stop watch
Member 7904482
26-May-11 10:50am
View
Deleted
I mean show time of sorting by stop watch
Member 7904482
26-May-11 5:15am
View
ok I find it
Member 7904482
26-May-11 5:03am
View
thanks
Member 7904482
26-May-11 4:58am
View
could you tell me how to do it
Member 7904482
26-May-11 4:52am
View
but I need a button to redraw lines again
Member 7904482
26-May-11 4:46am
View
Deleted
how to Create one, and use that three times?
Member 7904482
26-May-11 4:43am
View
I see it, but I dont have visual studio 2010 to open it
Member 7904482
26-May-11 4:42am
View
can you tell me how add all lines to an array
Member 7904482
26-May-11 2:44am
View
yes it works
thanks alot
Member 7904482
26-May-11 2:42am
View
I use Visual C# 2008 and this sample doesn't work on it. please help me
Member 7904482
26-May-11 2:36am
View
I use Visual C# 2008 and this sample doesn't work on it. please help me
Member 7904482
26-May-11 2:29am
View
I find sample that I need but it needs .net framework 4
if it is possible convert it to older version. the sample is in this link: http://www.codeproject.com/KB/recipes/SortVisualization.aspx
Member 7904482
26-May-11 2:22am
View
it needs .net framework 4
I dont have
if it is possible please save it in older version
thanks
Member 7904482
26-May-11 1:45am
View
no
Member 7904482
26-May-11 0:46am
View
could you write a sample for me because its not work?
thanks
Member 7904482
26-May-11 0:31am
View
this code doesn't do anything!
what I have to do?
Member 7904482
26-May-11 0:28am
View
but I need create 200 lines when I run C# program not when I click a button
Member 7904482
26-May-11 0:21am
View
I mean something like below picture:
http://www.4shared.com/photo/wkRfD4B-/Form.html
Member 7904482
26-May-11 0:17am
View
Deleted
I mean something like below picture:
http://www.4shared.com/photo/wkRfD4B-/Form.html
Member 7904482
25-May-11 22:32pm
View
please show me Graphics.DrawLine method codes. please
I need it
Member 7904482
25-May-11 10:52am
View
I need something like this:
http://www.4shared.com/file/23XuRzWr/2011-05-25_6-04-38_PM.html
this is a film about what I need
Member 7904482
25-May-11 10:52am
View
I need something like this:
http://www.4shared.com/file/23XuRzWr/2011-05-25_6-04-38_PM.html
this is a film about what I need
Show More