15,300 Posted Topics
Re: >>but I unfortunately only have 40 minutes until it is due unfortunately for you the time expired 6 hours ago. Lesson learned: don't wait until the last minute to get help. | |
Re: why don't you join their [URL="http://www.postgresql.org/community/"]mailing list [/URL]and ask them? | |
Re: >> what is the use of the operator "&" in the mutator The class is declaring the operator[] which returns a reference to one of the elements of an array. By doing this you can use it in the left-hand side of an expression. You didn't post class OrderName, so … | |
Re: All dlls must have DllMain(). This is the code generated by M$ VC++ compiler when creating a dll project. [code] BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } [/code] | |
Re: [QUOTE=belhifet;281633] Would those functions protect from integer overflows/underflows [/quote] yes -- did you read those links you posted? [QUOTE=belhifet;281633]AND format string attacks?[/quote] :?: are we playing packman game here? [QUOTE=belhifet;281633]2. What about strings? Does a simple use of fgets protect from buffer overflows AND format string attacks?[/QUOTE] buffer overflows -- … | |
Re: undefined identifier means a variable is being used before it is declared. If it compiles ok in debug mode and not release mode then there is probably a conditiional compile statement somewhere, something like this: [code] #ifdef _DEBUG int x; #endif [/code] I would compile again for debug, move the … | |
Re: 1st: there is no such thing as "win32 asm". win32 is an operating system that runs on top of the hardware Intell and Intell-look-alike chips. what you really mean I presume is 80x88 and Pentium assembly code. Yes it can be done in assembly, afterall all C compilers compile everything … | |
Re: >>Lookin forward to some 'ingenius' reply Search google for the implementation in C, then convert it to assembly. Also google for "Quick Sort RECURSIVELY in assembly language" and you might find what you want. | |
Re: why don't you just buy [URL="http://www.amazon.com/Embedded-Systems-Design-MSP430-Technology/dp/075067623X"]the book[/URL]? | |
Re: Check out the win32 api functions FindFirstFile() and FindNextFile(). They allow the program to iterate through all the files and directories in a folder. The compiler you are using will work well. When you create a new project you want to create a win32 console program, unless you want to … | |
Re: please edit your post and enclose the code in code tags. Read the links in my signature if you do not know how to do that. Also what are specific questions? | |
Re: [QUOTE]"C++ is a general-purpose, high-level programming language with low-level facilities. It is a statically-typed free-form multi-paradigm language supporting procedural programming, data abstraction, object-oriented programming, and generic programming. Since the 1990s, C++ has been one of the most popular commercial programming languages." (taken from wikipedia[/quote] For someone who knows nothing about … | |
Re: >>scanf("%c,%d,%d,%d",&status,&defect,&chnum,&w_cond); The problem is here: replace the commas with spaces. | |
Re: show a couple sample file entries. what you posted tells us very little. But basically you have to read each line of the file and check the task column. there is no one way to do it, so you have to know what the file really looks like. | |
| |
Re: you will need to learn SQL query language and, possibly ODBC functions. google for those keywords and you will get pleanty of help and some free c++ classes. This is no small feat -- there are entire books written on those two subjects. Definitely not for begining c and c++ … | |
Re: There is no one generic way to write for touch screens -- it is all hardware dependent. The only exception I can think of is wireless devices using WinCE operating system. Otherwise you have to read the touch screen manufacturer's programming reference manual. | |
Re: [QUOTE=JoBe;280711] but I thought that there was also a way that you could use the beginning and end of the array to loop threw the array like this .[/QUOTE] use vector<string> and you can do what you want using iterators. | |
Re: I agree with tgreer -- sell it or give it away to your friend. Even if it is illegal the softward police are not going to go after you because it is only a one-time deal. Now, if you are in the business of selling illegal software, that is a … | |
Re: I would think you should contact the school that you want to attend. | |
Re: It is not normally possible to just skip lines in a text file. Just read the file from beginning to end until you get to the line you want. If this is going to be done frequently on a file that rarly, if ever, changes then there are some techinquest … | |
Re: I'm confused -- you said you want an interest program but you wrote a currency conversion program. which is it? Please edit your post to use code tags as described in the link in my signature. you might first try doing the interest part with pencil & paper. Just write … | |
Re: depends on the operating system. MS-Windows will not permit a program access to the hardware ports directly, and neither will *nix running on intell-based computers unless you are writing a kernel-level device driver. In MS-DOS 6.X and earlier I've used int 16 but never accessed the ports directly. | |
Re: I just tried to use color and found out, sadly, that I no longer works. I tried it four or five times before deciding to come to this board to complain -- and found this thread at the very top! I don't see what the problem is -- so what … | |
Re: >>void printarray(int *,int); That is the wrong prototype because one star is a 1d array. void printarray(int **,int); or void printarray(int *array[],int); or void printarray(int array[MAX][MAX],int); | |
Re: its nearly impossible to take a compiled executable and reconstruct the c program. how is a decompiler even supposed to know the original source was written in c, or c++, or basic, or fortran, or ... ? Also it is not possible for it to reconstruct the structures that may … | |
Re: download [URL="http://www.microsoft.com/downloads/details.aspx?familyid=08E3D5F8-033D-420B-A3B1-3074505C03F3&displaylang=en#filelist"]these 101 VB examples[/URL] from Microsoft | |
Re: For your own santity why don't you break up that HUGE string into several lines to make it easier for you to read. Example: Note that each line starts and ends with quotes and does not have a line terminator semicolon. [code] sprintf(query1, "select a.MobileNumber, a.MasterNumber ," "a.MasterAccNo, b.Addr, b.Addr2, … | |
This came up on another thread, rather that "pollute" that thread with a side issue, I'll start a new thread. The issue is; Is it better to just to individually declare the members of std to be used in a program, or is the global declaration "using namespace std" being … | |
Re: did you even read the story? He is far from destitute, and IS indeed getting medical care. [quote] But now, [color=red]weak from chemotherapy [/color]and armed with a desire to pass on his belief in random kindness, Secret Santa has decided it's time to reveal his identity. He is Larry Stewart, … | |
Thursday is the [URL="http://www.holidays.net/thanksgiving/"]American Thanksgiving holiday[/URL]. :) We adopted the annual celebration from the UK -- where they got it from is anyone's guess. It was originally a religious holiday to give thanks for good and bountiful crop harvests that year. Now, its still celebrated during the fall but the … | |
Re: what kind of database? MySql or something else? >>and the txt file should automatically get updated whenever the log file is modified This might require a trigger on the database. When the table is updated then a trigger will be activated to run a stored procedure that maintains the text … | |
Re: I'm not sure how to do it in C#, but in C or C++ I would format the integer as a string then test each character of the string. What will you do when the digits are in random order? such as: n=129438623; | |
Re: you can't initialize arrays like that in the class definitions. Initialize it in the *.cpp file just like you would any other global array. [code] // *.h file class date { private: unsigned int nDay,nMonth,nYear; static unsigned int nMonthArr[12]; //LINE 36 ... // *.cpp file unsigned int Date::nMonthArr[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; … | |
Re: [QUOTE=iamthwee;277706]Time library?[/QUOTE] all the functions in time.h | |
Re: sounds like a similar problem I am having [URL="http://web.daniweb.com/techtalkforums/thread60619.html"]here[/URL] | |
Re: Please use code tags when posting code. Read the information in the links below. This is how I code it in c/c++: [code] for(a = 0; a < highSubscript-1; ++a) { for(b = 0; b < highSubscript; ++b) { if(array[a] > array[b]) { temp = array[a]; array[a] = array[b]; array[b] … | |
Re: Microsoft compilers has an alignment option to align data on 1, 2, 4, 8, or 16 byte boundries. I think Dev-C++ and other compilers do that too. This is to help improve memory access time. | |
Re: Is your program written with Visual C++ 2005 for a smart device? If it is, you can not use c++ streams because those devices do not have a console. | |
Re: I think Iron Maiden needs to be locked up in the loonybin and in a straight jacket. Or he needs to get cleaned off those drugs. | |
Re: how is [b]buf[/b] declared in that client function? If buf is declared as char* then sizeof(buf) is always 4 on 32-bit compilers. | |
Re: you need to talk to your school counseler about what those two tracks involve, but my guess is that [b]computer science[/b] will prepare you for graduate school. Which one you should take depends on your goals. You will probably get better jobs and salaries by getting a Master's degree. The … | |
Re: please use code tags to maintain spacing and make it easier for everyone to read. If you do not know how to use them, then please read the articles in the links in my signature below. | |
Re: >>but what is a container? an array, std::vector, std::list, etc. | |
Re: [QUOTE=nanodano;278167]Does anyone know where I can find the pthread library for Linux? And I don't want any rude "go google it" responds. I tried that, and all I came up with was one download available for win32.[/QUOTE] Thats what you are going to get -- google for "man pthread" and … | |
Re: >> while (!cin.eof()) what does cin have to do with readStocks() function? | |
Re: Please post entire function and complete error message including line number -- we still have no clude how ADDR_GODMODE is declared or what line number that error occurred. | |
Re: you can use the [URL="http://msdn.microsoft.com/vfoxpro/downloads/updates/odbc/default.aspx"]FoxPro ODBC driver[/URL] |
The End.