49,761 Topics
| |
I want to write a class that do operation on two matrices by 2D vector but i have some problems with the 2D vector , any one can help me? | |
Hi, I m using turbo c++. I need ur help by sharing the code for moving to the field on the output screen by pressing arrow button from the keyboard. Please help me out from the problem. | |
As heading shouts, I need to make source code formatter to format PHP Codes. RobertoP have written nice Lexical analyzer that means no need for me to tokenize file. I just do not know how to "juggle" with tokens to produce the formatted code. I appreciate any pointer especially simple … | |
where to download g++ package for ubuntu 12.04 and how to install offline | |
Hi I am attempting to pass a reference to an object from one function to another, is this even possible, if so what is the syntax this is an example of what I want: [code] class SomeClass { public: int a = 100; }; void second_function(SomeClass & ref_to_classobj) { std::cout … | |
I have successfully implemented Porter Stemming Algorithm. I wanted to project ideas, as to where I could apply it, a more practical application? | |
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 … | |
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 … | |
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 … | |
what are the best way to understand c++ language? | |
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 … | |
what are the rules of graph construction and using the example: S::= A/B A::=XA/Y B::=XB/Z | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
**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! | |
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. … | |
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, … | |
Develp a program to dertermine examination sitting arrangementfor classes above 500 in an institution of learning | |
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; } … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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...... | |
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 … |
The End.