It is just trying to give you an example of a function... a function can be used over and over again if you need to, so you don't have to keep re-writing the code. On a simple program it is easier...
Type: Posts; User: Engel32
It is just trying to give you an example of a function... a function can be used over and over again if you need to, so you don't have to keep re-writing the code. On a simple program it is easier...
I keep seeing people using this line in their code... I've never seen it til this forum... what does it do???
What are some good compilers??? Right now I am using MS Visual C++ (standard). I've heard of Borland and I think a couple others... which one is the best???
Try using this command... you might need to include <conio.h> or <stdlib.h>
cout<<"\nPress any key to continue."<<endl;
getch();
if it wants you to input a character before it outputs the...
This is easier than the previous...
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_BLUE);
Or for a brighter blue...
...
You would have to create a file that you can read into a linked list. Then you would have to implement a search function for your linked list to search for existing names, then you would have to...
Copy this code into your source... when I ran it, it had 4 errors, I fixed them and it ran just fine...
#include <cmath>
#include <iostream>
using namespace std;
//Function prototype for...
You are most likely missing a } symbol... Print out your source code, and match them all up to find the missing segment.
Which string class are you using??? <string.h> or <apstring.h> ???
Try fixing the #include statements...
#include <iostream.h>
#include <cmath.h>
...
struct NODE
{
int 1;
NODE *next;
};
main
{
NODE *head=0;
What kind of error are you getting???
You might need to declare your char name and char type as char name[20] and char type[10] or you could use a string class like
#include <string.h>
...
Functions don't have a clue about anything except for whats in the function... The arguments are in case the function needs something outside of the funcion. i.e.
if you have a function
void...
Is there even a way to change the font for a windows console program (MSVC), I can't find anything on it in the MSDN. I want to change the font, not the color.
Is there a way to set the console window to 'maximized' at startup??? or do I have to use the SetConsoleWindowInfo() function to manually set the locatioin???
Thanks, that fixed the problem...
I tried using _getch(); but it gave me the same problem... any more suggestions???
Why does getch(); have to get the character before it will output the cout<< before it???
void displayalbum(NODE* &head,apstring &album)
{
NODE *node=head;
int count=0;
cout<<"\n";
...
Hmm... Seeming how remove() is a standard c function, and this is a C++ context thread, you people need to be more specific... But I already figured it out so thanks.
P.S. I don't know if it helps, but it is a Windows console application...
Don't try to change the name of the entire workspace... Open the .cpp file, copy the contents (make sure you get the #include statements), then open a new workspace and paste the .cpp file from the...
How do I delete a file that isn't opened for input or output.. I am using MSVS 6.0