class arc
{
public:
int adj;
int weight;
arc(){}
arc(int a)
{
adj = a;
}
Type: Posts; User: [Student]
class arc
{
public:
int adj;
int weight;
arc(){}
arc(int a)
{
adj = a;
}
if i have 7 2 3
I enter position 1 and it must return 7....
but i have a new element at first so 2 7 2 3
I enter position 1 why is it returning the same value "7". .. instead of 2 . . that's...
Please I Need help in retrieving the value of the node of its given position
here's my code, but there's is a problem in returning the value . .
int n=1;
Node *newNode=head;
...
in my enqueue I put size++ & dequeue I put size-- , but I want to put those two in one function
Ok thanks :D , by the way can you help me how to do a circular count! , not depending on the counter from enqueue and dequeue?
int Count() {
return size;
}
Please help me putting a single statement in bool full() & bool empty()
bool isFull() {
return (Count() == 5) == true;
}
//is it wrong? please correct it
I'm done with that, but nothing change, its the same! , help me please!
see the difference
correct wrong
23 23
21 21
19 19
17 17
15 ...
can u help me? I have problem in my program a little bit only! . . .
#include <iostream>
#include <math.h>
using namespace std;
main ()
{
float num;
ok , but can u help me a little bit, just an example? because i don't know how to start ...
Can U help me to code for book issue and book deposit. . .
because i have difficulties in this part! plz help me on the project!
and i really need all your help! . .
Can u help me where to place :
run:
getch();
system("cls");
goto run;
#include <iostream.h>
#include <fstream>
using namespace std;
main()
{
char strn[80];
int i,j,len;
where? need help
can u give me a sample what you mean? plz
Instructions : Read a series of lines from a text file, get the numeric values in each line, perform addition and display sum
and this is my code
#include <iostream>
#include <fstream>...
I have finish it in other way . . .
but can u help me how to stop looping using ctrl + z
Here's my code:
char text[5][80];
char *searchPtr;
int character[26]={'\0'};
char text[50];
char *searchPtr;
char character[26]={'\0'};
int count=0;
int i,j;
cout<<"Enter strings: \n\n";
while(cin.getline(text,50)){
...
I mean that i must enter EOF to end the input . . . .
for(int i=0; i<=3; i++){
gets(&text[i][0]);
}
for(int i=0; i<=3; i++){
for(int j=0; text[i][j]!='\0'; j++){
...
I 've Input 12 in size of vector and 2 for the value of elements . . so the answer is 2 2 2 2 2 2 2 2 2 2 2 2... then when i input 3 to the element value . .
it will give me answer like this 2 2...
How to insert element in middle? because i got wrong outputs . . .plz help
cout<<"Enter size of vector: ";
cin>>size;
cout<<"Enter value of the elements: ";
cin>>b;
...
I'm Stuck in this code....i got a wrong in waiting list....plz i need your help...
void waitinglist(int choice, int plane[11]){
cout<<"First Class"<<endl;
cout<<"...
#include<iostream>
#include<conio.h>
using namespace std;
void waitinglist(int choice, int plane[11]){
cout<<"First Class"<<endl;
cout<<" ---------------------\n";
cout<<" ...
Help !!!!
Hey I get it now.....i solve the misunderstanding issue.....but there 's a problem....
this is my output but missing of the final sum of R and C....
100 101 102 103 104 105 615
106 107 108...