15,300 Posted Topics

Member Avatar for 21310051

Do you already subscribe to a [website hosting service](http://www.daniweb.com/business-exchange/webmaster-marketplace/36)?

Member Avatar for 21345570
0
99
Member Avatar for 21345572

[Link](http://msdn.microsoft.com/en-us/library/wa80x488.aspx) (google does wonders for answering homework problems)

Member Avatar for 21303359
0
125
Member Avatar for Dang_1

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.

Member Avatar for Ancient Dragon
0
103
Member Avatar for john.kane.100483

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

Member Avatar for john.kane.100483
0
149
Member Avatar for BboyTurok1990
Member Avatar for JasonHippy
0
271
Member Avatar for Mo90games

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

Member Avatar for Ancient Dragon
0
143
Member Avatar for sailorsoldier

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.

Member Avatar for Ancient Dragon
0
180
Member Avatar for neyoibarra

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]

Member Avatar for Ancient Dragon
0
105
Member Avatar for BboyTurok1990

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 …

Member Avatar for vmanes
0
239
Member Avatar for tux4life
Member Avatar for john.kane.100483

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();`

Member Avatar for Schol-R-LEA
0
228
Member Avatar for john.kane.100483

This is [cross post](http://www.daniweb.com/software-development/cpp/threads/474492/calling-a-function) of the same thread in c++ forum?

Member Avatar for pritaeas
0
135
Member Avatar for 21345572

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.

Member Avatar for 21310051
0
222
Member Avatar for joshl_1995

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.

Member Avatar for joshl_1995
0
304
Member Avatar for neyoibarra

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

Member Avatar for nullptr
0
172
Member Avatar for ReneeJA

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

Member Avatar for ReneeJA
0
240
Member Avatar for MasterHacker110
Member Avatar for MiniApocalypse

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"); …

Member Avatar for Ancient Dragon
0
349
Member Avatar for Iikeloa
Member Avatar for urvisha
0
166
Member Avatar for kamil_2

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

Member Avatar for Ancient Dragon
0
186
Member Avatar for debasisdas
Member Avatar for taverasme

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

Member Avatar for Nikolas9896
0
6K
Member Avatar for xn hunk
Member Avatar for 21345570

See your other thread [here](http://www.daniweb.com/software-development/csharp/threads/474395/database).

Member Avatar for Ancient Dragon
0
69
Member Avatar for beauty.is.raven

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.

Member Avatar for jwenting
0
404
Member Avatar for swaar.metaal.7

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 …

Member Avatar for swaar.metaal.7
0
278
Member Avatar for RASHMI RAUT
Member Avatar for shyrin
Re: c+++

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.

Member Avatar for Schol-R-LEA
0
158
Member Avatar for yann.bohbot.9

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

Member Avatar for sepp2k
0
129
Member Avatar for OpenTheTrollGate

line 7 is incorrect -- instead of ++i it should probably be ++s. does line 14 show that *s and *s2 are the same strings?

Member Avatar for Ancient Dragon
0
123
Member Avatar for erson212

[w3schools ](http://www.w3schools.com/)are not video tutorials, but worthwhile reading anyway.

Member Avatar for Ancient Dragon
0
59
Member Avatar for furalise

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 …

Member Avatar for furalise
0
781
Member Avatar for Ancient Dragon

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.

Member Avatar for Ancient Dragon
0
106
Member Avatar for COKEDUDE

Lines 1, 5, and 6 are not valid C statements. Possibly some other language.

Member Avatar for Ancient Dragon
0
264
Member Avatar for hafza.sana
Member Avatar for David W
0
153
Member Avatar for Jason_9

line 64: you can not compare two character arrays using the == operator, you have to call strcmp() `if ( strcmp(custDB[i].state,stateCode) == 0)`

Member Avatar for David W
0
268
Member Avatar for NardCake

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

Member Avatar for NardCake
0
849
Member Avatar for COKEDUDE

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.

Member Avatar for COKEDUDE
0
132
Member Avatar for tolatallest

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 …

Member Avatar for mike_2000_17
0
116
Member Avatar for OceanDesigns

line 40: you forgot the class name before function name. `float Student::setEnglish(`

Member Avatar for OceanDesigns
0
118
Member Avatar for tharindu123

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.

Member Avatar for Elixir42
0
523
Member Avatar for Gupta_1

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.

Member Avatar for Ancient Dragon
0
133
Member Avatar for Christoffer_S

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);`

Member Avatar for Schol-R-LEA
0
646
Member Avatar for boris90

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

Member Avatar for dreslough
0
2K
Member Avatar for vegaseat

This thread was originally posted 5 years ago, before that version of the compiler existed. So use the code at your own risk.

Member Avatar for petersvp
0
10K
Member Avatar for Za3mi

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.

Member Avatar for Za3mi
0
912
Member Avatar for goodtaste

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

Member Avatar for khakilang
0
400
Member Avatar for Tinnin

Your computer is probably missing the readline folder and associated header files and library files.

Member Avatar for Tinnin
0
2K
Member Avatar for nyt1972

[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]

Member Avatar for imawesome511
0
4K
Member Avatar for jalferez1

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.

Member Avatar for jalferez1
0
128

The End.