How to change font size in dos window by using 'windows.h'?
Type: Posts; User: f6ff
How to change font size in dos window by using 'windows.h'?
:p ,thx
the code above looks fine, but when applying it into program, the error happens:
" no matching function for call to `ocean::getcoordinates (submarine &)' "
typedef struct target
{
...
here's the code, when calling functionC, the error messge is
"no matching function for call to `sampleB::functionB (sampleA&)"
class sampleA
{
public:
sampleA(){}
problem solved by windows.h
void clrscrn()
{
COORD coordScreen={ 0, 0};
DWORD cCharsWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
DWORD dwConSize;
HANDLE hConsole =...
How to fix some text on the top of screen?
How to clear one line after input?
good source site, but I need one in windows
I need some networking communication sample codes that can run under dev4. Please provide a link if any.
using dev4, what is the easiest way to send some characters to the same program opend in another ip address?
problem solved, thx.
error fixed,but the same error is still there
I got the error at the end of the lines, what's wrong?
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <conio.h>
Thanks for the comment,but what's difference if using cin.getline()? and replacing system() by cin.get()?
here's a recursive version, any suggestion for this one?
char * look_for_char (char...
Is this the right solution?
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <iomanip>
char * loot_for_char( char str[], char a )
it should be a simple function, however I am confused.
Anybody gives a sample function for the problem?
Here's the problem
Write a function that will return a pointer to a character, specified by the user of the function, within a character array. The array and the desired character are to be the only...
What's the difference between a friend function declared within the class and one declared outside the class?
Here's the remove function, each node can be deleted without a problem except the last one.
void delete(char the_node)
{
NODE *target;
...
What to do with friend functions of a class under template?
I got a problem to delete the last node, what might be the problem?
typedef struct node
{
char data;
int count;
node *next;
node *pre;
} NODE;
that will work, thanks
I tried this to make ptr->count organizing, but not working
cout <<setw(30-(ptr->data.size()))<< ptr->data <<setw(30)<<ptr->count
It's output
To change a linked list into template, there's the code:
template <class Items>
struct node
{
Items data;
node *next;
} NODE;
How to output something like this in c++? (first part of each line is left aligned, second part is right aligned)
********* **
******* ****
******* ****
********** *