49,761 Topics
| |
It's my fourth day with <Accelerated C++> and I have to admit that this is WAY over my head. I picked this book because of the sticky "C++ Books" but really... this was NOT meant for beginners. (or is it just me?) Okay, enough of the whining. By taking joeprogrammer's … | |
Hi,:p Someone can show me the way to controll I/O in soundcard and the way to create DTMF( dual tone multifrequency) signals ....in C/C++. How to get data from "line In" and "microphone"? and then (sampling, frequency progressing), send it to "line OUT" ? I can create a sound with … | |
Hi everyone. I am new to C++ and struggling badly. This is the first course i have ever struggled with in my life. I have problems with setting up programs and seeing the logic. Does anyone have any tips for understanding C++, and is there any good textbook or website … | |
| |
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 | |
Is possible to make a C++ program that sends a mail with a specified contetnt ? | |
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 … | |
| |
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 … | |
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 … | |
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 = … | |
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> … | |
[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)) … | |
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 … | |
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 | |
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]; … | |
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! … | |
hello can somebody help me how to write the c++ coding to find the first minimum value from sinusiodal graph | |
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 … | |
| |
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> … | |
[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] … | |
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> … | |
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] | |
[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]; … | |
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? | |
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]) { … | |
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 … | |
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] … |
The End.