-
Replied To a Post in Start running the C++ code with visual studio 2010
Can you post a screen shot of the contents of newproject2 directory in detail view? -
Replied To a Post in [win32] - how make the form transparent and opacy?
No doing a print screen will remove the mouse icon. You could always draw on the picture though to show where the mouse was when you took the print screen. … -
Replied To a Post in finding an instance of a string in an array of strings
For an example using strings and arrays and searching through the array. //... const int arraySize = 20; char string commands[arraySize] = {"quit", "open", "save", "close"}; string command = "save"; … -
Replied To a Post in Start running the C++ code with visual studio 2010
I am asking does O_PSIMP.cpp have `#include "O_PV.cpp"` in it. If not copy and paste the exact error output here. -
Replied To a Post in finding an instance of a string in an array of strings
Why not use an enum class? In C++ it is possible to create real enum types that are neither implicitly convertible to int and that neither have enumerator values of … -
Replied To a Post in Start running the C++ code with visual studio 2010
Is o_psimp.cpp trying to included o_pv.cpp? -
Replied To a Post in Start running the C++ code with visual studio 2010
You need to set the included directory in your project to wherever "lh_dllnex.h" is located. That header file appears to be from a third party library so you need to … -
Replied To a Post in Start running the C++ code with visual studio 2010
Navigate to the folder where the header file is located and then pick "select folder". -
Replied To a Post in c++ get free number from query result
I would have to agree with deceptikon on this. Read in the database into your code and then figure out where the free slot is. -
Replied To a Post in Write a C++ program that accepts the rectangular coordinates of two points
the OP doesnt have any code to pause between the output and the window closing so I would guess that was the issue. -
Replied To a Post in Error with <algorithm file>
Since you are dealing with strings shouldn't `ostream_iterator<int> output(cout," ");` be `ostream_iterator<string> output(cout," ");`? -
Replied To a Post in Start running the C++ code with visual studio 2010
Are you using a third party library? If so you need to tell visual studio where those header files are. You can do that going to [ Project -> Properties … -
Replied To a Post in c++ get free number from query result
Is the image you poseted the inventory table? -
Replied To a Post in c++ get free number from query result
what are the actual columns in the database? What are the types and what do they store? The query just gives the lowest slot number availible in the inventory table … -
Replied To a Post in String problem C++
Get rid of line 10 and it should work fine. -
Replied To a Post in i need c++ compiler
You can use [Code::Blocks](http://www.codeblocks.org/), [Visual Studio Express](http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx) or a host of [others](http://lmgtfy.com/?q=free+c%2B%2B+compilers). -
Replied To a Post in c++ get free number from query result
Do you actuall have a slot column in the database? if so you can use select min(slot) from inventory where item_id is null I'm not quite sure if that is … -
Replied To a Post in Start running the C++ code with visual studio 2010
If you go to [ view -> error list ] is there anything in the error list? -
Replied To a Post in Start running the C++ code with visual studio 2010
Yes. Now you need to compile it. -
Replied To a Post in Start running the C++ code with visual studio 2010
If the files were not part of a previous project then you need to create a new blank project and then add the files to it. -
Replied To a Post in Could somebody please explain the meaning of this code ''line by line'' ?
Don't use that code. That code is terrible. What are you trying to do? Oh yeah did I mention DON'T USE THAT CODE. -
Replied To a Post in C++ Creating and change, formatting - .docx format
[Here](http://lmgtfy.com/?q=working+with+docx+files+in+c%2B%2B) you go. -
Replied To a Post in Deleting duplicate strings from an array of strings
What is your definition of "not working"? -
Replied To a Post in [win32] - getting child controls from it's parent
Try making `if(index>=childcontrolsindex)` `if(index>childcontrolsindex)`? -
Replied To a Post in Need help with STL checking for palindrome
Without running your code the one thing that sticks out to me is for (forwardTIterator=theRef.cbegin(), backwardTIterator=(theRef.crbegin()+1); forwardTIterator!=theRef.cend(); forwardTIterator++,backwardTIterator++) Why are you using `backwardTIterator=(theRef.crbegin()+1)`? Shouldn't it be `backwardTIterator= theRef.crbegin()` since `crbegin()` … -
Replied To a Post in Finding The Divisors of a Positive Integer Number
That's not a question. What is your question? We only give homework kelp to those that show effort. -
Replied To a Post in Write a program that reads in a line consisting of a student’s name, Social
What is the code you are using now? Is it not working? -
Replied To a Post in Help on this C++ Program!
What is the code that you have and what is the error the compiler is giving you? -
Replied To a Post in Write a program that reads in a line consisting of a student’s name, Social
Well thats easy enough to change the code to do that. I am not writing your program for you. I am showing you how it could be done. You should … -
Replied To a Post in Write a program that reads in a line consisting of a student’s name, Social
This would be the simplest way I can think of to do it. #include <iostream> #include <string> using namespace std; int main() { string info = "R Y, 123-45-6789, ya123, … -
Replied To a Post in Write a program that reads in a set of positive integers, representing test
The way I would do it without using the stl would be like this #include <iostream> #include <fstream> using namespace std; int main() { ifstream fin("data.txt"); int scroes[101]; // make … -
Replied To a Post in Write a program that reads in a line consisting of a student’s name, Social
You can use the functions that I descrided in my previous post. Check [this](http://www.cplusplus.com/reference/string/basic_string/) reference out for everything you can do with a string object. -
Replied To a Post in Pressing enter twice with getline
Well you are calling `getline` and `get` so you need to hit enter twice. What is the purpose of using `cin.get()` in your if statement? getline will toss it out … -
Replied To a Post in Write a program that reads in a set of positive integers, representing test
arrySize = 1; for(int i = 0; !scorFil.eof(); i++ && arrySize++)//for loop for the readable file, collect the scores { //the array size is incremented as well scorFil >> score; … -
Replied To a Post in Write a program that reads in a line consisting of a student’s name, Social
You dont need to. You can use the functions of the string and do all of this with the string and then just output the string when completed. -
Replied To a Post in Write a program that reads in a line consisting of a student’s name, Social
Well if you assume that no name has a number in it then to find the social in the line you would do `size_t spot = line.find_first_of("0123456789")`. Once you have … -
Replied To a Post in C++ pattern
Okay, lets break this down a little. If we want to print the backwards Z and we have a nested for loop like you have what are the conditions of … -
Replied To a Post in C++ pattern
That still doesnt show us what you have. Even if it doesnt compile show us what you are doing and we can help to get it to work. -
Replied To a Post in [programming style/structure]nested classes
Make the access for all of the class members public in the nested class and declare the nested class in the private part of the main class. this way you … -
Replied To a Post in C++ pattern
What do you have so far? We only give homework help to those that show effort. -
Replied To a Post in Write a method, linearize, that takes a 2-dimensional array as parameter...
With arrays I am in favor of having the caller suppling the 1d array to the function. That way the caller knows they are responsible for the array. It's a … -
Replied To a Post in No matching constructor for initialization
Out of curiosity what happens if you define your constructor in the class in the header file instead of the .cpp file? -
Replied To a Post in Equivalent c++ statement of c
cout<<" Inode number: "<< sb.st_ino; You only need the long if you want it explicitly cast to a long. If you do want to cast and you want the code … -
Replied To a Post in No matching constructor for initialization
Okay I compiled this on my machine at home running MSVS 2012 Ultimate. As I mentioned earlier I had to comment out the functions called in main that were not … -
Replied To a Post in No matching constructor for initialization
You are correct about the default values. I normally just write my constructors that are defaults in the .h file. I put the code that you last posted in MSVS … -
Replied To a Post in No matching constructor for initialization
You are not including the default values on line 27. The prototype and the definition should match. -
Replied To a Post in [vectors] 3D vectors?!
This is how I would structure the code. If you are going to use OO principles then use them fully. class Student { private: string lastName; string firstName; public: /// … -
Replied To a Post in Write a program that merges the numbers in two files and writes...
You can use `cout` to debug. Just output parts that are questionable or you are not sure what the value is. You don't need to actually step through a debugger … -
Replied To a Post in No matching constructor for initialization
Line 22 in your header file does not match line 27 in your cpp file. -
Replied To a Post in radix sort
What is the error you are getting?
The End.