Forum: C++ Dec 15th, 2005 |
| Replies: 7 Views: 2,488 hey i never suceeded in making dat pattern . check if it has a logical error. |
Forum: C++ Dec 13th, 2005 |
| Replies: 2 Views: 3,478 i copied the code as is discussed by my professor and written in my course book but i am not getting the correct output. my logic is very clear but not getting the right output, its a bunch of... |
Forum: C++ Dec 11th, 2005 |
| Replies: 7 Views: 2,488 You Know I Once Told My Prof That Conio.h Is Non Standard . He Has Taught Us That Conio.h Has The Clrscr(); ,, While I Was Using It On Dev-cpp It Didnt Work , I Checked The Help Website , It Said... |
Forum: C++ Dec 11th, 2005 |
| Replies: 7 Views: 2,488 I Am Getting Funny Results (in Case 4 Only )
I Was Using Nums To Make It A Bit Easier
Finally I Have To Convert It Into * As In The Other Segments .
Its A Tough One Any One Plz Help
Try Compiling... |
Forum: C++ Dec 11th, 2005 |
| Replies: 7 Views: 2,488 thanks i got it and made suitable changes but there is a logical error in the prog can anyone point that out. it compiled well but i gotta prob making this pattern. actually i was making a big... |
Forum: C++ Dec 11th, 2005 |
| Replies: 7 Views: 2,488 hi all,
i am trying to generate a pattern
1
121
12321
1234321
123454321
1234321
12321 |
Forum: C++ Dec 7th, 2005 |
| Replies: 2 Views: 2,334 plz give me links or discuss on address calculation in 2d arrays.
i have little knowledge of calculating the address. can any one give some formula or something coz my professor gave it but i wasnt... |
Forum: C++ Nov 22nd, 2005 |
| Replies: 10 Views: 2,040 yes that is wat i want to do but i have realised that wat if in both the arrays (at the same location) same value is present . so i have included one extra check .m==n; .moreover the code is... |
Forum: C++ Nov 22nd, 2005 |
| Replies: 5 Views: 1,341 #include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{ void palcheck(char str[]);
char ans;
char str[20];
do
{ |
Forum: C++ Nov 22nd, 2005 |
| Replies: 10 Views: 2,040 void mergearray(int ar1[15],int ar2[15], int ar3[30] , int m ,int n)
{ if(m>n)
{
for(int i=0;i<=n;i++)
{
if(ar1[i]>ar2[i])
ar3[i]=ar2[i];
... |
Forum: C++ Nov 22nd, 2005 |
| Replies: 10 Views: 2,040 how to make it more readable . if it is tags how to do it?? new to forums |
Forum: C++ Nov 22nd, 2005 |
| Replies: 10 Views: 2,040 #include<iostream.h>
#include<conio.h>
int main()
{
void sortarray(int array[15],int size);
void mergearray(int ar1[15], int ar2[15], int ar3[30],int m ,int n);
int m, n... |
Forum: C++ Nov 22nd, 2005 |
| Replies: 15 Views: 3,345 now wat wud u say, i learnt pointers and debugged my prog myself, thats a proof for my eagerness to learn more.
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{
... |
Forum: C++ Nov 22nd, 2005 |
| Replies: 10 Views: 2,040 #include<iostream.h>
#include<conio.h>
int main()
{
void sortarray(int array[15],int size);
void mergearray(int ar1[15], int ar2[15], int ar3[30],int m ,int n);
int m, n... |
Forum: C++ Nov 22nd, 2005 |
| Replies: 6 Views: 1,657 why not to declare functions inside main??? it is not a prob as far as i know , i have made a quite a few prog doing the same |
Forum: C++ Nov 22nd, 2005 |
| Replies: 15 Views: 3,345 see i want to learn . from next time i will give the compiler warnings . i will also include wat attempts i made.so tell me why not to use " gets " when my professor uses it very often. |
Forum: C++ Nov 22nd, 2005 |
| Replies: 6 Views: 1,657 wat does it mean by primary expression required before int |
Forum: C++ Nov 21st, 2005 |
| Replies: 6 Views: 1,657 //square matrix
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{ void diagsum(int a[10][10],int n);
void rowsum (int a[10][10],int n);
void colsum (int... |
Forum: C++ Nov 21st, 2005 |
| Replies: 15 Views: 3,345 Hey Dave i made this program and all others i post . i make lots n lots of progs. i posted the ones i wasnt able to debug. wats wrong in it . for others it is a challenge n those who take it answer... |
Forum: C++ Nov 21st, 2005 |
| Replies: 15 Views: 3,345 plz edit n post it.
dont know much about pointers. |
Forum: C++ Nov 21st, 2005 |
| Replies: 15 Views: 3,345 i do not want to use strcmp() so i made it myself.
here is my code:
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{
char pass[50]; |
Forum: C++ Nov 21st, 2005 |
| Replies: 5 Views: 1,257 #include<iostream.h>
#include<conio.h>
int main()
{ int a[10],temp,bak;
cout<<" enter the elements "<<endl;
for(int i=0;i<5;i++)
cin>>a[i];
int m=a[0];
for(int... |
Forum: C++ Nov 21st, 2005 |
| Replies: 4 Views: 2,154 Thank you i do silly mistakes, but m still not able to make it menu driven , the prog stops execution after i press y |
Forum: C++ Nov 21st, 2005 |
| Replies: 4 Views: 2,154 #include<iostream.h>
#include<conio.h>
int main()
{
int a[5],loc,val,ans;
do
{
cout<<" enter the elements "<<endl;
for(int i=0;i<5;i++)
cin>>a[i]; |
Forum: C++ Nov 20th, 2005 |
| Replies: 11 Views: 9,837 dont debug that matrix one . did it myself
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{
int ar[3][4];
for(int i=0;i<3;i++)
{
for(int j=0;j<4;j++) |
Forum: C++ Nov 20th, 2005 |
| Replies: 11 Views: 9,837 plz find the error n correct it
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{
char str[20],l=0,flag=1;
cout<<"enter the string " ;
gets(str);
for(int... |
Forum: C++ Nov 20th, 2005 |
| Replies: 11 Views: 9,837 plz debug this prog to make a matrix
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{
int ar[3][4];
for(int i=0;i<3;i++)
{
for(int j=0;j<4;j++) |
Forum: C++ Nov 20th, 2005 |
| Replies: 11 Views: 9,837 [/code][/QUOTE]
m getting thisas output n not wat i want , also can u now convert it to a function like strcat()
as
fg
asfg
the concatinated str is 0 |
Forum: C++ Nov 20th, 2005 |
| Replies: 11 Views: 9,837 well sunny i did wat u said
but m still getting errors n warning . here they are --
Compiler: Default compiler
Executing
In file included from... |
Forum: C++ Nov 20th, 2005 |
| Replies: 11 Views: 9,837 by this time i converted it to a prog
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
char m,str1[50],str2[50],str3[100];
int main()
{
int l=0; |
Forum: C++ Nov 20th, 2005 |
| Replies: 11 Views: 9,837 hello everyone
i was trying to make my own own string concatenation function but wasnt able to do so. i need ur help. |