- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
19 Posted Topics
Re: if u use a loop definitely u'll get only the last value...but u can write the code in a timer event | |
Hi everyone, Is there any function in C# to find the CPU utilization of a process? Any help is greatly appreciated.... Thanks n advance Beulah | |
Re: You can follow the book "C# and .Net Platform" by Andrew Troelson. The book is good for learning concepts. But examples are not so good. Beuls | |
Hi everyone, I was trying to load an assembly during runtime from a remote application server using the web configuration file in C#. I created a dll eg. RemoteLib.dll. Then i developed a windows application that uses this dll. eg. testApp. I added a config file "testapp.exe.config" that contained the … | |
I have written a program in c# for quick sort using multithreading. but the code has a problem. the array is not sorted properly. i think it is because the parent thread terminates soon before the child threads sort the array. i am attaching the code herewith. kindly help me.any … | |
hi, how can you read a hexadecimal number in c++? is there any option with cin/ your help is greatly appreciated. Beulah | |
Re: Pls try this code [code] #include <iostream.h> #include <string.h> void main() { char s[100]; int j,ns=0,i; cout<<"Enter a string :"; cin.getline(s,100); for (i=0;s[i]!='\0';i++) { if (s[i]==' ') ns++; if(s[i]>=97 && s[i]<=123) { s[i]=s[i]-32; break; } } cout<<ns<<endl; for (j=i;s[j]!='\0';j++) { if (s[j]==' ' && s[j+1] != ' ') { if … ![]() | |
Re: try the following code: [code] #include <iostream.h> #include <conio.h> class real { double n[10],s; int i; double avg; public: real() { s=0; } void read() { for (i=0;i<10;i++) { cout<<"Enter a number :"; cin>>n[i]; } } void print() { cout<<"The numbers entered are :"<<endl; for (i=0;i<10;i++) { cout<<n[i]<<endl; } } … ![]() | |
Re: u can use for (i=0;s[i]!='\0';i++) s[i]=toupper(s[i]); | |
Re: pls try this code. [code] #include <iostream.h> #include <conio.h> int ext(int[],int,int); void main() { int k,a[10],i,n,p=0; clrscr(); cout<<"Enter size of array :"; cin>>n; cout<<"Enter the elements :"; for (i=0;i<n;i++) cin>>a[i]; k=ext(a,n,p); cout<<"The extreme element is :"<<k; getch(); } int ext(int a[10],int n,int pos) { if (pos<=n) { --n; ++pos; ext(a,n,pos); … | |
Re: keep separate timers for seconds, minutes and hours. | |
Re: can u pls explain me the logic for converting from rgb to hex? ie tell me what will be the equivalent of 80% red 40% green and 20% blue and how to get it exactly(the logic or formulat i suppose) then i may be able to help...and what r those … | |
Re: I think this will work fine. typedef struct node { int key; struct node *leftp; struct node *rightp; } *Treep; void blah(node *tree) { } | |
Re: [QUOTE=hongfan]Hello! I'm just starting to learn C++ for school, and our first assignment is creating a series of numbers according to the following rule: [code]current value next value 1 none - the sequence terminates even current / 2 odd 3*current + 1[/code] I have to compute for the initial values … | |
Re: can't you put the code that is repeated in a separate function and call it? | |
Dear programmers, I have developed a graphics program in C++ to draw various shapes using virtual functions. While using the Turbo C compiler the graphics.h file is included to use the graphics functions. But now i am using the Visual C++ (MS Visual Studio 6.0) compiler. so what modifications shd … | |
Dear all, I have written a program in c++ to pass arrays of objects(belonging to the same class) to a member function. It works fine in VC++ but gives an error as "Undefined structure class name". My program is a larger one. So i am giving a similar code below. … | |
Re: I can't get you. Can you explain your question? In what language you want to store? Is it storing an integer like 12 as "12" Beuls | |
Re: Delegates are nothing but function pointers. You can read the book C# and .Net Platform by Andrew Troelson. I am giving an example here with necessary comments. It converts a number from decimal to binary and vice versa. using System; namespace Conversion { public class Conversion { /// <summary> /// … |
The End.