|
Mikerush7 wrote: while ((k = scanf ("%lf%lf", &hours, &payrate))==2) Without a full understanding of assignments and expressions, mixing the two in one statement is highly discouraged.
Mikerush7 wrote: return hours; While I'm not sure who you'd be returning hours worked to or why, the compiler should have at least warned you about loss of data.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
DavidCrow wrote: the compiler should have at least warned you Given the number of syntax errors elsewhere I don't think a compiler has ever seen this sample.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
thank you everybody for help. I will keep working on it. my teacher is not helping, so I am on my own..
|
|
|
|
|
Build your logic based on the following example.
int main( )
{
char n ;
int no = 0 ;
printf("Enter a no " );
while( (n = (char)getche( )) != '\r') //Check for enter key
{
if( n >= '0' && n <= '9' )
{
n = n - 48 ;
no = (no * 10) + n ;
}
else{
printf("\nInvalid. ");
}
}
printf("\n %d " , no ) ;
return 0 ;
}
|
|
|
|
|
i,m astuedent in university ,and my doctor want from every
student aproject ,and i want code to make from that (requirement,design,and testing)
please send me code by c++ language such as about
how identification digit system works
and welcome
eman
|
|
|
|
|
I think what your teacher wants is for you to develop the project yourself.
Pick a topic.
Read up on it. (Google is a good place to start.)
Get working on it.
If you have some specific problem with some detail, come back here and ask a question.
We are not in the business of writing your project for you.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Ok eman, You ask this question twice. You cant have a project asking online. No one will help you, no one will even suggest you a project.
Help yourself.
I wish I could believe there is an after life.
|
|
|
|
|
emanalshboul wrote: ...my doctor want from every student...
emanalshboul wrote: ...please send me code... What do you think your "doctor" would say if you turned in someone else's code?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
DavidCrow wrote: What do you think your "doctor" would say
"Young man, you are suffering from a virus".
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
When I am designing a dialog box with static text boxes to display numbers can I initialize control variables as arrays through the wizard?
As an example, say I am collecting information in 8 channels and would like to display this information in a 8 separate text boxes. I want to store the information in the variable int m_chan[8] but I don't see the array option in the 'Add Variable...' in VS2010.
|
|
|
|
|
The answer is "No you cannot". But you can apply various method to achieve that simpley
You can remind in your two variable your first id and last id, if they are incremental. on various occasion we have to create more than one static object, dynamically.
I wish I could believe there is an after life.
|
|
|
|
|
The Add Variable wizard does not support what you want to do.
However, you can add the variables manually to get at what you're trying to do.
For the first text box, right click and select Add Variable .
Then select the datatype as int and enter the name of the variable as m_chan .
After this, open the dialog header file and change the member variable from int m_chan; to int m_chan[8]; .
Now open the dialog source file and make the following changes -
At the dialog constructor remove the line , m_chan(0) .
In the DoDataExchange function, remove the line DDX_Text(pDX, IDC_EDIT1, m_chan); and add the following lines -
DDX_Text(pDX, IDC_EDIT1, m_chan[0]);
DDX_Text(pDX, IDC_EDIT2, m_chan[1]);
DDX_Text(pDX, IDC_EDIT3, m_chan[2]);
DDX_Text(pDX, IDC_EDIT4, m_chan[3]);
DDX_Text(pDX, IDC_EDIT5, m_chan[4]);
DDX_Text(pDX, IDC_EDIT6, m_chan[5]);
DDX_Text(pDX, IDC_EDIT7, m_chan[6]);
DDX_Text(pDX, IDC_EDIT8, m_chan[7]);
Here, replace the IDs of the edit boxes to the appropriate IDs.
|
|
|
|
|
The wizard is limited; you should get used to skip the wizard. Many times it's even faster to add something to your code, than using the wizard. What you want is possible (as shown already), but not with the wizard.
|
|
|
|
|
how do i go abt starting creating a client and server program will really appreciate a the help than
|
|
|
|
|
Start here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Hi,
I have created a win32 dll(VC++). And I know the appropriate .net assembly file which contains the required methods.
I want to access those methods from my DLL.
I came to know , it can possible through C++/CLI interface.
But i'm very new to C++/CLI . So kindly help me to create such interface in C++ which can access those methods using certain assembly/any way.
If have any any sample example (running),then please share me soon. I tried a lot in google , but till now i didn't get any helpful samples .
Thanks in advance Smile
|
|
|
|
|
Please ask your question ONCE. Crossposting like this will only annoy the people who might otherwise halp you.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Thanks peter for the information.
Actually i got a suggestion to post in VC++ section while i posted it 1st time.
Thats the reason i posted once again here.
Any thing you would like to suggest, then please...
Thanks
|
|
|
|
|
I cannot find any response telling you to post it here. This is an obvious C++/CLI question and does not belong in this forum.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Beat me to it. Thanks.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Someone could have emailed him.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Which goes against the whole point of a threaded forum.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
litu kumar wrote: I have created a win32 dll(VC++).
Presumably this is NOT managed C++.
litu kumar wrote: But i'm very new to C++/CLI
That is problematic. I am rather certain it is not easy even for an experienced programmer. So rather than figuring out details your going to be fighting your lack of knowledge.
It the following a possible solution?
1. Create an managed C++ executable. It wraps your target library and provides the functionality that your other app needs (from the library.)
2. Provide a communications API for that executable. Either sockets, files or stdin/out.
3. Test it
4. Use unmanaged C++ system calls to run the executable and communicate with it.
litu kumar wrote: If have any any sample example (running)
Google seemed to provide plenty of answers. I used the following.
unmanaged c++ to managed c++
One of the links from that google search
Mixing Managed and Unmanaged code[^]
|
|
|
|
|
i want some project to work at them
please can you help me
|
|
|
|
|
I can help you.
Follow this link: Asking a question[^]
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|