Need help on making a loop script base on what is inside a file...
File to read: List.txt
List.txt contains below w/c are file name as well:
SAMPLEa
SAMPLEb
SAMPLEc
SAMPLEd
SAMPLEe
SAMPLEf
.
.
.
Want to make a loop that will manipulate those that are inside the file.txt w/c are... (3 Replies)
Please help check an old code:
#include <iostream>
using namespace std;
template <class C>
class List {
//Linked list of C.
template<class U>
friend class ListItr;
private:
class ListEl {
public:
C val;
ListEl* next;
ListEl(const C& s, ListEl* n) : val(s) { next = n;}
};... (0 Replies)
Hi friends,
The derived class cannot access the base class's variables in my program. You can have a look at my code, I am actually using class templates.
#include <iostream>
using namespace std;
template <class T>
class Sum
{
friend void Check(Sum &s, T a, T b)
{
T x,... (2 Replies)
Hi,
Can anyone tell me why the following program is giving compiler error when I use a friend function of a class as the comparison predicate for the third parameter of std::sort() algorithm? How to correct it, keep the 'friend' intact?
#include <iostream>
#include <vector>
#include <list>... (1 Reply)
I have the two class definition as follows.
class A { public: int a; };
class B : virtual public A{ };
The size of class A is shown as 4, and size of class B is shown as 16. Why is this effect ?. (2 Replies)
Hello All,
I am a learner in C++. I was testing my inheritance knowledge with following piece of code.
#include <iostream>
using namespace std;
class base
{
public :
void display()
{
cout << "In base display()" << endl;
}
void display(int k)
{... (2 Replies)
Dear All,
I have a requests to retrieve all lines if second line last columns meets certain criteria.
Here is the output of the result
Table: DSSBDW.DA_MASK_CLK_AR
120908 0 86 86 - 1934528 0 70 100 -*-
Table: DSSBDW.DA_MASK_CLK_IP
310657 22030 143 185 - 5281169 7 88 77 *-*
Table:... (5 Replies)
Discussion started by: ckwan123
5 Replies
LEARN ABOUT X11R4
cmap
CMAP(5) File Formats Manual CMAP(5)NAME
cmap - format of .cmap files (color maps)
DESCRIPTION
Color-map files define the mapping between eight-bit color numbers and red, green and blue intensities used for those numbers. They are
read by Magic as part of system startup, and also by the :load and :save commands in color-map windows. Color-map file names usually have
the form x.y.z.cmapn, where x is a class of technology files, y is a class of displays, z is a class of monitors, and n is a version number
(currently 1). The version number will change in the future if the formap of color-map files ever changes. Normally, x and y correspond to
the corresponding parts of a display styles file. For example, the color map file mos.7bit.std.cmap1 is used today for most nMOS and CMOS
technology files using displays that support at least seven bits of color per pixel and standard-phosphor monitors. It corresponds to the
display styles file mos.7bit.dstyle5.
Color-map files are stored in ASCII form, with each line containing four decimal integers separated by white space. The first three inte-
gers are red, green, and blue intensities, and the fourth field is a color number. For current displays the intensities must be integers
between 0 and 255. The color numbers must increase from line to line, and the last line must have a color number of 255. The red, green,
and blue intensities on the first line are used for all colors from 0 up to and including the color number on that line. For other lines,
the intensities on that line are used for all colors starting one color above the color number on the previous line and continuing up and
through the color number on the current line. For example, consider the color map below:
255 0 0 2
0 0 255 3
255 255 255 256
This color map indicates that colors 0, 1, and 2 are to be red, color 3 is to be blue, and all other colors are to be white.
SEE ALSO magic(1), dstyle(5)4th Berkeley DistributionCMAP(5)