Dear Experts,
I have a turbo Pascal program that used to write a binary file that was a sort of database. Each row of the database consisted of an array of 4 byte integers (LongInt). I beli...
I have a piece of code that reads two variables out of a database. Lets call these variables VendorName and MasterName. The system does a runs a function to see which value it will assign to...
i am trying to store the A pointer to the last token found in string. return by strtok in perr
which i declared in the array of struct
struct valStuct
{
char *perr; /*IS THIS CO...
I'm perusing code that reads 30 words from a memory mapped location. Each word is 16 wide. The requirements within the specification on Word 11 is as follows
WORD 11
SIGNAL: 2's complem...
Hello all,
Im experiencing a strange issue. I am building a static library, and I have an executable as a test harness that I am using to test various functionality of the library. Below i...
I have a method which writes something to a file.. basically it writes something like the following::
xpos = [ ......a123. 12312 3.123]
ypos = [1231. 12312. 13123 ... ]
problem is whene...
The code is below:
the problem is in the following code:
PolyClass& PolyClass::AddPoly(PolyClass& p)
{
if (pol ->size > p->pol->size){ ==>>>>>>>> this part here
}
return *re...
This is a multi-project C++ solution (unmanaged) supporting several languages. Someone else checked in a change to one language, and now the project doesn't build. The error is
error RC...
I am trying to get the running SHA1 value of the current EXE running for security reasons.
Basicly, I have something that can grab SHA1 via the path. However, I want to be able to get the a...
Hie,
In the code below i try to insert an element into a vector; the compiler says invalid conversion from 'const A*' to 'A*'
1-Can somebody explain why? I thought as 'c' is a 'const A&' tha...
Does anyone one of a good quality PDF library that is callable from C or C++?
I need to write multipage PDF files, don't need to read.
It can cost money but I want to buy it once and then fr...
Storing 3 records in std::set, but set::find() is unable retrive those records.
#include <set>
#include <iostream>
#include <string>
using namespace std;
class A
{
public:
A...
I'm wondering if this is valid, and if not, ideas on how to accomplish the same idea. I have a pretty complex vector that I want to use, and instead of overloading insert(), I have a new vecto...
Dear experts,
I have a binary file with varying number of nulls at the end. When I take a look in the hexedecimal editor, I see something like:
48 49 51 56 00 00 00 00 00 00 00 00 00 00...
I bet this has been asked a million times but haven't a clue what tags to search for to find the answers.
Basically I have an IF statement .. which is located in main.cpp
I want to check...
A buffer size is specified as 1<<13
What is the result of 1<<13
An object in Constructor initializer list is intialized as follows:
x(2, 3, 5),
x is a private member of class1. x is object of type class2. class2 has 3 private
members, which are i...
If I am asked to overload my access operator for a polynomial class... what is the most reasonable thing to return back? another polynomial?
Hi,
I have a structure like the one below with a C++ string member. I need to dynamically allocate the structure and the name field. What's the right way to allocate/free memory for the myN...
My c++ code is to read from binary file and do some simple arthimatics and write the result to another binary file. There are no errors in the code and when I build it ,it says successful.
A...
New to C and C++, I was playing around with C++ namespaces today.
My test code was going nicely, until I started trying to write up a bit of more useful code (converting some of my C learni...
Hello,
I have the following code, strangely it compiles fine, yet if I uncomment the testMethod line the compiler complains that B is already inherited through T1. Why does it compile fine ...
What design pattern is used to implement a redo/undo function? Explain how and why?
How would u explain this so the user can understand this.
Hi
I have a array containing 100 numbers (0-99). I have made a function that randomly puts in a number of bombs, marked with a "B" in the array and calculate the numbers around the bombs. T...
I have the following error:
vehicle.cpp:22: error: no match for operator= in *((Vehicle*)this)->Vehicle::s = 0.0
vehicle.h:25: note: candidates are: State& State::operator=(const State&)
...