15,300 Posted Topics
Re: [Youtub](https://www.youtube.com/watch?v=0Evg9582VW4)e tutoral. Google will give you other tutorials too. | |
Re: what language are you writing this with?? | |
Re: You'll have to explain the "constraints" -- I don't want to guess or read your mind. | |
Re: >The first error is** line 95 'output_minus_10' was not declared in the scope** Look at your program, where is that variable declared? It must be declared somewhere within the function or globally before it's used. It needs to be something like `FILE* output_minus_10;` or like this: `FILE* output_minus_10 = fopen( … | |
Re: Why would you need a reference book for that?? It's happened to me hundreds of time, which is why desk checking and other in-house checking is required. At my last job they had an entire team doing nothing but testing the software that the programmer's wrote and/or modified. Ever hear … | |
Re: There are several ways to do it, but one way is: in a loop call getline() to read each line, then for each line read use stringstream object to split it into individual tokens. Post the code you have attempted and we can help you some more. | |
Re: >Please mail me that source code Please deposit $10,000.00 USD in my PayPal account and I'll do that sometime within the next 12 months or so. Just for curiosity -- why would "Data of Joining" be in a phone book??? Joining what??? | |
Re: first call seekg() to move the file pointer to the end of the file, then call ftell() to get the file size, allocate a buffer of that size or larger, call seekg() again to move the file pointer back to the beginning of the file, then call fread() to read … | |
Re: Yea, the need to refresh after posting causes a few problems, at least for me. Try editing a post a couple times without refresh -- some edits will be lost and you'll have to do it all over again. | |
Re: Why would you even want a cracked version when you can get it free (Express version) from Microsoft? | |
Re: This is on my agenda today -- Happy (Hickup) New Year!  | |
Re: Do the requirements one at a time, don't attempt to code it all at once. First, code the menu, comple, fix any errors, and repeat until it works correctly. Then you are ready to code the next requirement, repeating the same steps you did for the menu. In the meantime … | |
Re: There is no one right answer, it depends on how complex the data and how complex the queries. If you want to do rather involved SQL type queries then you'd have to use an SQL compliant database such as MySQL. But if the file is rather small then just read … | |
Re: > it complain during compilation. Post error message and line numbers where the errors occur. | |
Re: line 64 needs to be an else statement so the the program doesn't attempt to display an erased item in the vector for (int i = 0; i<userDetails.size(); i++) { if (userDetails[i].getUserName() == name){ userDetails.erase(userDetails.begin() + i); } else cout << userDetails[i].getUserName() << " " << userDetails[i].getPassword() << "\n"; } | |
Re: Cheating on your howmework will do you no good. Why not write the program yourself? Do the math with pencil & paper first so that you know how to solve the problem. | |
Re: >Can someone please rectify the mistakes in the following code? What specific problems? | |
Re: wrote a program to display the numbers 1 through 100 on the console window. | |
Re: Please attach the data file you are using or the program you used to generate it. | |
Re: Is this the same program you posted in the C forum? >It tells me "Ordered comparison between pointer to integer (char to int)" Which line does that error message belong to? Your compiler should have given you the line number. | |
Re: strtok() will destroy the original character array by enbedding '\0' each time strtok() is called. So if you need the original character array then the function that calls strtok() first needs to duplicate the string. #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct dict_word *word; typedef struct node *Node; typedef … | |
Re: When there are more than 3 or 4 parameters it's better to create a structure or class to hold them all so that the function itself has only one parameter. It's a lot easier to read and understand that way. > why in the voucher print function its not displaying … | |
Re: I read somewhere that you need to learn Objective C in order to write games/programs on MAC. I know nothing more than that about it, so I can't answer any of your questions about it. And review [these google links](https://www.google.com/#q=objective+c+game+tutorial). | |
Re: add() is wrong void add(struct node *newp) { if (head == NULL) head = newp; else { struct node* temp; for (temp = head; temp->next != NULL; temp = temp->next); temp->next = newp; } } Another problem here: > scanf("%s", &rep); rep is type char, not a string. scanf() will … | |
Re: Or you could just write your own clrscr() function, it's not all that difficult, just a one line function. | |
Re: I couldn't find much about it on their web site, but if the libraries have \*.a or \*.lib extension then you just link with it just like linking with any other library. I just installed the MS-Windows version and all the DLLs and \*.lib files are in <install folder>/bin folder. … | |
Re: What makes you think the function is loaded at 0x00401B90 ??? Under MS-Windows you never know where a dll or program is loaded and any attempt to guess will most likely be wrong. Your c or c++ program needs to call [GetProcAddress](http://msdn.microsoft.com/en-us/library/windows/desktop/ms683212(v=vs.85).aspx)() after calling LoadLibrary() in order to get the … | |
Re: Sounds like you created a windows console program but attempting to compile a Windows win32 api GUI program. win32 api programs have WinMain() instead of main() as in console programs. | |
Re: See my answer in your other post. Please, do not double post the same question. | |
Re: >I don't understand why it works with private vars if I don't modify the methods and why should I use protected in the other case. **private:** means the derived class cannot access the variable -- if the defived class doesn't attempt to access the private member then there is no … | |
Re: Do you have to use strtok() for that? You could just parse the string with a pointer, copying each field into another char array. | |
Re: It doesn't really matter where you put the space in the syntax, the compiler doesn't care. The examples you posted are all acceptable and correct. It's only a matter of programming style -- however you wish to do it. | |
Re: I don't get it, what do I get if I say "No deal"? Do I get that car if I say "Deal" ? For the Lamorghini: No Deal. I don't want it, cost too much in taxes and insurance, and it probably can't pass a gas station, 80 inch television | |
Re: >char check[]="'a','e','i','o','u'"; That does not produce a null-terminated string, which strtok() requires. Just do this: `char check[] = "aeiou";` But --- Deceptikon has a better solutiom. | |
Re: I just created a project using VS 2013 Pro on Windows 8.1 and had no problems. If your problem was a bug in 2010 then it's probably fixed in either 2012 or 2013 versions of VS. | |
Re: do you mean an in-memory array of integers? such as `int myarray[25];` ? Or are you talking about records in a file or sql database? | |
Re: >as my professor always said that in order to create a program you must know first the output before you create a code ... Yes, I would agree with your professor. How can you write a program to do something if you don't know what the program is supposed to … | |
Re: You need to split the line into individual tokens immately after reading it from the text file, then you can copy the integer portion to n member of the structure and the name portion to the nom structure member. I think fscanf() would be easier to use than fgets() char … | |
Re: It looks like you are on MS-Windows, so you can use the win32 api function [FindFirstFile](http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418(v=vs.85).aspx)() and FindNextFile() to get a list of all the files in the desired folder. They are pretty easy to use, and that link has an example program at the bottom. | |
Re: You can learn all about it from [here](http://www.gnu.org/software/gsl/manual/html_node/) | |
Re: Oh to be young again! I'm only 39 (like [Jack Benny](http://www.biography.com/people/jack-benny-9207709), if any of you know who he was), with just a few years experience at that age. Happy Birthday, everyone. Have a virtual Beer on me :) | |
Re: I think all you have to do is change line 10 to use strcmp() | |
Re: [Tutorial here](http://www.homeandlearn.co.uk/NET/vbNet.html) The free version may not describe what you want, I have a copy of the purchased version which as additional chapters and describes in detail exactly how to create database and tables from with VB.NET | |
Re: Another difference -- the value of const char cannot be changed but the definition of #define's can be changed. That makes const char a lot safer to use than #define's | |
Re: Why are you using arrays to solve quadic equation with three unknowns? [This ](http://www.mathplanet.com/education/algebra-2/how-to-solve-system-of-linear-equations/solving-systems-of-equations-in-three-variables)is how I was taught to solve them. | |
Re: This is an English speaking forum, not many people here will be able to read that. |
The End.