473,799 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

not sure how to create the main for this program

hello I was wondering if someone could help me get a main going on
this project I've completed the header file that the professor started
us on but not really sure how to get the main going. If someone could
please give me some pointers it would greatly be appreciated. Again
thanks for the help.

Henry

headerfile:

# ifndef _Polynomial_hdr _jordan
# define _Polynomial_hdr _jordan

# include <iomanip> // for the << operator
# include <math> // for fabs()
using namespace std;

//*************** *************** ***************
// Declare a useful constant
//
double zero = 0.0 ;

//*************** *************** ***************
// Declare the class. All data are private,
// all functions are public.
//
class Polynomial {
//*************** *************** ***************
// The private part of the class: the
// variables declared here cannot be used by
// functions that are not part of the class.
//
private:
int degree ;
double *coefs ;

//*************** *************** ***************
// The public part of the class: the
// functions declared here can be used in
// any context.
//
public:
// Constructors
Polynomial( const int d ) ; // constructs a zero poly with
given degree
Polynomial( const Polynomial &orig ) ; // duplicates a
polynomial

// Destructor
~Polynomial( void ) ; // releases memory

// Ring ops
Polynomial operator+( const Polynomial &right ) ;

// Assignment op
Polynomial &operator=( const Polynomial &right ) ;

// Access coefs
double &operator[]( int n ) ;

// Evaluate
double operator()( double x ) ;

// Printing
friend ostream &operator <<( ostream &to, const Polynomial p )
;
} ;
//_______________ _______________ _______________ _____________

Polynomial::Pol ynomial( const int d )
//*************** *************** *************** ****
// This constructor make a polynomial with a
// user-specified degree.
//
{
int j ; // a loop index used when
// working through the coefs

degree = d ;
coefs = new double[degree + 1] ; // dynamic allocation

// Set all coefficients to zero
for( j=0 ; j <= degree ; j++ ) {
coefs[j] = 0.0 ;
}
}
//_______________ _______________ _______________ _____________

Polynomial::Pol ynomial( const Polynomial &orig )
//*************** *************** *************** *******
// Make a copy of an existing Polynomial
//
{
int j ; // a loop index used when
// working through the coefs

degree = orig.degree ;
coefs = new double[degree + 1] ; // dynamic allocation

// Set all coefficients to zero
for( j=0 ; j <= degree ; j++ ) {
coefs[j] = orig.coefs[j] ;
}
}
//_______________ _______________ _______________ _____________

Polynomial::~Po lynomial( void )
//*************** *************** *************** *******
// Release the memory allocated (via new[]) that
// holds the coefficients
//
{
delete[] coefs ; // Note use of delete[], partner of new[]
}
//_______________ _______________ _______________ _____________

Polynomial Polynomial::ope rator+( const Polynomial &right )
//*************** *************** *************** *******
// Add the Polynomials (*this) and right.
//
{
int j, max_degree ;

//*************** *************** *************** *******
// Discover the maximal degree of the operands.
//
if( (*this).degree > right.degree ) {
max_degree = (*this).degree ;
}
else {
max_degree = right.degree ;
}

//*************** *************** *************** *******
// Construct a zero polynomial whose degree is
// high enough to hold the result.
//
Polynomial sum( max_degree ) ;

//*************** *************** *************** *******
// Add in the terms from (*this) . . .
//
for( j=0 ; j <= (*this).degree ; j++ )
sum.coefs[j] += (*this).coefs[j] ;

//*************** *************** *************** *******
// . . . then those from right.
//
for( j=0 ; j <= right.degree ; j++ )
sum.coefs[j] += right.coefs[j] ;

return( sum ) ;
}
//_______________ _______________ _______________ _____________
Polynomial &Polynomial::op erator=( const Polynomial &right )
//*************** *************** *************** *********
// Make an assignment, taking care not to
// waste memory. In the comments below lhs (rhs)
// refer to the left-hand-side (right-hand-side)
// of an expression involving the assignment
// operator.
//
{
int j ; // loop counter

delete[] coefs ; // release old coefficient array

coefs = new double[right.degree + 1] ; // allocate new array

// Copy coefficients from rhs to lhs of =
for( j=0 ; j <= right.degree ; j++ )
coefs[j] = right.coefs[j] ;

// set degree of lhs
degree = right.degree ;

return( *this ) ;
}
//_______________ _______________ _______________ _____________

double &Polynomial::op erator[]( int n )
//*************** *************** *************** **
// Return the coefficient of the x^n term.
// Take care to return a sensible result even
// when n is negative or bigger than the degree.
//
{
if( (n >= 0) && (n <= degree) ) return( coefs[n] ) ;
else return( zero ) ;
}
//_______________ _______________ _______________ _____________

double Polynomial::ope rator()( double x )
//*************** *************** *************** **
// Evaluate the polynomial at x and return
// the result.
//
{
int j ;
double result ;

//*************** *************** *************** **
// Add the coefficients one at a time, working
// from highest order to lowest and multiplying
// by x along the way.
//
result = 0.0 ;
for( j=degree ; j >= 0 ; j-- ) {
result *= x ;
result += coefs[j] ;
}

return( result ) ;
}
//_______________ _______________ _______________ _____________

ostream &operator <<( ostream &to, const Polynomial p )
//*************** *************** *************** *************** ****
// Sends a nicely-formatted string representing a Polynomial
// to the specified output stream.
//
{
int j ; // loop index over coefficients
int n_printed ; // counts number of terms printed

n_printed = 0 ;
for( j = p.degree ; j > 0 ; j-- ) {
//*************** *************** ***********
// Print only the nonzero coefficients
//
if( p.coefs[j] != 0.0 ) {
if( n_printed != 0 ) {
//*************** *************** ***
// This is not the leading tern:
// print a + or a - sign.
//
if( p.coefs[j] > 0 )
to << " + " ;
else // p.coefs[j] < 0
to << " - " ;
}
else if( p.coefs[j] < 0 ) {
to << " - " ;
}

//*************** *************** *******
// Print the coefficient itself,
// unless it's one. Even then, make
// an exception for the constant term.
//
if( (fabs( p.coefs[j]) != 1.0) || (j == 0) )
to << fabs( p.coefs[j] ) ;

//*************** *************** ********
// Print an appropriate power of x.
//
if( j > 1 ) to << " x^" << j ;
else if( j == 1 ) to << " x" ;

n_printed++ ;
}
}

//*************** *************** *************** ****
// Treat the constant term specially
//
if( n_printed > 0 ) {
if( p.coefs[0] > 0 )
to << " + " << p.coefs[0] ;
else // coefs[0] < 0
to << " - " << fabs( p.coefs[0] ) ;
}
else { // n_printed == 0
to << p.coefs[0] ;
}

return( to ) ;
}

# endif // closes # ifndef _Polynomial_hdr _jordan

PS: hopefully the comments help you to understand the program if not
please ask me to put more in, in the areas of confusion. Again thanks
for the help.
Jul 22 '05 #1
5 1783
"Henry Jordon" <bu*******@hotm ail.com> wrote in message
news:aa******** *************** ***@posting.goo gle.com...
hello I was wondering if someone could help me get a main going on
this project I've completed the header file that the professor started
us on but not really sure how to get the main going. If someone could
please give me some pointers it would greatly be appreciated. Again
thanks for the help.

Henry

headerfile:

# ifndef _Polynomial_hdr _jordan
# define _Polynomial_hdr _jordan

# include <iomanip> // for the << operator
# include <math> // for fabs()
It is customary not to have a space after the #.
using namespace std;
This 'using' is a bad idea. It means that any source file that includes this
file is forced to accept all names in the 'std' namespace.
//*************** *************** ***************
// Declare a useful constant
//
double zero = 0.0 ;
This needs a 'const' in front of it, firstly because it is appropriate for a
constant, and secondly because without it it is a global variable, but you
can't define a global variable in a header file if it is to be included in
more than source file because you would have multiple clashing variables
with the same name. With the 'const' the name is not treated by the compiler
as having external linkage (i.e., global, or accessible from multiple source
files).

const double zero = 0.;

//*************** *************** ***************
// Declare the class. All data are private,
// all functions are public.
//
class Polynomial {
//*************** *************** ***************
// The private part of the class: the
// variables declared here cannot be used by
// functions that are not part of the class.
//
private:
int degree ;
double *coefs ;

//*************** *************** ***************
// The public part of the class: the
// functions declared here can be used in
// any context.
//
public:
// Constructors
Polynomial( const int d ) ; // constructs a zero poly with
given degree
Polynomial( const Polynomial &orig ) ; // duplicates a
polynomial

// Destructor
~Polynomial( void ) ; // releases memory

// Ring ops
Polynomial operator+( const Polynomial &right ) ;

// Assignment op
Polynomial &operator=( const Polynomial &right ) ;

// Access coefs
double &operator[]( int n ) ;

// Evaluate
double operator()( double x ) ;

// Printing
friend ostream &operator <<( ostream &to, const Polynomial p )
;
} ;
//_______________ _______________ _______________ _____________

All the functions below should be in a source file (.cpp, .cxx or whatever
your compiler uses) or left in the header and declared 'inline' if you need
the speed. You can't leave them in the header without the 'inline' or you'll
have the same multiple-copies problem you have with 'zero' above.

// Start of source file Polynomial.cpp
#include "Polynomial .h"
Polynomial::Pol ynomial( const int d )
//*************** *************** *************** ****
// This constructor make a polynomial with a
// user-specified degree.
//
{
int j ; // a loop index used when
// working through the coefs

degree = d ;
coefs = new double[degree + 1] ; // dynamic allocation

// Set all coefficients to zero
for( j=0 ; j <= degree ; j++ ) {
coefs[j] = 0.0 ;
}
}
//_______________ _______________ _______________ _____________

Polynomial::Pol ynomial( const Polynomial &orig )
//*************** *************** *************** *******
// Make a copy of an existing Polynomial
//
{
int j ; // a loop index used when
// working through the coefs

degree = orig.degree ;
coefs = new double[degree + 1] ; // dynamic allocation

// Set all coefficients to zero
for( j=0 ; j <= degree ; j++ ) {
coefs[j] = orig.coefs[j] ;
}
}
//_______________ _______________ _______________ _____________

Polynomial::~Po lynomial( void )
//*************** *************** *************** *******
// Release the memory allocated (via new[]) that
// holds the coefficients
//
{
delete[] coefs ; // Note use of delete[], partner of new[]
}
//_______________ _______________ _______________ _____________

Polynomial Polynomial::ope rator+( const Polynomial &right )
//*************** *************** *************** *******
// Add the Polynomials (*this) and right.
//
{
int j, max_degree ;

//*************** *************** *************** *******
// Discover the maximal degree of the operands.
//
if( (*this).degree > right.degree ) {
max_degree = (*this).degree ;
}
else {
max_degree = right.degree ;
}

//*************** *************** *************** *******
// Construct a zero polynomial whose degree is
// high enough to hold the result.
//
Polynomial sum( max_degree ) ;

//*************** *************** *************** *******
// Add in the terms from (*this) . . .
//
for( j=0 ; j <= (*this).degree ; j++ )
sum.coefs[j] += (*this).coefs[j] ;

//*************** *************** *************** *******
// . . . then those from right.
//
for( j=0 ; j <= right.degree ; j++ )
sum.coefs[j] += right.coefs[j] ;

return( sum ) ;
}
//_______________ _______________ _______________ _____________
Polynomial &Polynomial::op erator=( const Polynomial &right )
//*************** *************** *************** *********
// Make an assignment, taking care not to
// waste memory. In the comments below lhs (rhs)
// refer to the left-hand-side (right-hand-side)
// of an expression involving the assignment
// operator.
//
{
int j ; // loop counter

delete[] coefs ; // release old coefficient array

coefs = new double[right.degree + 1] ; // allocate new array

// Copy coefficients from rhs to lhs of =
for( j=0 ; j <= right.degree ; j++ )
coefs[j] = right.coefs[j] ;

// set degree of lhs
degree = right.degree ;

return( *this ) ;
}
//_______________ _______________ _______________ _____________

double &Polynomial::op erator[]( int n )
//*************** *************** *************** **
// Return the coefficient of the x^n term.
// Take care to return a sensible result even
// when n is negative or bigger than the degree.
//
{
if( (n >= 0) && (n <= degree) ) return( coefs[n] ) ;
else return( zero ) ;
}
//_______________ _______________ _______________ _____________

double Polynomial::ope rator()( double x )
//*************** *************** *************** **
// Evaluate the polynomial at x and return
// the result.
//
{
int j ;
double result ;

//*************** *************** *************** **
// Add the coefficients one at a time, working
// from highest order to lowest and multiplying
// by x along the way.
//
result = 0.0 ;
for( j=degree ; j >= 0 ; j-- ) {
result *= x ;
result += coefs[j] ;
}

return( result ) ;
}
//_______________ _______________ _______________ _____________

ostream &operator <<( ostream &to, const Polynomial p )
//*************** *************** *************** *************** ****
// Sends a nicely-formatted string representing a Polynomial
// to the specified output stream.
//
{
int j ; // loop index over coefficients
int n_printed ; // counts number of terms printed

n_printed = 0 ;
for( j = p.degree ; j > 0 ; j-- ) {
//*************** *************** ***********
// Print only the nonzero coefficients
//
if( p.coefs[j] != 0.0 ) {
if( n_printed != 0 ) {
//*************** *************** ***
// This is not the leading tern:
// print a + or a - sign.
//
if( p.coefs[j] > 0 )
to << " + " ;
else // p.coefs[j] < 0
to << " - " ;
}
else if( p.coefs[j] < 0 ) {
to << " - " ;
}

//*************** *************** *******
// Print the coefficient itself,
// unless it's one. Even then, make
// an exception for the constant term.
//
if( (fabs( p.coefs[j]) != 1.0) || (j == 0) )
to << fabs( p.coefs[j] ) ;

//*************** *************** ********
// Print an appropriate power of x.
//
if( j > 1 ) to << " x^" << j ;
else if( j == 1 ) to << " x" ;

n_printed++ ;
}
}

//*************** *************** *************** ****
// Treat the constant term specially
//
if( n_printed > 0 ) {
if( p.coefs[0] > 0 )
to << " + " << p.coefs[0] ;
else // coefs[0] < 0
to << " - " << fabs( p.coefs[0] ) ;
}
else { // n_printed == 0
to << p.coefs[0] ;
}

return( to ) ;
}

# endif // closes # ifndef _Polynomial_hdr _jordan

PS: hopefully the comments help you to understand the program if not
please ask me to put more in, in the areas of confusion. Again thanks
for the help.


An example main, which would normally be in a new source file:

#include <iostream>
#include "Polynomial .h"

int main()
{
Polynomial p(2);
p[0] = 1.;
p[1] = -2.;
p[2] = 2.;
Polynomial q(p);
Polynomial r = q + p;
std::cout << p << r;
}

I didn't check all your code, but this program seemed to work okay when I
ran it. The output was:
2 x^2 - 2 x + 14 x^2 - 4 x + 2

DW

Jul 22 '05 #2
An example main, which would normally be in a new source file:

#include <iostream>
#include "Polynomial .h"

int main()
{
Polynomial p(2);
p[0] = 1.;
p[1] = -2.;
p[2] = 2.;
Polynomial q(p);
Polynomial r = q + p;
std::cout << p << r;
}

I didn't check all your code, but this program seemed to work okay when I
ran it. The output was:
2 x^2 - 2 x + 14 x^2 - 4 x + 2

DW


How nice of you to do his homework for him!

Reading the original post, there isn't even the slightest hint as to what is
*supposed* to be in the "main" unit. I suppose we were not only supposed to
do his coding for him, but his thinking as well?

I think you've really done Henry a disservice by allowing him to do
absolutely no work on this, and thus proceed to the next part of his class
with no knowledge of how he got there.

-Howard


Jul 22 '05 #3
"Howard" <al*****@hotmai l.com> wrote in message
news:6T******** **********@bgtn sc05-news.ops.worldn et.att.net...
An example main, which would normally be in a new source file:

#include <iostream>
#include "Polynomial .h"

int main()
{
Polynomial p(2);
p[0] = 1.;
p[1] = -2.;
p[2] = 2.;
Polynomial q(p);
Polynomial r = q + p;
std::cout << p << r;
}

I didn't check all your code, but this program seemed to work okay when I ran it. The output was:
2 x^2 - 2 x + 14 x^2 - 4 x + 2

DW
How nice of you to do his homework for him!


I don't think I did.
Reading the original post, there isn't even the slightest hint as to what is *supposed* to be in the "main" unit. I suppose we were not only supposed to do his coding for him, but his thinking as well?

I think you've really done Henry a disservice by allowing him to do
absolutely no work on this,
Does all that code look like "absolutely no work" to you?

and thus proceed to the next part of his class with no knowledge of how he got there.


My policy regarding homework questions is the same as yours. Perhaps you are
right; I don't know, but it seemed to me that the 'main' was small and
trivial part of what he was asked to do.

DW

Jul 22 '05 #4

"David White" <no@email.provi ded> wrote in message
news:ai******** ***********@nas al.pacific.net. au...
I think you've really done Henry a disservice by allowing him to do
absolutely no work on this,
Does all that code look like "absolutely no work" to you?

and thus proceed to the next part of his class
with no knowledge of how he got there.


My policy regarding homework questions is the same as yours. Perhaps you

are right; I don't know, but it seemed to me that the 'main' was small and
trivial part of what he was asked to do.

I just re-read his post, and perhaps you are right about the work involved.
I thought that all that code was written by the professor. His run-on
sentence (below) left my brain addled. :-)
hello I was wondering if someone could help me get a main going on
this project I've completed the header file that the professor started
us on but not really sure how to get the main going.


Obviously an English major! :-)

-Howard
Jul 22 '05 #5
"David White" <no@email.provi ded> wrote in message news:<u2******* ************@na sal.pacific.net .au>...
An example main, which would normally be in a new source file:

#include <iostream>
#include "Polynomial .h"

int main()
{
Polynomial p(2);
p[0] = 1.;
p[1] = -2.;
p[2] = 2.;
Polynomial q(p);
Polynomial r = q + p;
std::cout << p << r;
}


You need to define operator== for your Polynomial since it has value
semantics. Then, you use your 'main' as an opportunity to verify your
code. For example, here is a class definition for a Point class:

class Point
{
double d_x;
double d_y;

public:
// CREATORS
Point();
Point(const Point& p);
Point(double x, double y);
~Point();

// MANIPULATORS
Point& operator=(const Point& p);

// ACCESSORS
double x() const;
double y() const;
};

// ==============
// FREE OPERATORS
// ==============

inline bool operator==(cons t Point& lhs, const Point& rhs);
inline bool operator!=(cons t Point& lhs, const Point& rhs);

std::ostream& operator<<(std: :ostream& out, const Point& p);

-----
Here is a portion of a 'main' routine which validates the value
semantics of Point:

// main.cpp
#include "point.h"
#include <cstdlib>
#include <iostream>

using std::cout;
using std::endl;

#define ASSERT(X) aSsErT(!(X), #X, __LINE__)

int testStatus = 0;

static
void aSsErT(int c, const char *s, int i) {
if (c) {
cout << "Error " << __FILE__ << "(" << i << "): " << s
<< " (failed)" << endl;
if (testStatus >= 0 && testStatus <= 100) ++testStatus;
}
}

int main(int argc, char *argv[])
{
int test = std::atoi(argv[1]);

switch(test){
// Add new test cases here.
case 1: {
// -------------------------------------------------------------------
// Concerns:
// Verify the value semantics of the 'Point' class.
//
// Plan:
// create a default Point (0,0) {a:(0,0)}
// exercise equality operator {a==: a}
// create an explicit Point (0,0) {a:(0,0) b:(0,0)}
// exercise equality operator {b==: a b}
// create a copy of a {a:(0,0) b:(0,0) c:(0,0)}
// exercise equality operator {c==: a b c}
// create a Point at (1,2) {a:(0,0) b:(0,0) c:(0,0)
d:(1,2)}
// exercise equality operator {d==: a b c d}
// assign d to c {a:(0,0) b:(0,0) c:(1,2)
d:(1,2)}
// exercise equality operator {c==: a b c d}
// assign b to a temporary Point (3,4) {a:(0,0) b:(3,4) c:(1,2)
d:(1,2)}
// exercise equality operator {b==: a b c d}
// assign a to a {a:(0,0) b:(3,4) c:(1,2)
d:(1,2)}
// exercise equality operator {a==: a b c d}
//
// Tests:
// default constructor
// copy constructor
// constructor(x, y)
// destructor
// operator=()
// operator==()
// x() const
// y() const
// -------------------------------------------------------------------

cout << "case 1" << endl
<< "======" << endl;

Point a;
ASSERT(0.0 == a.x());
ASSERT(0.0 == a.y());
ASSERT(a == a);

Point b(0.0, 0.0);
ASSERT(0.0 == b.x());
ASSERT(0.0 == b.y());
ASSERT(b == a);
ASSERT(b == b);

Point c(a);
ASSERT(c == a);
ASSERT(c == b);
ASSERT(c == c);

Point d(1,2);
ASSERT(1.0 == d.x());
ASSERT(2.0 == d.y());
ASSERT(d != a);
ASSERT(d != b);
ASSERT(d != c);
ASSERT(d == d);

c = d;
ASSERT(c != a);
ASSERT(c != b);
ASSERT(c == c);
ASSERT(c == d);

b = Point(3,4); // important if you allocate from heap
ASSERT(3.0 == b.x());
ASSERT(4.0 == b.y());
ASSERT(b != a);
ASSERT(b == b);
ASSERT(b != c);
ASSERT(b != d);

a = a; // important if you allocate form heap
ASSERT(a == a);
ASSERT(a != b);
ASSERT(a != c);
ASSERT(a != d);
} break;
default: {
cerr << "WARNING: CASE " << test << " NOT FOUND" << endl;
testStatus = -1;
} break;
}

if(testStatus > 0){
cerr << "Error: non-zero test status: status=" << testStatus
<< endl;
}
return testStatus;
}
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1174
by: Alan D. | last post by:
Hi, I am trying to create a program that would provide quick access to a set of user defined applications. I have created a "concept screenshot." Please bear in mind that the resulting program would allow the user to configure which applications loaded within the form, and that if the main form was minimized all the programs inside it would be hidden. Really what I need to know is how to make an external program, such as notepad, load...
4
3175
by: MechSoft | last post by:
Hi, there, I have a multi-threaded non-MFC program that will include a regular dll which would be part of the user interface, possibly a dialog based interface. I would prefer to have the user interface dll run on its own thread. How to do that? I can't find the answer from the msdn knowledge base. Thanks a lot in advance! Kate
27
27425
by: jeniffer | last post by:
I need to create an excel file through a C program and then to populate it.How can it be done?
6
3106
by: asif929 | last post by:
I have been trying to create this chess program from many hours and still couldn't figure out how to complete it. After consume all these efforts i come here for the first time for help. i would appreciate if somebody help me out of this to debug the program below. The chess board suppose to be printed with "*" and space " " as you can see below as an example. Again I would appreciate for your help in advance. sample print or output:
7
1801
by: James Crosswell | last post by:
I want to create a class with a static property as follows: class MyClass { private static List<MyHandlerRegisteredHandlers = new List<MyHandler>; } I then want to be able to create descendants of the MyHandler class which will register themselves using a RegisterHandler method, which
0
1352
by: driplet | last post by:
In BCB I created a splash window as a starting window of my application program. I setup a timer on the splash window so that it can be automatically closed after showing up some times and then my main program form comes up. However, my main program form keeps created in the same time interval as the splash window maintaining. I guess the timer on the splash window is still working because I used the following sentences to create my main window...
7
6565
by: dspfun | last post by:
How do you create a standalone C program? With standalone C program I mean it should run "freestanding" on a CPU without an OS or other supporting software/libraries linked to the C program. After the bios/ setup has done its initializations and "stuff" I would like to be able to continue execution with my own C program. The C program will be really simple to start with, for example just write an integer value to a memory address. ...
3
3862
by: jojo41300000 | last post by:
Hi, I am trying to create a shortcut icon on Today in window mobile 5.0. I have a CAB file which will install the program and create the shortcut icon in Today. The CAB file sucessfully install the .exe program and drop the shortcut on the Today folder. The problem is that the shortcut icon doesn't show up on the Today List (the main screen) after the CAB file is installed. When I checked on the Today folder, the shortcut is...
18
2299
by: Angus | last post by:
Hello We have a lot of C++ code. And we need to now create a library which can be used from C and C++. Given that we have a lot of C++ code using classes how can we 'hide' the fact that it is C++ from C compilers? Can we have a C header file which uses the functionality of the C++ files and compile this into a lib file?
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10485
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10252
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9073
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.