49,757 Topics

Member Avatar for
Member Avatar for rash_13

I have successfully implemented Porter Stemming Algorithm. I wanted to project ideas, as to where I could apply it, a more practical application?

Member Avatar for Lucaci Andrew
0
124
Member Avatar for J-P1988

Hey! When i compile my code in Qt5, i get an weird symbol of triangle with an "?" at place of an french À. I try to chaqnge encoding to Latin1: no changes. UTF-8 it's same and i can't edit it. I tried many encoding but no changes. Weirdly months …

Member Avatar for J-P1988
0
114
Member Avatar for nathan.pavlovsky

Hello programmers! I am trying to return an array, made up of 7 members, all type ints via a pointer from a function. Here is a prototype of a function that does this: `int[7] colCountArray={0,0,0,0,0,0,0} //array saved in Board obj.` int* Board::accessColCount() { return &colCountArray; } However, my compiler dosnt …

Member Avatar for rubberman
0
113
Member Avatar for mahesh113

How come foo(3,3.14); Doesn't work but Goo(3,3.14); works? Please reply. #include <iostream> using namespace std; double foo(double a, double b) { cout<<"foo(double a, double b)"<<endl; } int foo(int a, int b){ cout<<"foo(int a, int b)"<<endl; } double Goo(float a, float b){ cout<<"Goo(float a, float b)"<<endl; } int Goo(int a, int …

Member Avatar for phorce
0
123
Member Avatar for chlyre
Member Avatar for new_developer

Hi there, I am implementing simple student class when i run the program it crashes after getting input for char* name. Program is as follows. #include <iostream> using namespace std; class Student { private: char* name; int rollNo; float cgpa; public: Student() { name = ""; rollNo = 0; cgpa …

Member Avatar for rubberman
0
417
Member Avatar for Nonye

what are the rules of graph construction and using the example: S::= A/B A::=XA/Y B::=XB/Z

Member Avatar for rubberman
0
132
Member Avatar for Clanstrom

Sorry for the confusing title, as I am new to C++ Basically, what I am trying to do is, to read a simple **test.txt** file's content, which are just two words actually: "Hello World" and desplay thier hexadecimal content in a shell, CMD or command line.(Whatever it is called), if …

Member Avatar for Ancient Dragon
0
241
Member Avatar for CodyOebel

in my code for what happens when I click on my MAIN BUTTON runs my function light hack. Inside my lighthack function is a for(;;) {} forever loop. Inside this forever loop is a break when a condition is met. The problem I am having is when I click on …

Member Avatar for Ancient Dragon
0
313
Member Avatar for cobaltfive

I am a new user of c++ and not really clear on pointers and the like , I have tried to search the web for some reasonable explanation but they just don't make much sense to me still. I would like to know what I need to do to pass …

Member Avatar for cobaltfive
0
199
Member Avatar for sainisunil05

can someone please let me konw what is the error in this code, not getting expected output. #include<iostream> using namespace std; class myclass { public: int& num; myclass(int number) : num(number){} }; int main(){ int num1= 10000, num2 = 333; myclass mm(num1); myclass nn(num2); cout << mm.num << endl; cout …

Member Avatar for Moschops
0
92
Member Avatar for owenransen

WARNING: If you don't like horribly messy questions don't read on... Autodesk Inventor is a 3D parametric CAD program and plugins can be made using COM. I have no experience with COM and some of my naive COM type questions go ignored in the Inventor forums... Look at this: hRes …

0
143
Member Avatar for alaba81

**PLS HELP ME, design a digitally controlled washing machine that sets the wash temperature to 80degree celcius for cotten clothes 40degree celcius per quick wash and 1000 revolution for rinse and dry only using MICRO SOFT V. STUDIO 2010 c++ programming, PLS ITS URGENT!

Member Avatar for Lucaci Andrew
0
119
Member Avatar for christinetom

Hi again everybody. Has anyone used tnFox Gui Toolkit? I've just looked at FLTK which seems to be perfect if you want to creat a small file size and easy to use. I'm exploring other options like this too. Is tnFox small in filesize. wxWidgets generates a rather big file. …

Member Avatar for christinetom
0
195
Member Avatar for Jorox03

I am trying to write some code to regex search against wide strings. The problem I am having is that the regex operations ( `regex_search` in particular ) does not take in wide arguements. Here is the snippet I am having trouble with: Function Header: void scan_filesystem( wpath const& f, …

Member Avatar for Jorox03
0
6K
Member Avatar for davidfunmi

Develp a program to dertermine examination sitting arrangementfor classes above 500 in an institution of learning

Member Avatar for Moschops
-1
43
Member Avatar for fenri90

I code this exercise in c++ with title: "count number of occurrences of a character in a string" who can help me? thanks very much My code in c++: #include "stdafx.h" #include <iostream> using namespace std; unsigned count_check(char str[],char a) { unsigned d=0,lenght=strlen(str); for(int i=0;i<lenght;i++) if(str[i]==a) d++; return d; } …

Member Avatar for Schol-R-LEA
0
823
Member Avatar for sparkthesunoff

I have two containers with the type of *A* A<string, double> s1; A<string, bool> s2; So I wrote the *A* class with the necessary functions and I used a template<class T, class E> for it. It has a function that returns a value of *E*, in my case, it returns …

Member Avatar for sepp2k
0
271
Member Avatar for Clanstrom

Hi All. I am new to C++, infact I started watching tutorials just about an hour ago. But, I had some experiece of Javascript, PHP, so It is fine. Now, my question is that, I am untimately, learning C++ to be able to manipulate a .wav files, just to write …

Member Avatar for vijayan121
0
4K
Member Avatar for lolo nice

Q1: and then breaks that number down to display the equivalent minutes and seconds. Have your program ONLY do the calculation if the user enters a number LESS than 50,000 hours.number of hours, If he enters 50,000 or more print an error message and quit.Write a C++ program that reads …

Member Avatar for Ancient Dragon
0
161
Member Avatar for shambel
Member Avatar for LaRosa

I need help writing in IPO Chart and pseudocode for an assignment asking to "Write a program that prompts the user to input a positive integer. He should then output a message indicating whether the number is a prime number." This is what I came up with for the IPO …

Member Avatar for rubberman
0
866
Member Avatar for J&#9788;E

i need help for an engineering class is this the correct syntax for this type of program to add two numbers together i need help at the line that says here this is for a c++ source file [CODE]// program #iomanip #iostream include namespace std; void main() { int number1,number2; …

Member Avatar for NANDHINI G
-1
731
Member Avatar for Hanshinie

I wanna write a C++ program using arrays to construct a table which allows me to input the names and marks of 4 subjects of 40 students.Pls someone help me......

Member Avatar for phorce
0
61
Member Avatar for gmwass

hi guys am a kenyan and i just got started learning the c++. its awesome. i have a question i wuld like to ask for answers soon. help me in making a program that will allow the computer to choose any number between one and a hundred then the user …

Member Avatar for tinstaafl
0
147
Member Avatar for mr.unknown

i want an output and i have tried but can't get this... #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char *argv[]) { int r,c,s; for(s=15,r=6;r>=1;r--,s++) { cout<<setw(s); for(c=1;c<=r;c++) cout<<"X"<<endl; } system("PAUSE"); return EXIT_SUCCESS; } OUTPUT: X X X X X X X X X X …

Member Avatar for rubberman
0
413
Member Avatar for Eyobed Paul

develop a c++ program for length conversions. The program should have a menu so that the user can select the type of length conversion by typing a value between 1 and 8 as follows: 1.centimeter to other units 2.Meter to other units 3.Kilo meter to other units 4.feet to other …

Member Avatar for rubberman
-1
127
Member Avatar for simbarashe.tandi

I need to knw hw I can make a gui for aa prograaaam written in C++ ,m using the codeblocks IDE

Member Avatar for rubberman
0
96
Member Avatar for soche123

I'm asked to write a program that takes as input a char value and returns true if the character is uppercase; otherwise, it returns false.. so far I've made the definition of the function but I don't know how to get it's output on the screen through int main..could you …

Member Avatar for phorce
0
143
Member Avatar for soche123

I was solving this problem and I'm struck in some problem..could you guys help me out?thanks Problem: Write the definition of a function that takes as input three numbers and returns the sum of the first two numbers multiplied by the third number. solution: #include <iostream> #include <conio.h> #include <math.h> …

Member Avatar for mike_2000_17
0
154

The End.