49,757 Topics

Member Avatar for
Member Avatar for Gaurav arora

hi my name is gaurav. i want to know what will be code if i want to open a word document or any other file on my HDD throuth c++ code. if someone can help me on this topic. i will bw grateful

Member Avatar for iamthwee
0
96
Member Avatar for jan1024188
Member Avatar for jan1024188

Is possible to make a C++ program that sends a mail with a specified contetnt ?

Member Avatar for ~s.o.s~
0
56
Member Avatar for Aia

I am going through the exercises of this old C programming book, that doesn't have the answer in the back. Which is good. However I am not understanding a particular question. It says: Write a program that estimates the value of the mathematical constant e by using the formula: e …

Member Avatar for ~s.o.s~
0
177
Member Avatar for shrikant telkar
Member Avatar for Ancient Dragon
-1
87
Member Avatar for gerik

Does anyone know of a website that provides a lot of good problem solving exercises, or perhaps a great book for this? I've been reading a couple books on C++ but all of the exercises the books provide are sort of mediocre and don't really train me to actually use …

Member Avatar for Ancient Dragon
0
135
Member Avatar for JadedTortoise

Ok I just started programming again after about 10 years, and i was doing the suggested beginner problems. The first one to create a program that returns the factorial of a number. I think i got it all down right but compiler is saying "expected primary-expression before else" here's the …

Member Avatar for WaltP
0
114
Member Avatar for Masood Ali

Hi All. I m a C++ programmer and I m trying to understand a piece of code. It fetches the values through command line arguments and makes a decision on the basis of these values. This code is working well but I dont know how? [code] for (int i = …

Member Avatar for Masood Ali
0
133
Member Avatar for delphi_uk

Hello to you all, I am having problems with some code that I am working on for a text parsing system from an external *.txt file. The problem seems to stem from the Tokenize function, as I get a: "LNK2019 error: unresolved external symbol "void __cdecl Tokenize(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> …

Member Avatar for delphi_uk
0
100
Member Avatar for niceliang84

[code=cplusplus] input.open("a.dat"); if (input.fail()) { cout<<"Unable to open a file \n"; exit(1); }//end if while(input>>alp>>index) {//write to Usecase usecase Alpha[a].setkeyword(keyword); Alpha[a].setindex2(index); a++; }//end while input.close(); cout<<"Please Insert The keyword:"; int position,py; char keyPrompt[100]; int i=0; char c; cin>>keyPrompt; for(py=0; py<a; py++) { if(strcmp(keyPrompt[0],Alpha[py].getalphabet())==0) { position=py; break; } //end if if(py==(a-1)) …

Member Avatar for WaltP
0
146
Member Avatar for ice_tea_lemon

Hey all, Erm given the problem Write a program that will read in a line of text and output the number of words in the line and the number of occurrences of each letter. Define a word to be any string of letters that is delimited at each end by …

Member Avatar for WaltP
0
189
Member Avatar for mahtab

i have problem in one part of my project although it's not completed yet... in function llfined2 there occurs an exeption because of if(t->b_num==d).... i don't why it's wrong!!!!! can any body help me?!:rolleyes: by the way i use visual c++ 6.0

Member Avatar for Infarction
0
79
Member Avatar for Sacky

I'm trying to compile some rather trivial code in C++ and i keep getting "Warning: [FUNCTION] was declared deprecated" Now this is on some of the more useful functions such as: sprintf strtok why is this? Here is a sample of my code if you are interested: [CODE]if(IsChatting()){ char chat[256]; …

Member Avatar for Narue
0
495
Member Avatar for dballers

sorry i'm newbie in here....i have a problem in C++..and this is the first time i did the programming codes, so that is so confusing for me...anyone can help me to solved this problem? [quote]The value e^x can be approximated by the sum 1 + x + x2/2! + x3/3! …

Member Avatar for dballers
0
102
Member Avatar for hanna_f15

hello can somebody help me how to write the c++ coding to find the first minimum value from sinusiodal graph

Member Avatar for thekashyap
0
72
Member Avatar for Amanda21

I am currently writing a program that has to have a while loop that reads a file and then the while loop has a switch statement inside and inside of the switch is an if/else. I'm confused on how and where to put the correct placement for it to read …

Member Avatar for Aia
0
76
Member Avatar for whoknows101
Member Avatar for Ancient Dragon
0
73
Member Avatar for spankyg

Any help would be greatly appreciated. Does not recognize cat's game also goes into infinate loop when you try to use the same box twice? I have spent hours trying to figure it out. I know it something simple. Any ideas? [code=cplusplus] //Board Display Class - Tic-Tac-Toe Program #include <iostream> …

Member Avatar for iamthwee
0
364
Member Avatar for jnabeel

[COLOR=#444444]write a program which take a string give it permutations and combination should not repeat any letter [code=c] [/COLOR] [COLOR=#444444]#include<conio.h> #include<stdio.h> #include<iostream.h> #include<stdlib.H> void main(void) { clrscr(); char a[3] //cout<<"ent int "<<endl; > //cin<<a; atoi(a) for(a=1;a<=3;a++) { for(b=1;b<=3;b++) { for(c=1;c<=3;c++) { cout<<a<<b<<c<<endl; } } } getch(); [/COLOR] [COLOR=#444444]} [/code] [/COLOR] …

Member Avatar for jnabeel
0
74
Member Avatar for jnabeel

write a program which take a string give it permutations and combination should not repeat any letter [LIST=1]<LI class=li1>#include<conio.h> <LI class=li1>#include<stdio.h> <LI class=li1>#include<iostream.h> <LI class=li1>#include<stdlib.H> <LI class=li2>void main(void) <LI class=li1>{ <LI class=li1> clrscr(); <LI class=li1> char a[3] <LI class=li1> //cout<<"ent int "<<endl; <LI class=li2> //cin<<a; <LI class=li1> atoi(a) <LI class=li1> …

Member Avatar for iamthwee
0
94
Member Avatar for jnabeel

write a program which take a string give it permutations and combination [code=c] #include<conio.h> #include<stdio.h> #include<iostream.h> #include<stdlib.H> void main(void) { clrscr(); char a[3] //cout<<"ent int "<<endl; //cin<<a; atoi(a) for(a=1;a<=3;a++) { for(b=1;b<=3;b++) { for(c=1;c<=3;c++) { cout<<a<<b<<c<<endl; } } } getch(); } [/code]

Member Avatar for Ancient Dragon
0
35
Member Avatar for jnabeel

[code=c] #include<stdio.h> #include<conio.h> #include<iostream.h> void main(void) { clrscr(); int nr,nc,i,j,s; int mat1[10][10],mat2[10][10],mat3[10][10]; cout<<"Enter The Number Of Rows"; cin>>nr; cout<<"Enter The Number Of Column"; cin>>nc; for(i=0;i<nr;i++) { for(j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat1[i][j]; } } cout<<"matrix 2"; for( i=0;i<nr;i++) { for( j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat2[i][j]; …

Member Avatar for jnabeel
0
124
Member Avatar for linux

Before I start, is Borland C++ free? Or do you have to pay money for it? Second, I found a Borland C++ 4.5.2 CD in my dad's old computer bag. If I install it on XP, will it have any compatibility errors?

Member Avatar for jwenting
0
189
Member Avatar for jnabeel

wtie a program which take as tring and arrange in alphabetic order [code=c] #include<stdio.h> #include<conio.h> #include<iostream.h> void main (void) { clrscr(); char b[7]={98,120,97,113,122,121,101},temp=0; while (!(b[0]<b[1]&&b[1]<b[2]&&b[2]<b[3]&&b[3]<b[4]&&b[4]<b[5]&&b[5]<b[6]&&b[6]<b[7])) { if (b[0]>b[1]) { temp=b[0]; b[0]=b[1]; b[1]=temp; } if (b[1]>b[2]) { temp=b[1]; b[1]=b[2]; b[2]=temp; } if (b[2]>b[3]) { temp=b[2]; b[2]=b[3]; b[3]=temp; } if (b[3]>b[4]) { …

Member Avatar for jnabeel
0
286
Member Avatar for keatsey-9

hi, im am wondering if the is a way to make a 2D array of variable length. I have tried making a variable and assigning it a value and then used that variable to define the size of the array, but i cannot seem to get that to work. Is …

Member Avatar for Ancient Dragon
0
112
Member Avatar for mzd12111

hi Guys this is my problem : a) what should i have to show to Proove that a sort algorithm work well b)what is the order of this algorithm : [code=c] void mySort(int[]A , int n){ int t,i; for (i=1 ; i<=n; i++){ while(A[i] != i){ t = A[i]; A[i] …

Member Avatar for mzd12111
0
121
Member Avatar for ngoctron

hi,:p I am trying to write a small software with C++. I just want to make calls from my computer via a telephone line. I can make the harware which can be connected to the computer. But I don't know how to controll soundcard in C++( Input signal (include microphone), …

0
43
Member Avatar for nottoshabi

It works. I'm having a problem trying to display the greater number to the output. For example what ever number is greater the first or the second it still displays the first number. Couse that is what is coded in the cout. But I dont know what to put in …

Member Avatar for nottoshabi
0
111
Member Avatar for n.aggel

i have the following problem:: i have ofstream object (i call it fout) belonging to a class{it a field of that class}, where should i initialize it... i write the following test-code but it gives me strange compile errors{in visual studio05} FoutTest.h [code=c] #pragma once #include <fstream> #include <string> class …

Member Avatar for n.aggel
0
188
Member Avatar for livingsword

i got this prime no. code for analysis. and i hav not been able to understand it completely. [code] #include<iostream.h> #include<conio.h> void main() { int x, y, c = 0; clrscr(); cout<<"\nPrime Numbers upto 100 :\n "; for( x = 2; x < 100; x++ ) { if( x % …

Member Avatar for livingsword
0
411

The End.