15,300 Posted Topics

Member Avatar for Rameez_1

[Youtub](https://www.youtube.com/watch?v=0Evg9582VW4)e tutoral. Google will give you other tutorials too.

Member Avatar for Ancient Dragon
0
79
Member Avatar for rajan1990
Member Avatar for sinnerbynature
Member Avatar for sinnerbynature

You'll have to explain the "constraints" -- I don't want to guess or read your mind.

Member Avatar for Ancient Dragon
0
237
Member Avatar for dev1902

>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( …

Member Avatar for MathewsSolve
0
216
Member Avatar for henpecked1

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 …

Member Avatar for SalmiSoft
0
100
Member Avatar for pravej

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.

Member Avatar for Ancient Dragon
0
6K
Member Avatar for Pankaj18

>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???

Member Avatar for Ancient Dragon
-2
1K
Member Avatar for jursnamo
Member Avatar for mixelplik

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 …

Member Avatar for Ancient Dragon
0
366
Member Avatar for nauticalmac

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.

Member Avatar for Ancient Dragon
0
313
Member Avatar for Dani
Member Avatar for Ancient Dragon
0
621
Member Avatar for MRAR

Why would you even want a cracked version when you can get it free (Express version) from Microsoft?

Member Avatar for KushMishra
0
275
Member Avatar for kal_crazy

This is on my agenda today -- Happy (Hickup) New Year! ![9361c2be19a491d7067ab6c9129da9cb](/attachments/large/0/9361c2be19a491d7067ab6c9129da9cb.jpg "9361c2be19a491d7067ab6c9129da9cb")

Member Avatar for kamranali441
1
344
Member Avatar for andreas.petrou.967

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 …

Member Avatar for richieking
0
169
Member Avatar for sireiz

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 …

Member Avatar for Ancient Dragon
0
141
Member Avatar for Jokatech
Member Avatar for Ancient Dragon
0
201
Member Avatar for johnson_2

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"; }

Member Avatar for johnson_2
0
5K
Member Avatar for Ancient Dragon
Member Avatar for aroshkhan

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.

Member Avatar for Ancient Dragon
0
159
Member Avatar for rubeea.jaffari

>Can someone please rectify the mistakes in the following code? What specific problems?

Member Avatar for rubeea.jaffari
0
194
Member Avatar for Adeel Rahat

wrote a program to display the numbers 1 through 100 on the console window.

Member Avatar for richieking
0
133
Member Avatar for selfridgegirl
Member Avatar for ballrohit
0
159
Member Avatar for yann.bohbot.9

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.

Member Avatar for yann.bohbot.9
0
146
Member Avatar for yann.bohbot.9

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 …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for tom.scott.73113

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 …

Member Avatar for tom.scott.73113
0
199
Member Avatar for naji.awad1

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).

Member Avatar for Ancient Dragon
0
228
Member Avatar for nadiam

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 …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for jursnamo

Or you could just write your own clrscr() function, it's not all that difficult, just a one line function.

Member Avatar for Ancient Dragon
0
249
Member Avatar for Maria Clara

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. …

Member Avatar for Ancient Dragon
0
84
Member Avatar for Arm55

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 …

Member Avatar for Arm55
0
756
Member Avatar for christinetom

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.

Member Avatar for Ancient Dragon
0
18K
Member Avatar for yann.bohbot.9
Member Avatar for Ancient Dragon
0
260
Member Avatar for Seba Sama

>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 …

Member Avatar for Tumlee
0
352
Member Avatar for satys.sara

Do you have to use strtok() for that? You could just parse the string with a pointer, copying each field into another char array.

Member Avatar for Ancient Dragon
0
112
Member Avatar for pars99

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.

Member Avatar for pars99
0
139
Member Avatar for <M/>

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

Member Avatar for <M/>
2
1K
Member Avatar for Builder_1

>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.

Member Avatar for Builder_1
0
568
Member Avatar for misd_bunder

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.

Member Avatar for KushMishra
0
329
Member Avatar for stef1047

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?

Member Avatar for Ancient Dragon
0
141
Member Avatar for karma2you

>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 …

Member Avatar for Ancient Dragon
0
245
Member Avatar for Shami80

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 …

Member Avatar for Ancient Dragon
0
291
Member Avatar for ceelos1974

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.

Member Avatar for Ancient Dragon
0
413
Member Avatar for Raja.rahmanway

You can learn all about it from [here](http://www.gnu.org/software/gsl/manual/html_node/)

Member Avatar for Ancient Dragon
0
44
Member Avatar for AARTI SHRIVAS

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 :)

Member Avatar for arti_1
2
171
Member Avatar for yann.bohbot.9
Member Avatar for Ancient Dragon
0
237
Member Avatar for johmolan

[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

Member Avatar for kRod
0
194
Member Avatar for Labdabeta

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

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Alya_1

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.

Member Avatar for Alya_1
0
291
Member Avatar for safoin
Member Avatar for mike_2000_17
0
93

The End.