15,300 Posted Topics
Re: Do you already subscribe to a [website hosting service](http://www.daniweb.com/business-exchange/webmaster-marketplace/36)? | |
Re: [Link](http://msdn.microsoft.com/en-us/library/wa80x488.aspx) (google does wonders for answering homework problems) | |
Re: On my computer the file is here: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib If you also have VS 2010 installed on the same computer there may be a conflict. See [this related article](http://stackoverflow.com/questions/13426740/visual-studio-2012-alongside-2010-kernel32-lib-windows-h) I have 2013 Pro edition installed on my computer and don't have that problem. | |
Re: >when I input a binary number it won't give an answer That's because b2 is an integer, binary numbers are character arrays, not integers. If you want to enter a binary number, such as 010101 you have to get it as a string then convert the string to an integer. | |
Re: You're missing the open brace { for the start of the do loop (line 25). | |
Re: [Here's](http://www.daniweb.com/software-development/csharp/threads/53072/converting-numbers-to-text-equivalent) another similar thread that may give you some ideas. | |
Re: line 24 is incorrect -- `password.length();` length is a function call so you need parentheses. You might want to move the while loop on lines 21 and 22 up to be between lines 7 and 8 so that everything is inside that loop. | |
Re: Lines 41, 42 and 43 use the wrong file description. Should be dir, not newemployyee [edit]Oope! I didn't see the above when I posted this. Sorry for duplicating the answer [/edit] | |
Re: Since you are using Visual Studio, place the cursor on one of the open {, press Ctrl+] and it will move the cursor to the matching closing }. In the case of your program you are missing two closing braces at the bottom of the code you posted. Good coding … | |
Re: First create the empty functions what you need. Next copy the code from the swith statement into the functions Finally, replace the code in the swith statement with function calls. How do you call a function? Very simply like this (which you have already posted): `Binary2Decimal();` | |
Re: This is [cross post](http://www.daniweb.com/software-development/cpp/threads/474492/calling-a-function) of the same thread in c++ forum? | |
Re: Do you know [SQL (Structured Query Language)?](http://en.wikipedia.org/wiki/SQL). It doesn't matter what programming language you use, all of them have to use SQL statements in order to accomplish the tasks you are asking about. | |
Re: My guess is no, at least not without hacking the data file and possibly the Windows registry entries. But you might ask the author of the game if there is an easier way to do it. | |
Re: line 30: should be `--i;` as previously mentioned, but -- be careful that the value of i does not go negative, such as pressing backspace too many times. So you might need something like this: `if( i > 1) { passChar[i] = '\0'; --i;}` | |
Re: Start out by coding a very simple loop int i; for(i = 0; i < 5; i++) { // code goes here } that goes on line 10, after students declaration. Now move lines 14-18 inside the loop and use the i counter to index into student array, like this: … | |
Re: Just use Notepad or Notepad++, both are free and easy to use. | |
Re: The problem must be soemthing else in the program that has corrupted stack or program memory. The code below works ok for me #include<string> #include<vector> #include<iostream> using namespace std; class Settings { private: vector<string>board; protected: public: Settings(); bool loadAndDrawFont(); }; Settings::Settings() { board.push_back("050106007"); board.push_back("620054090"); board.push_back("000908002"); board.push_back("300000568"); board.push_back("080605020"); board.push_back("546000009"); board.push_back("700502000"); board.push_back("030840016"); … | |
Re: Simple SQL statement SELECT name,COUNT(age) as AGECOUNT FROM table WHERE age = 14 | |
Re: [Here ](http://www.daniweb.com/software-development/cpp/threads/331239/how-to-configure-graphics.h-in-dev-c)is a related article you might find helpful. | |
Re: >>my go-to book, C:ARM(C a reference manual) doesnt even have this function! because getline() is not a standard C function. Its a standard c++ function, not C. If your compiler implements a C getline() function than ok, but don't expect to read about it in any text book. | |
Re: Set the default browser to Firefox and your program will probably work. | |
Re: See your other thread [here](http://www.daniweb.com/software-development/csharp/threads/474395/database). | |
Re: You start by learning the fundamental math of circles ([click here](http://www.mathgoodies.com/lessons/vol2/circumference.html)). Then you read your textbook or online tutorial about how to create a simple java program. No one here will do your homework for you, so you might as well start studying. | |
Re: You're right Suzie999, there is no need to convert from char to hex -- char is already hex. Whether it is int or hex all depends on how you want to display it to us humans. It's all the same to computers. Line 14 could just as easily be written … | |
Re: Sorry, we don't do you homework for you. Post your attempt to solve the problem then ask specific question(s) about what you don't understand. | |
Re: line 15 of the original post increments ptr within the loop, which is ok. But ptr is not reset back to the beginning of the array before the next loop starts on line 18. On line 19 ptr is beyond the end of the array so (ptr+i) is always invalid. … | |
Re: line 7 is incorrect -- instead of ++i it should probably be ++s. does line 14 show that *s and *s2 are the same strings? | |
Re: [w3schools ](http://www.w3schools.com/)are not video tutorials, but worthwhile reading anyway. | |
Re: lines 12 and 15 are wrong. According to line 27 the parameter to multiply() is not a callback function, but just a simple integer. int multiply(int a, int x) { int r = x; int e = a * r; return e; } If you really intend to pass the … | |
How did the link get into [this post](http://www.daniweb.com/software-development/shell-scripting/threads/474195/file-in-unix#post2070691)? The op said he/she didn't put it there. | |
Re: Lines 1, 5, and 6 are not valid C statements. Possibly some other language. | |
| |
Re: line 64: you can not compare two character arrays using the == operator, you have to call strcmp() `if ( strcmp(custDB[i].state,stateCode) == 0)` | |
Re: there are now cloud based version control systems, never used it and probably wouldn't use it for sensitive programs such as government classified programs. But for non-sensitive stuff I would be pretty handy because you wouldn't be restricted to accessing the data from just a single computer or usb file. … | |
Re: My guess is that he found some code written for \*nix and is trying to compile it with an MS-Windows compiler -- MinGW compiler is pobably the only MS-Windows compiler that uses it. | |
Re: You need to create threads in order to do parallel program. How to do that depends on the operating system you are using, or threading extensions of c++11 standards. A third option is to use boost threading library. If you are using a pretty new compiler, such as most recent … | |
Re: line 40: you forgot the class name before function name. `float Student::setEnglish(` | |
Re: I've sometimes said that too -- it's a toung-in-cheek way of saying we aren't going to write the program. But ... if someone really puts a million dollars usd in my paypal I'll gladly see to it that he/she gets the program. | |
Re: How much c++ do you know? If you're a beginner then you need to study c++ for about a year (maybe longer) before attempting that program. | |
Re: When calling a function you do not specify the data type of the parameters, just the names of the variables. Line 26 should be: ` addition(n1,n2);` | |
Re: >QuizForm.h file which is almost 2.5 MB and it has 81875 lines of code! OMG! Why??? Maybe you need to rethink what you have in that header file. There should not be any executasble code (such as functions) unless it's inline code. Zip it up and attach it to your … | |
Re: This thread was originally posted 5 years ago, before that version of the compiler existed. So use the code at your own risk. | |
Re: My guess is that Turbo C is just too old a compiler to do what you want -- 16-bit programs don't have very much memory so it may not be able to load the image. In that case the only solution is to use a modern compiler. | |
Re: >The problem is that Win8 for the most part ignores those ports. My PC is running Windows 8.1 and it has lots of USB ports with no problems. Maybe it's just a laptop thing. | |
Re: Your computer is probably missing the readline folder and associated header files and library files. | |
Re: [URL="http://www.osnews.com/story/1482"]So you want to write an operating system[/URL] [URL="http://www.acm.uiuc.edu/sigops/roll_your_own/"]Tutorial [/URL](I think) [URL="http://my.execpc.com/~geezer/osd/"]some source code[/URL] | |
Re: Welcome to Daniweb. Can't help you until we know what language you want to use. Then you should repost your question in the appropriate Software Forums forum. |
The End.