15,300 Posted Topics
Re: Scroll up to the top of the page and click on the link [b]Private Messages[/b], there you will see a list of the messages you have received. Just click the links. | |
Re: I can't get the code you posted to compile. First is line 17. What's that supposed to be ? | |
Re: >>give me a clue what to do next.. like replacing [URL="http://www.gidnetwork.com/b-66.html"]void main() with int main()[/URL] ? | |
Re: Your program as posted compiles without error for me. using VC++ 2008 Express. Looks like a logic error though -- you need more brackets around that last while loop (lines 14-18). | |
Re: Hello Pete, welcome to DaniWeb. >>my son who knows more than me Kids always think they know more than their parents :) | |
Re: Welcome to DaniWeb. Dam -- I didn't see catweazle. Any chance of getting it on DVD? | |
Re: There's only one way I know of [icode]D = MyFunction(B, I);[/icode] I suppose you could do something like this too, but it seems sort of silly. [code] D = Myfunc(false, I); D = MyFunc(true,I); [/code] | |
Re: Welcome to DaniWeb. Please don't hijack someone's thread to ask your question. Giving you a freebe this time because this is your first post :) You probably need to create another thread for that timer to run in so that it will execute independently of the scanf() function. Exactly how … | |
Re: Start by figuring out how to get the 3, 5, 6 and 9. If you know how to do that them its easy to find all those numbers below 1000. If you can't do it in your head then write it out with pencil & paper. Think about the process … | |
Re: how about this? [icode]this->textBox2->Text = "";[/icode] | |
Re: Welcome to DaniWeb -- glad to see that you found us :) >>but it can be challanging at times... It always is challenging. Getting that degree only gave you the tools you need to start, now the real learning will begin, and its a life-long effort. :) | |
Re: [QUOTE=niek_e;538443]I think it's too late for smokers to avoid smoking :)[/QUOTE] Naw -- if I can do it after 42 years of heavy smoking then anyone can do it too. It just takes a lot of willpower and support from family/friends. [edit]Ohhh. After rereading I think I understand you comment. … | |
Re: [QUOTE=jesseb07;543846]hi, this should be a fairly simple question to answer. I have a function in my program that takes the content of a text file and populates an array with all the information. First it has to see how many lines the file has (as it can change) so it … | |
Re: [URL="http://www.winprog.org/tutorial/"]Here[/URL] is a very good introduction to win32 api programming. Its only a brief introduction to get you started. | |
Re: Q1 and Q1 are not that difficult -- try to write them yourself. Have no clue what Q3 is supposed to be. The trailing periods have no meaning. Q1: create an array of 5 ints, initialize them to 0. Then use ifstream object to read the file one int at … | |
Re: >>employee_list[numEmployees].setName(firstName, lastName); Hummm -- is numEployees the max number of rows in the employee_list array? If yes then that is array overrun problem. My guess is it should be this: [icode]employee_list[numEmployees-1].setName(firstName, lastName);[/icode] to access the 0 based element of the array. To call the Name class, assuming Name is the … | |
Re: line 68 shopping.cc: using an uninitialized variable. Would you post the test code you have written to test that class? e.g. the *.cc file that contains main() | |
Re: >>how do we divide by shifting to the right use the >> shift operator [icode]x >>= 2;[/icode] will shift the value of x right 2 and store the result back in x | |
Re: Vijay: The second suggestion won't work because the function return values are not consistent with parameter expectations. | |
Re: >>Please answer only if you are sure Normall I don't answer polls, but in your case I'll make an exception. I don't have the slightest idea what the answer is. | |
Re: Its not necessary because the array can be treated either way in most cases. Post an example of what you are not sure about. | |
Re: First, the array you declared has only ONE element in each of the two dimensions. If you want them to have two elements then declare it like this: [icode]int array[2][2];[/icode] >> Ive tried changing it to array[1,0] That doesn't work in C or C++. | |
Re: I've tried Norton, McAffee and Avast 4.7. I hate McAfee because the buttons are not visible with the somewhat low display resolution that I use, so I tossed it into the bit bucket. I sent them an email about it but never got a response. Norton worked ok, but required … | |
Re: Also, please don't capatilize every word in the sentences -- it looks silly and makes it a little more difficult to read. | |
Re: yes. That function can also be called by any *.cpp function that includes file.h. You find this all the time, such as standard header files supplied by your compiler. [code] // file.h int foo(); // function prototype [/code] [code] // file.spp int main() { foo(); return 0; } int foo() … | |
Re: 1. if you're using ifstream (meaning input stream) why did you name it [b]outfile[/b] instead of [b]infile[/b]? 2. what do you mean by "it doesn't work" ? The only reason I know of why your code will not open the file is if there is no such file as "1.1.jpg" … | |
Re: Those are C, not C++ header files. You don't use any of them in c++ programs. Some very old Borland compilers such as Turbo C will use graphics.h, but it is not supported by any other compiler. | |
Re: Get a list of the files by calling one of the os-specific api functions. MS-Wndows its FindFirstFile() and FindNextFile(). *nix its opendir() and readdir(). | |
Re: looks like you are attempting to find the minimum value after the array has been cleared. | |
Re: There is no "bold part". Please refer to the line numbers of the code you posted. The way I create and use DLLs is to use a macro to determine whether to use __dllimport or __dllexport [code] #ifdef MYDLL #define MYAPI __declspec(__dllexport) #else #define MYAPI __declspec(__dllexport) #endif MYAPI void HelloWorld(); … | |
Re: nothing like digging up a 3-year-old thread :) | |
Re: >>even when a program is very simple and absolutely correct >>t shows "Fatal error... can't find path...." Two completly contridctory statements. >>what's the reason? Your program has one or more bugs. Post code because I have a hard time seeing your monitor from my home :) Also what Operating system … | |
Re: does your program ever call munmap() to release the memory back to the os? If not then maybe your program is just simply running out of memory. Also about ftruncate() -- maybe you already know this. [quote]If it <the file length> was previously shorter than length, it is unspecified whether … | |
Re: >>I want to do like this, but how to open the file to read the examid? Not sure what you want? This maybe: [icode]ifstream in("filename");[/icode] | |
Re: Why did you start a new thread? You should have just added to your existing thread so that people would know what in the world you are talking about. | |
Re: >>If anyone knows where and how to place adds let me know Check out all the [b]Sight Management[/b] forums. Otherwise, advertising is strictly forbidden on DaniWeb. You can, if you want, put your link(s) in a signature available in the Control Panel, link at the top of the page. Ads … | |
Re: So what got you "stuck" ? >>Can anybody tell me what condition I have to use here? Sorry but I'm having trouble seeing the code on your computer. Please post on DaniWeb. | |
Re: >>hopefully this is an easy question Ok, I'm not a mind reader so please state the question. delete stdlib.h and conio.h because they are not needed in c++. | |
| |
Re: see [URL="http://www.exegesis.uklinux.net/gandalf/winsock/"]Windows socket tutorial[/URL] | |
Re: Post what you have done so far to write that program. We don't write your program for you. | |
Re: you are looking for a [URL="http://msdn2.microsoft.com/en-us/library/11405hcf(VS.71).aspx"]masked edit control[/URL] | |
Re: [b]Ancient Dragon[/b] comes from the Dungeons & Dragons role playing game that I started playing some 10-15 years (or more) ago. I still like to play [b]Diablo LOD[/b] computer game. | |
Re: line 8: void main() main NEVER EVER returns void. It always returns an integer. line 15: unrecognized escape character "\(" as well as "\)" and "\:". You can't escape those characters, just delete the "\" character. Those same errors appear several more times in your code. Correct them and the … | |
Re: Welcome to DaniWeb. Sorry but I had to remove the URL you posted because its against DaniWeb Rules to post them except in a very select vew places here. | |
Re: OMG almost 30 years old with a wife and kid, and still living with mom & dad :'( You need to grow up, get a job, and start taking care of your own family because mom & dad aren't going to be here forever for you. If you were my … | |
Re: Google should be the first place to ask questions because it can often get you the answers very quickly. And we've had that same question asked here on DaniWeb a billion times -- once just this morning that I know of. |
The End.