473,804 Members | 4,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MyString Class

Below is my project. My Code is done, but when I try to compile it, my IDE
crahses (again). I fixed up all the things you guys said I should, except
for some which would not meet the project requiremnts. here is my code. it
compiles, but crashes winsioux.

#ifndef MYSTRING_H
#define MYSTRING_H
#include <iostream>
using namespace std;

class MyString {
public:
//Constructors, Copy, and Destrctors

MyString(); //one of four
MyString(const char *inString); //two of four
MyString operator=(const MyString right); //three of four
MyString(const MyString &right); //four of four
~MyString(); //destructor

//input/output
int length()const;
friend ostream& operator<<(ostr eam& out,const MyString &outString);
friend istream& operator>>(istr eam& in,MyString &inString);
void read(istream& inString,char delimit);
//Overloaded brackets
char& operator[](int index);
char operator[](int index)const;

friend MyString operator+(const MyString left,const MyString right);
MyString& operator+=( const MyString &right);

friend bool operator<(const MyString &left, const MyString &right);
friend bool operator<=(cons t MyString &left, const MyString &right);
friend bool operator>=(cons t MyString &left, const MyString &right);
friend bool operator>(const MyString &left, const MyString &right);
friend bool operator==(cons t MyString &left, const MyString &right);
friend bool operator!=(cons t MyString &left, const MyString &right);
private:
char * string;

};

#endif

/*
* -------------------
* These functions are designed to help you test your MyString objects,
* as well as show the client usage of the class.
*
* The BasicTest function builds an array of strings using various
* constructor options and prints them out. It also uses the String
* stream operations to read some strings from a data file.
*
* The RelationTest function checks out the basic relational operations
* (==, !=, <, etc) on Strings and char *s.
*
* The ConcatTest functions checks the overloaded + and += operators that
* do string concatenation.
*
* The CopyTest tries out the copy constructor and assignment operators
* to make sure they do a true deep copy.
*
* Although not exhaustive, these tests will help you to exercise the basic
* functionality of the class and show you how a client might use it.
*
* While you are developing your MyString class, you might find it
* easier to comment out functions you are ready for, so that you don't
* get lots of compile/link complaints.
*/

#include "mystring.h "
#include <fstream>
#include <cctype> // for toupper()
#include <string> // for strchr(), strstr(), etc.
#include <cassert>
#include <iostream>
using namespace std;

bool eof(istream& in);
void BasicTest();
void RelationTest();
void ConcatTest();
void CopyTest();
MyString AppendTest(cons t MyString& ref, MyString val);

int main()
{
BasicTest();
RelationTest();
ConcatTest();
CopyTest();

}

bool eof(istream& in)
{
char ch;
in >> ch;
in.putback(ch);
return !in;
}
void BasicTest()
{
cout << "----- Testing basic String creation & printing" << endl;

const MyString strs[] =
{MyString("Wow" ), MyString("C++ is neat!"),
MyString(""), MyString("a-z")};
for (int i = 0; i < 4; i++){
cout << "string [" << i <<"] = " << strs[i] << endl;
}

cout << endl << "----- Now reading MyStrings from file" << endl;
cout << endl << "----- first, word by word" << endl;
ifstream in("string.data ");
assert(in);
while (!eof(in)) {
MyString s; // creates an empty string
if (in.peek() == '#') { // peek at char, comments start with #
in.ignore(128, '\n'); // skip this line, it's a comment
} else {
in >> s;
cout << "Read string = " << s << endl;
}
}
in.close();

cout << endl << "----- now, line by line" << endl;
ifstream in2("string.dat a");
assert(in2);
while (!eof(in2)) {
MyString s; // creates an empty string
if (in2.peek() == '#') { // peek at char, comments start with #
in2.ignore(128, '\n'); // skip this line, it's a comment
} else {
s.read(in2, '\n');
cout << "Read string = " << s << endl;
}
}
in2.close();

cout << endl << "----- Testing access to characters (using const)" <<
endl;
const MyString s("abcdefghijkl mnopqsrtuvwxyz" );
cout << "Whole string is " << s << endl;
cout << "now char by char: ";
for (int i = 0; i < s.length(); i++){
cout << s[i];
}

cout << endl << "----- Testing access to characters (using non-const)"
<< endl;
MyString s2("abcdefghijk lmnopqsrtuvwxyz ");
cout << "Start with " << s2;
for (int i = 0; i < s.length(); i++){
s2[i] = toupper(s2[i]);
}
cout << " and convert to " << s2 << endl;
}



void RelationTest()
{
cout << "\n----- Testing relational operators between MyStrings\n";

const MyString strs[] =
{MyString("app" ), MyString("apple "), MyString(""),
MyString("Banan a"), MyString("Banan a")};

for (int i = 0; i < 4; i++) {
cout << "Comparing " << strs[i] << " to " << strs[i+1] << endl;
cout << "\tIs left < right? " << (strs[i] < strs[i+1]) << endl;
cout << "\tIs left <= right? " << (strs[i] <= strs[i+1]) << endl;
cout << "\tIs left > right? " << (strs[i] > strs[i+1]) << endl;
cout << "\tIs left >= right? " << (strs[i] >= strs[i+1]) << endl;
cout << "\tDoes left == right? " << (strs[i] == strs[i+1]) << endl;
cout << "\tDoes left != right ? " << (strs[i] != strs[i+1]) << endl;
}

cout << "\n----- Testing relations between MyStrings and char *\n";
MyString s("he");
const char *t = "hello";
cout << "Comparing " << s << " to " << t << endl;
cout << "\tIs left < right? " << (s < t) << endl;
cout << "\tIs left <= right? " << (s <= t) << endl;
cout << "\tIs left > right? " << (s > t) << endl;
cout << "\tIs left >= right? " << (s >= t) << endl;
cout << "\tDoes left == right? " << (s == t) << endl;
cout << "\tDoes left != right ? " << (s != t) << endl;

MyString u("wackity");
const char *v = "why";
cout << "Comparing " << v << " to " << u << endl;
cout << "\tIs left < right? " << (v < u) << endl;
cout << "\tIs left <= right? " << (v <= u) << endl;
cout << "\tIs left > right? " << (v > u) << endl;
cout << "\tIs left >= right? " << (v >= u) << endl;
cout << "\tDoes left == right? " << (v == u) << endl;
cout << "\tDoes left != right ? " << (v != u) << endl;

}


void ConcatTest()
{
cout << "\n----- Testing concatentation on MyStrings\n";

const MyString s[] =
{MyString("outr ageous"), MyString("milk" ), MyString(""),
MyString("cow") , MyString("bell" )};

for (int i = 0; i < 4; i++) {
cout << s[i] << " + " << s[i+1] << " = " << s[i] + s[i+1] << endl;
}

cout << "\n----- Testing concatentation between MyString and char *\n";

const MyString a("abcde");
const char *b = "XYZ";
cout << a << " + " << b << " = " << a + b << endl;
cout << b << " + " << a << " = " << b + a << endl;

cout << "\n----- Testing shorthand concat/assign on MyStrings\n";

MyString s2[] =
{MyString("who" ), MyString("what" ), MyString("WHEN" ),
MyString("Where "), MyString("why") };

for (int i = 0; i < 4; i++) {
cout << s2[i] << " += " << s2[i+1] << " = ";
cout << (s2[i] += s2[i+1]) << endl;
}

cout << "\n----- Testing shorthand concat/assign using char *\n";
MyString u("I love ");
const char *v = "programmin g";
cout << u << " += " << v << " = ";
cout << (u += v) << endl;
}



MyString AppendTest(cons t MyString& ref, MyString val)
{
val[0] = 'B';
return val + ref;
}



void CopyTest()
{
cout << "\n----- Testing copy constructor and operator= on MyStrings\n";

MyString orig("cake");
MyString copy(orig); // invoke copy constructor

copy[0] = 'f'; // change first letter of the *copy*
cout << "original is " << orig << ", copy is " << copy << endl;
MyString copy2; // makes an empty string

copy2 = orig; // invoke operator=
copy2[0] = 'f'; // change first letter of the *copy*
cout << "original is " << orig << ", copy is " << copy2 << endl;

copy2 = "Copy Cat";
copy2 = copy2; // copy onto self and see what happens
cout << "after self assignment, copy is " << copy2 << endl;
cout << "Testing pass & return MyStrings by value and ref" << endl;
MyString val = "winky";
MyString sum = AppendTest("Boo ", val);
cout << "after calling Append, sum is " << sum << endl;
cout << "val is " << val << endl;
val = sum;
cout << "after assign, val is " << val << endl;

}

MyString::MyStr ing()
{

string = new char[0];
string[0] = 0;

}


MyString::MyStr ing(const char *inString)
{
string = new char[strlen(inString )+1];
strcpy(string,i nString);
}


MyString::~MySt ring()
{
delete []string;
}


ostream& operator<<(ostr eam &out,const MyString &outString)
{
out<<outString. string;
return out;
}


MyString MyString:: operator=(const MyString right)
{
if (this != &right)
{
delete []string;
string = new char[strlen(right.st ring)+1];
strcpy(string,r ight.string);
}
return *this;
}


MyString::MyStr ing(const MyString &right)
{
string = new char[strlen(right.st ring)+1];
strcpy(string,r ight.string);
}



char& MyString::opera tor[](int index)
{
assert(index>=0 && index < strlen(string)) ;
return string[index];
}


char MyString::opera tor[](int index)const
{
assert(index>=0 && index < strlen(string)) ;
return string[index];
}

istream& operator>>(istr eam& in,MyString &inString)
{

char temp[128];
delete [] inString.string ;
in>>temp;
strcpy(inString .string,temp);

return in;
}
void MyString::read( istream &inString,ch ar delimit)
{
char temp[128];
delete []string;
inString.getlin e(temp,127,deli mit);
strcpy(string,t emp);
}

MyString operator+(const MyString left,const MyString right)
{
MyString temp;
//temporary mystring to hold contents of left.string+rig ht.string
temp.string = new char[strlen(left.str ing)+strlen(rig ht.string)+1];
//dynamic array size of left.string+rig ht.string+1
strcat(left.str ing,right.strin g);
//make left.string+rig ht.string into left.string
strcpy(temp.str ing,left.string );
//copy the contents of left.string into temp.string;
return temp;
//return the copy of MyString temp
}
MyString& MyString :: operator+=(cons t MyString &right)
{
*this = *this+right;
return *this;
}
int MyString::lengt h()const
{

return strlen(string);

}
bool operator<(const MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) < 0;
}

bool operator<=(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) <= 1;
}
bool operator>(const MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) > 0;
}
bool operator>=(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) >= 1;
}

bool operator==(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) == 1;
}

bool operator!=(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) != 1;
}


Jul 19 '05 #1
4 11630


Luis wrote:

Below is my project. My Code is done, but when I try to compile it, my IDE
crahses (again). I fixed up all the things you guys said I should, except
for some which would not meet the project requiremnts. here is my code. it
compiles, but crashes winsioux.
Learn to use a debugger.
I compiled your program and run it under the debugger.
The first crash happens in ...
istream& operator>>(istr eam& in,MyString &inString)
{

char temp[128];
delete [] inString.string ;
^
.... at this line |

which is a string indication that something with the way you allocate
memory is flawed. So lets look at the constructor first:
MyString::MyStr ing()
{

string = new char[0];
string[0] = 0;

}
Oha. You allocate allocate an array of size 0 (which is legal)
but yet assign a value to an imaginary first array element.
If an array has size 0, then there is no element 0. If an
array has as its only element the element 0, then it has
size 1 (as there is one element in the array).
Remember: The biggest valid index into an array is always
1 less then the size of the array (since counting starts at 0)

string = new char[ 1 ];
string[0] = 0;

OK. First bug fixed. Recompile, starting the debugger.

The next crash happens, when in the loop:
while (!eof(in)) {
MyString s; // creates an empty string
if (in.peek() == '#') { // peek at char, comments start with #
in.ignore(128, '\n'); // skip this line, it's a comment
} else {
in >> s;
cout << "Read string = " << s << endl;
}
}
the variable s goes out of scope. Again it has something to do with
memory management, since th crash happens deep in systems code, which
originated at delete. So lets look at the history of s:
It has been created, then operator>> assigns a new value to it and
then it gets deleted. Fine. The ctor is correct, so the problem must
be in operator>>. Lets take a closer look:

in>>temp;
strcpy(inString .string,temp);

return in;
}

void MyString::read( istream &inString,ch ar delimit)
{
char temp[128];
delete []string;
inString.getlin e(temp,127,deli mit);
strcpy(string,t emp);
}

MyString operator+(const MyString left,const MyString right)
{
MyString temp;
//temporary mystring to hold contents of left.string+rig ht.string
temp.string = new char[strlen(left.str ing)+strlen(rig ht.string)+1];
//dynamic array size of left.string+rig ht.string+1
strcat(left.str ing,right.strin g);
//make left.string+rig ht.string into left.string
strcpy(temp.str ing,left.string );
//copy the contents of left.string into temp.string;
return temp;
//return the copy of MyString temp
}

MyString& MyString :: operator+=(cons t MyString &right)
{
*this = *this+right;
return *this;
}

int MyString::lengt h()const
{

return strlen(string);

}

bool operator<(const MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) < 0;
}

bool operator<=(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) <= 1;
}

bool operator>(const MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) > 0;
}

bool operator>=(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) >= 1;
}

bool operator==(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) == 1;
}

bool operator!=(cons t MyString &left, const MyString &right)
{
return strcmp(left.str ing,right.strin g) != 1;
}


--
Karl Heinz Buchegger, GASCAD GmbH
Teichstrasse 2
A-4595 Waldneukirchen
Tel ++43/7258/7545-0 Fax ++43/7258/7545-99
email: kb******@gascad .at Web: www.gascad.com

Fuer sehr grosse Werte von 2 gilt: 2 + 2 = 5
Jul 19 '05 #2


Karl Heinz Buchegger wrote:

Sorry. Hit Send by accident.

Luis wrote:

Below is my project. My Code is done, but when I try to compile it, my IDE
crahses (again). I fixed up all the things you guys said I should, except
for some which would not meet the project requiremnts. here is my code. it
compiles, but crashes winsioux.


Learn to use a debugger.
I compiled your program and run it under the debugger.
The first crash happens in ...
istream& operator>>(istr eam& in,MyString &inString)
{

char temp[128];
delete [] inString.string ;


^
... at this line |

which is a string indication that something with the way you allocate
memory is flawed. So lets look at the constructor first:
MyString::MyStr ing()
{

string = new char[0];
string[0] = 0;

}


Oha. You allocate allocate an array of size 0 (which is legal)
but yet assign a value to an imaginary first array element.
If an array has size 0, then there is no element 0. If an
array has as its only element the element 0, then it has
size 1 (as there is one element in the array).
Remember: The biggest valid index into an array is always
1 less then the size of the array (since counting starts at 0)

string = new char[ 1 ];
string[0] = 0;

OK. First bug fixed. Recompile, starting the debugger.

The next crash happens, when in the loop:
while (!eof(in)) {
MyString s; // creates an empty string
if (in.peek() == '#') { // peek at char, comments start with #
in.ignore(128, '\n'); // skip this line, it's a comment
} else {
in >> s;
cout << "Read string = " << s << endl;
}
}


the variable s goes out of scope. Again it has something to do with
memory management, since th crash happens deep in systems code, which
originated at delete. So lets look at the history of s:
It has been created, then operator>> assigns a new value to it and
then it gets deleted. Fine. The ctor is correct, so the problem must
be in operator>>. Lets take a closer look:


istream& operator>>(istr eam& in,MyString &inString)
{

char temp[128];
delete [] inString.string ;
in>>temp;
strcpy(inString .string,temp);

return in;
}

Oha.
I can see, that you delete inString.string
But i can't see where new memory is allcoated. Thus
the strcpy copies the characters to memory which
no longer belongs to the program. Worse then that
when the time has come for the dtor to delete the memory,
it will delete the same memory twice.
Lets fix that:

char temp[128];
delete [] inString.string ;
in>>temp;
inString.string = new char [ strlen( temp ) + 1 ];
strcpy(inString .string,temp);

return in;
}

Besides: your usage of eof in the reading loop is wrong. See the
FAQ to figure out why.

OK. Fixing the bug, recompile and starting the debugger takes just
a couple of seconds.

The next bug happens in the next loop:

cout << endl << "----- now, line by line" << endl;
ifstream in2("string.dat a");
assert(in2);
while (!eof(in2)) {
MyString s; // creates an empty string
if (in2.peek() == '#') { // peek at char, comments start with #
in2.ignore(128, '\n'); // skip this line, it's a comment
} else {
s.read(in2, '\n');
cout << "Read string = " << s << endl;
}
}
in2.close();

Same symptoms: The crash happens when variable s goes out of scope. With the
experience from the previous bug, I immediatly acuse function MyString::read

void MyString::read( istream &inString,ch ar delimit)
{
char temp[128];
delete []string;
inString.getlin e(temp,127,deli mit);
strcpy(string,t emp);
}

Same problem: you delete but don't allocate.

inString.getlin e(temp,127,deli mit);
string = new char [ strlen( temp ) + 1 ];
strcpy(string,t emp);
Fixing the bug and starting the debugger again takes a couple of seconds.
And on we go, the next crash happens in:

MyString operator+(const MyString left,const MyString right)
{
MyString temp;
//temporary mystring to hold contents of left.string+rig ht.string
temp.string = new char[strlen(left.str ing)+strlen(rig ht.string)+1];
//dynamic array size of left.string+rig ht.string+1
strcat(left.str ing,right.strin g);
//make left.string+rig ht.string into left.string
strcpy(temp.str ing,left.string );

Hmm. HOw can you strcat something to left.string.
left.string has still its old size, and since your array sizes
are always tailored to what is needed, this is definitly to short
to store the result of the strcat.

I guess you ment:

strcpy( tmp.string, left.string );
strcat( tmp.string, right.string );

Fixing that bug and starting the debugger again takes a couple of seconds.
And on we go, the next crash happens ...

No more crashes.

All i nall I have to say you made a typical newbie mistake.
You wrote too much code without intermediate testing. Write
*one* function, write *one* operator and test it! Only after
that new function works as expected add the next one.

--
Karl Heinz Buchegger
kb******@gascad .at
Jul 19 '05 #3
"Karl Heinz Buchegger" <kb******@gasca d.at> wrote in message
news:3F******** *******@gascad. at...

I tried to perform my first debugging of code. I used the debugger in
Dev-C++ on the OP code and the debugger would just cancel. For some reason
when the debugger is run it will run the entire program, and since the
program aborts, I wasn't able to debug it. The debugger was only useful on
my bug-free program and allowed me to follow instructions.

Which debugger did you use, and do you know how I might get the Dev-C++
working?

Thanks, Oplec.
Jul 19 '05 #4
"Oplec" <an*******@anon ymous.com> wrote in message
news:3K******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
"Karl Heinz Buchegger" <kb******@gasca d.at> wrote in message
news:3F******** *******@gascad. at...

I tried to perform my first debugging of code. I used the debugger in
Dev-C++ on the OP code and the debugger would just cancel. For some reason
when the debugger is run it will run the entire program, and since the
program aborts, I wasn't able to debug it. The debugger was only useful on
my bug-free program and allowed me to follow instructions.

Which debugger did you use, and do you know how I might get the Dev-C++
working?

Thanks, Oplec.

Step into the code, run it one line at a time. Or use breakpoints and
examine the variables as you go.
HTH
S. Armondi
Jul 19 '05 #5

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

Similar topics

2
9604
by: Fernando Rodriguez | last post by:
Hi, I need to traverse the methods defined in a class and its superclasses. This is the code I'm using: # An instance of class B should be able to check all the methods defined in B #and A, while an instance of class C should be able to check all methods #defined in C, B and A. #------------------------------------------------
1
3347
by: Oplec | last post by:
Hi, I'm learning C++ as a hobby using The C++ Programming Language : Special Edition by Bjarne Stroustrup. I'm working on chpater 13 exercises that deal with templates. Exercise 13.9 asks for me to turn a previously made String class that deals with char's into a templated String class that uses the template parameter C instead of char. I thought it would be fairly simple to do this exercise, but I encoutered many errors for my...
9
4998
by: Banaticus Bart | last post by:
I wrote an abstract base class from which I've derived a few other classes. I'd like to create a base class array where each element is an instance of a derived object. I can create a base class pointer which points to an instance of a derived class, but when I pass that base class pointer into a function, it can't access the derived object's public functions. Although, the base class pointer does call the appropriate virtual function...
13
4650
by: jstanforth | last post by:
This is probably a very obvious question, but I'm not clear on what operators need to be implemented for std::map.find() to work. For example, I have a class MyString that wraps std::string, and which also implements ==, <, <=, >, >=, etc. (Those operators are tested and working correctly.) If I assign map = "world", it saves the MyString's correctly in the map. But a subsequent call to map.find("hello") returns map.end(). Even more...
5
3166
by: Andy | last post by:
Hi all, I have a site with the following architecture: Common.Web.dll - Contains a CommonPageBase class which inherits System.Web.UI.Page myadd.dll - Contains PageBase which inherits CommonPageBase - Contains myPage which inherits PageBase Each of these classes overrides OnInit and ties an event handler
0
412
by: davidb | last post by:
Hi, does someone know how to get the length of a 2 dimensional string array: here what i need: ---------------------------------------------------------------- char **getList(void){ char **myString= (char **) malloc (sizeof (char *));
3
3763
by: Hamilton Woods | last post by:
Diehards, I developed a template matrix class back around 1992 using Borland C++ 4.5 (ancestor of C++ Builder) and haven't touched it until a few days ago. I pulled it from the freezer and thawed it out. I built a console app using Microsoft Visual C++ 6 (VC++) and it worked great. Only one line in the header file had to be commented out. I built a console app using Borland C++ Builder 5. The linker complained of references to...
0
2451
by: woodsc | last post by:
Hi all, I am trying to optimize the queries in my application. Is there a performance difference between (to_char(myDate,format) < myString) and (myDate < to_date(myString, format)). ex. Select * from myTable where (to_char(fieldDate, 'MM/DD/YYY') <= queryDate ) or Select * from myTable where (fieldDate <= to_date(queryDate, 'MM/DD/YYYY') ) assuming fieldDate is a date or timestamp field and queryDate is '01/01/2007', a...
9
2143
by: Ronald S. Cook | last post by:
Can I write If MyString = "Apple" Or MyString = "Orange" Or MyString = "Pear" Then to something more compact like If MyString In ("Apple", "Orange", "Pear") Then My last line obviously doesn't work but maybe I'm close?
0
9579
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
10575
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
10330
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
10319
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
10076
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9144
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...
1
7616
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5520
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...
2
3816
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.