51,593 Topics

Member Avatar for
Member Avatar for shadyreal

Is it possible to have a auto-tracking event or something similar to track the database when it changes? For an example: If the database gets a new insert value from another application that I currently have: then My other application will notice it and fetch that data instead of getting …

Member Avatar for shadyreal
0
449
Member Avatar for tooota

hi every ; i want to know how to start **simulation using c++** , i searched in many websites in order to find some hints about this subject but i found nothing . Best regards

Member Avatar for tooota
0
225
Member Avatar for one-unicorn

hello everyone, I seek help please to find a program c + + that can read images from different types bmp, jpeg, png and put the pixels values in a vector, modified pixels valus, then saved the picture change to a different location, I inform you that I am working …

Member Avatar for mike_2000_17
0
784
Member Avatar for yxBen

Hi, I've been learning about the std::copy function in the <algorithm> header and I'm stuck on this exercise that I gave my self. Let's see the code snippet first: #include <iostream> #include <vector> #include <algorithm> #include <iterator> using namespace std; ostream& operator<<(ostream& os, const int p_val) { os.put( p_val*2); return …

Member Avatar for yxBen
0
506
Member Avatar for islam.fci.3

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?

Member Avatar for tinstaafl
0
274
Member Avatar for subash sonar

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.

Member Avatar for subash sonar
0
95
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
150
Member Avatar for narlapavan
Member Avatar for liliafan

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 …

Member Avatar for Lucaci Andrew
0
218
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
128
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
116
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
115
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
125
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
419
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
133
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
246
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
319
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
205
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
95
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
144
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
126
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
199
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
46
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
851
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
303
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
163
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
934
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
751
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
63
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
150
Member Avatar for mesbahuk

In the conversion process of a java to c# project, i have come to java's ***indexOf()*** function in ***string.java*** class, which takes in two integers (int ch, int fromIndex) and return some integer value for a char (i'm guessing its an ASCII value). I need to know if there is …

Member Avatar for mesbahuk
0
665
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
415
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
130
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
98
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
146
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
157
Member Avatar for sanyam.mishra

I am doveloping a game brain champ. This is its version 3. In this version I want to use mouse in addition with keyboard for input. I have successfully tested its standalone keyboard version as well as mouse version. I have used int86() function for mouse with 0x33 interrupt number. …

Member Avatar for sanyam.mishra
0
688
Member Avatar for rash_13

I am reading from a file which has words like: connecting classes feeds I need to convert each character to lowercase and then call a function to remove suffix from each word. Say, first on connecting, then on classes... I am done with rest of the part but have a …

Member Avatar for Lucaci Andrew
0
320
Member Avatar for cobaltfive

I have been working on this for two weeks now and it has been progressing slowly. I am currently working on getting the the remove function of my program to 1. first check to see if there is a product 2. list the products 3. allow the user to select …

Member Avatar for triumphost
0
238
Member Avatar for sanyam.mishra

I had recently started using Dev C++ 5.4 (earlier I was using Turbo C++ 3.0). Suggest me some good books to start programming in windows. And also my old programs which I had made in Turbo C++ are not compiling successfully. Fstream.h, iomanip.h and graphics.h are not not working in …

Member Avatar for mike_2000_17
0
132
Member Avatar for mozammel

Hi, i got a program that crashing while i want to delete a pointer value. here is the code: #include<iostream> using namespace std; class sab{ int a; public: sab(int x); ~sab(); int get(); sab(const sab &ob); }; sab::sab(int x) { cout<<"constructor"<<endl; a=x; } sab::sab(const sab &ob){ cout<<"copyconstructor"<<endl; } sab::~sab(){ cout<<"destructor"<<endl; …

Member Avatar for rubberman
0
212
Member Avatar for arham.malik.900

This is a card game which may have two or more players. Each of the players is given 4 face down cards at a time. The player can reveal his/her cards once he/she gets them. Other 4 cards are kept face up in the center for all the players to …

Member Avatar for iamthwee
0
204
Member Avatar for DavidB

Here is my first Code Snippet contribution: a C++ sub-routine that computes the roots of a quadratic equation. Notes: * This sub-routine checks if a = 0. * IF a = 0, then the equation is actually not a quadratic equation; it is a linear equation with one--if any--root. * …

Member Avatar for DavidB
1
737
Member Avatar for aplh_ucsc

I'm using visual studio 2010 and C# and this is the Implementation of a WPF button. IT takes two textbox values and insert them into a database table. i did create a service based database and the did configure it on app.config file. Table has two columns, product id(int) and …

Member Avatar for itzcuinzin
0
477
Member Avatar for RJ Adeel
Member Avatar for 9tontruck

I am trying to find an area center of various types of rectagles. (Center of gravity and midpoint of 4 ertices never work so please think in different way) Please see this image: http://img22.imageshack.us/img22/7881/rectangles.jpg I have to position of red dot ` Point vertices[4]; Point areaCenter; ` I have to …

Member Avatar for Moschops
0
399

The End.