Alright, I’m done with this. If the only help I get is people who know how to do it and look down on those who do not then that is what the real time waster is and not that I try to post in a few...
Type: Posts; User: StealthRT
Alright, I’m done with this. If the only help I get is people who know how to do it and look down on those who do not then that is what the real time waster is and not that I try to post in a few...
Helps a lot there. I came here to post the same since i wasent getting enough help from any other ones that i understood.
David
Hey all i am trying to delete a set number of items in a linked list. Here is the code for delete my item.
void unorderedLinkedList<Type>::deleteNode(const Type& deleteItem)
{
nodeType<Type>...
Got it working finally! YAY! :)
cout << "Address: ";
cin.ignore();
getline(std::cin, theAddress);
Thanks for the help!
David
i get an error:
cout << "Address: ";
cin.ignore();
cin.getline(theAddress);
//cin >> theAddress;
the error is:
And this is my full code:
#include <string>
#include <assert.h>
#include <iostream>
#include <windows.h>
#include <fstream>
#include <limits>
this is my output after i do the cin.ignore();
cout << "Relation (Family, Friend or Associate): " << endl;
cin >> theRelation;
cout << "Address: ";
cin >> theAddress;
I still get the same results when using getline() on the address.
The output looks like this:
David
Thank you, laserlight, for telling me politely how this forum works. :)
However, if I were to say, post this same question on this forum under c and c++ and anything else associated with c then...
heres the whole program:
#include <string>
#include <assert.h>
#include <iostream>
#include <windows.h>
#include <fstream>
using namespace std;
Ok, i fixed the errors:
bool tryitout()
{
extPersonType thePerson;
addressType thePersonAddress;
dateType thePersonDate;
string fName, lName, theRelation, theAddress;
string theCity,...
Ah, ok i just saw that i had it inside the tryitout() and not the main:
int main(){
int repeat = 0, theUserInput;
However, i am still getting an error:
Hey all i am having 2 problems.
- first problem is that i am unable to run the code with the function inside the switch. For some reason it keeps giving me these errors:
- Second program i had...
Yep, i just noticed i had "string" instead of "int.
string addressType::getZip() const
{
return addrZip;
}
string extPersonType::getNumber() const
{
Hey all i am trying to compile my code but i keep getting "redefinition; different basic types". Here is the error log:
And here is my code that its having problems with:
#include <string>...
Hey all i am having some problems with an assignment of mine. This is the code it reffences to:
class xClass
{
public:
void func();
void print() const;
xClass ();
...