i guess as the title indicates the program is a chat application...the program ran flawlessly until i introduced the functions sendtoallf(...) and sendtoaliasf(....) to facilitate file transfer and...
Type: Posts; User: Pulock2009
i guess as the title indicates the program is a chat application...the program ran flawlessly until i introduced the functions sendtoallf(...) and sendtoaliasf(....) to facilitate file transfer and...
thanks a lot for all your help!!
void array::concatenate(array &a1,array &a2)
{
for(int i=0,k=0;i<a1.n;i++,k++)
{
this.a[k]=a1.a[i];
}
for(int j=0;j<a2.n;j++,k++)
{
this.a[k]=a2.a[j];
}
compiled on turbocpp 4.5.....error is that the final merged array is much bigger with garbage values...please help to find the mistake in this program...
//cpp program to concatenate 2 arrays...
hello!could not find the mistake in this program....please help!
//cpp program to check whether a number is palindrome or not
#include<iostream.h>
#include<conio.h>
//the class
class...
thanks a lot for your suggestion. i will be going through the level1 and level 2 sections.
thanks a lot for your help! immediately started working after making i=strlen(astr)-1. went nuts in the morning thinking what had gone wrong.
thanks again!!
hello everyone,
everything seems to be right in this program except that the puts() function does not print anything.please help!
/*c program to reverse a string using pointer*/...
hello everyone,
heres another problem where i got stuck. everything seems to be correct from my perspective. heres the program:
/*c program to check whether a string is palindrome or not*/...
hello everyone,
while removing duplicate elements from an array, if more than 4 array elements are same then removal does not work. however my logic seems to be alright. i reckon there is a problem...
thanks a lot to everyone of you for this valuable enlightening.....i was completely baffled by the large values.....
hello everyone!
there seems to be some logical error in this program. i get unusually large values for any angle like even sine 90 degree.
/*c program to compute the sine series*/...
i may be wrong here.....as i am quite tired to put efforts on my brain now ..........but displaying the transpose is as simple as printing matrix[j][i] inside the same nested loops which were used to...
many many thanks to all of you!!!:D
i am unable to find out the mistake. please help.
input array elements:5,6,3,1,7
output:biggest number:7, second biggest=7
can anyone help me out what is wrong???
/*c program to find out the maximum and the second maximum number from...
You have made plenty of small and big mistakes. one of them is declaring x before completing the preprocessor commands.
i am an intermediate c programmer and i am still not very confident with all my programs. in your program you need to write to another file i suppose. then somewhere there should have been a fprintf...
/*c program to represent a queue as a singly linked list*/
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *link;
i am unable to use "delete" and "free" on dev shed c++. i wonder whether its related to some header file. please help.
i was trying to run a c program where i was trying to implement the stack data structure using linked list. my linux version is ubuntu 10.04 and while running i get the error segmentation fault(core...
i am facing this problem actually which i thought was due to a mistake in my %specifier but after making the correction also the problem persisted. the problem is whatever the value of the 4...
can anyone please tell me what is the specifier for float and double datatypes? i know its %d for int datatypes and %c for char datatypes. unable to find it anywhere as well. thanks in advance!!!
thanks a lot for all of your valuable advice. it was particularly enlightening for me to know that one needs to pass 4 parameters in case of a singly linked list and that my idea would be applicable...
i want to write a swap function for a singly linked list. the function should take 2node pointers as input parameters and exchange their place in the linked list. this is what i tried out :
...