15,300 Posted Topics
Re: You also have to do that by the week because many months have two partial weeks. For example the first week in October 2013 has only 5 days instead of 7 and the last week also has only 5 days. So how will you count them if an employee works … | |
Re: At one time (maybe still is) members could sell advertising space in their signatures -- I did that for awhile. I'd put a link in my signature if someone payed me XXX amount of money. Since signatures are barely visible that may not be very lucrative income any more. | |
Re: The first thing you should do when researching any topic is to google for your question, like [this](http://lmgtfy.com/?q=change+your+process+name+in+windows+task+manager). If the answer is there at all it will be in one of the first few links, all you have to do is read them. | |
How do I search for specific member name? Putting the name in the Search box doesn't work. I tried "<member name>" and "Daniweb: <member name>". google found the name but not at daniweb. | |
Re: Process A passes parameters to Process B thru the command line, just as if you typed them yourself from the console screen. That means you have to implement the first parameter to CreateProcess() on line 21 of the code you posted. Then Process B can return an integer value back … | |
Re: > the values for INT_MIN and INT_MAX are shown in the appendices as being the same as SHRT_MIN and SHRT_MAX It is compiler dependent. That was true 30 years ago when 16-bit MS-DOS compilers such as Turbo C were the standard at the time, but modern compilers are normally 32-bit … | |
Re: >const int C2 =65.41; int does not have decimal places. If you want decimals then use float or double instead of int | |
Re: >Here’s what the output from your program should look like Links do not work. | |
Re: Yes, but we won't do your homework for you. Make some attempt to do it yourself and post the program you wrote so that you can ask questions about what you don't understand. | |
Re: Don't understand the question. Where do you want it to accept characters? In the command-line arguments (argv), in the node structure? And what characters do you want it to use? | |
Re: > This function is not part of the account class. Where is the function, I don't see it? It should look similar to this: int foo(BankAccount& obj, double target) { } | |
Re: wrong, no angle brackets < and > and put the filename in quotes. `#include "foo.h"` If you want to include a standard compiler header file then it's like this: `#include <stdio.h>` | |
Re: In order to know if it worked or not you have to test the return value of fopen() #include<stdio.h> int main() { FILE *fp; fp=fopen("c:\\1.txt","r+"); if( fp == NULL) printf("file not found\n"); else printf("Success!\n"); fclose(fp); return 0; } | |
Re: Here is a whole chapter on that in [this tutorial](http://www.homeandlearn.co.uk/csharp/csharp.html). Explains it really well. | |
Re: So, what's your question? What operating system and compiler is this for? It's fairly easy program on MS-Windows, but might be a bit challenging on linux because it supports so many different terminal types. | |
Re: Hard to tell without seeing the code you wrote. A couple possibilities: 1. the string was not null terminated, 2. buffer overrun (writing beyond the bounds of the buffer) | |
Re: Read your other thread -- I already told you how to do it. | |
Re: what are the errors? line 4 doesn't make the whole class static, just the object declared there. The static keyword means that there will be only one instance of the object no matter how many instances there are of the class. When you declare an object static then you also … | |
Re: you need to change the sort function to sort one column of a two-dimensional array [code] void sortarrray(int t[][10], int NumRows, int ColToSort) { // sort code here } [/code] >>it also asks me to do a binary search...would it change if its a 2d array? Very similar to the … | |
Re: what operating system and compiler? For MS-Windows you will use [these communications functions.](http://msdn.microsoft.com/en-us/library/aa910699.aspx) >and then automaticly send it over the serial port. There is nothing "automatic" about it -- you have to write the code to do that yourself using the communications functions. | |
Re: key_chk() returns the char representation of the key that was pressed. For example, if you press 1 then it will return '1', not 1, and that's why the loop doesn't work. Line 38 should be: `if(key == '1')` line 194: When a special key is pressed you have to call … | |
Re: Windows 8.1 will be released in a couple weeks, it's supposed to contain the start button because everyone complaints. It will be a free upgrade for all current 8.0 owners. | |
Re: windows os doesn't have anything called a "plugin". They are just application programs. Or do you mean a browser plugin? Yes, you can write your own compiler, but plan to spend several years doing it. Go to amazon.com and [search for compiler books](http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Dstripbooks&field-keywords=compiler&sprefix=compil%2Cstripbooks&rh=i%3Astripbooks%2Ck%3Acompiler), [Here](http://www.compileonline.com/compile_cpp_online.php) is an online c++ compiler | |
Re: >and how i can make the odbc access more faster and can hold more data loads Probably not much -- it gets slower as the database grows larger because there are more rows it has to process. It's not just MS Access database problem, all SQL datasbases work that way. … | |
Re: use std::precison and [std::fixed](http://www.cplusplus.com/reference/ios/fixed/) modifiers with cout. | |
Re: Most likely because you are using the same hwnd variable for both. | |
Re: For cross-platform programs I don't know of anything newer or better. If you just want to start a new MS-Windows GUI program then C#, VB.NET or CLR/C++ Windows Forms are probably better. | |
Re: Did you prototype the functin askYesNoQuestion() at the beginning of your program so that the compiler knows about it? line 20: It would be better to just set another variable to be toupper(ans) so that toupper() isn't called every time it is used. | |
Re: That's not a question, just a statement of what you want to do. No one but you knows why you posted that code. If you want help then you have to tell us what you want help with. | |
Re: Have you read [this wiki article](http://en.wikipedia.org/wiki/Cocoa_(API))? | |
Re: Scroll near the bottom of [this wiki](http://en.wikipedia.org/wiki/BASIC) article and you will find some references. | |
Re: [Here's](http://www.vbforums.com/showthread.php?132636-Run-time-error-40006-Wrong-protocol-lt-How-this-error-occurs) a brief discussion about that problem Another possibility is the firewall on the pc you want to connect to is blocking your program. | |
Re: >14.49999999999999999999999999999999. What's the problem? There is no such kind of money like that, it a rounding error. 14.50 is the correct value. >Does anyone know how to handle converting doubles, similar to the one above, to an integer correctly? To convert 14.50 to int (1450) just multiply by 100 and … | |
Re: I had a similar problem with Windows 7 and Windows 8 computers. On Windows 7 I had a couple of shared folders. Windows 8 could see them but didn't have access to them. The solution is to grant Security permissions for Everyone and Home Group Users. You do this in … | |
Re: You don't need to change the event handler associated with the button click, just change the text of the button. In the event handler compare the button's text with "Next" and do whatever Next is supposed to do. When near the end of the array change the text to "Finish". … | |
Re: Before your program starts doing calculations synchronize the clock with NTP. | |
Re: inline functions can't be declared in a \*.cpp file and expect it to be inlined in other \*.cpp files. Put the entire code in the file.h header file so that the compiler can duplicate the code each time the function is called. This is consistent with the use of _inline … | |
Re: First call [modf()](http://www.cplusplus.com/reference/cmath/modf/) to split the float into two parts -- integer part and fractional part. If you know how to convert an integer into string, then you can convert the digits of each part separately using the same algorithm. For the fractional part, you have to multiply it by … | |
Re: First get the handle to the window that has the button, then enumerate the child windows, something like this example. This code is clicking a button named "&Say Hello" on a VB.NET program whose window is named "Form1" #include <Windows.h> BOOL CALLBACK GetButtonHandle(HWND handle, LPARAM prm) { char label[100]; int … | |
Re: peek() reads a single character from the text file -- it can't be used to read integers except that it read a single digit. | |
Re: The problem is fscanf() isn't removing the newline character because you never told it to do that. Make this change to your program. ` fscanf(inp,"%c\n", &file_letter);` | |
Re: mysql has an export utility program (mysqldump.exe). mssql has an [import utility program](http://technet.microsoft.com/en-us/library/ms140052.aspx). No need to write a program. | |
Re: I agree -- [there's a whole thread ](http://www.daniweb.com/software-development/cpp/threads/70096/c-books)about c++ books. Also see [this thread](http://www.daniweb.com/community-center/geeks-lounge/threads/463801/teach-yourself-programming-in-only-10-years) about how to learn c++ in only 10 years. | |
Re: main() is not calling MyFunc(). You need to add a call to that function between lines 8 and 10. MyFunc() doesn't use the paramter x in the loop on line 20. Sould be: `count <= x` | |
[Here's](http://norvig.com/21-days.html) an interesting little article I cam across recently. >Walk into any bookstore, and you'll see how to Teach Yourself Java in 7 Days alongside endless variations offering to teach Visual Basic, Windows, the Internet, and so on in a few days or hours. ... The conclusion is that either … | |
Re: Did you write that or did you just copy it from somewhere and want us to do your work for you? Replace cout with printf(), for example cout << "Hello World\n"; printf("Hello World\n"); | |
Re: I love [this free tutorial](http://www.homeandlearn.co.uk/NET/vbNet.html) -- it has an entire chapter devoted to databases. | |
Re: > by the time they graduate college and look for a job, Visual Basic 6 skills may be less needed. VB6 is already obsolete and has been for several years now, very similar situation as Turbo C. Time to move on to new and improved vb.net, except maybe for old … |
The End.