49,761 Topics
| |
hi, i doing a project to send MMS using PIC16F876.. how to define the pic16f876 in c++? thank in advance. | |
Hello, I am trying to compute the log transformation of an image(very easy... I know). But I am not getting the right result and I really don't know what I am doing wrong. I know the image provided is in the range of 0 and 1.5x10^6. But when I save … | |
Hi all, I wasn't sure where to post this, so I thought here might be best :D I have to develop a program that takes a webpage and extracts information from it, so I was wander how would be the best way to do this, without using an external library(like … | |
Write a program to maintain a list of some of your friends with their phone numbers. The program should reserve enough elements for 20 friends, and then present the user with an input screen to enter a friend name. The program then searches about the name in the previously existing … | |
Hello folks,i am teaching myself qt and i have run into a problem.In my data entry application,i want to bind my forms to my grid explained in this picture: [URL=http://imgur.com/KeNTI][IMG]http://i.imgur.com/KeNTI.png[/IMG][/URL] Right now,i am scratching my head plotting on how i am gonna accomplish this. Ideas are welcome. | |
[CODE]// erase.cpp - Script 4.1 // We need the iostream file in order // to use cout and cin. #include <iostream> // Start the main function. int main() { // Declare a variable for the user input. // Single character to store yes (Y) or (N) char answer; // Prompt … | |
I have an error in my project and I can't fix the problem [CODE] #pragma once class Node { int code; int count; Node* parent; Node* rightChild; Node* leftChild; public: Node(int c1,int c2); void setCode(int c); void setCounter(int c); void setRightChild(Node n); void setleftChild(Node n); void setParent(Node n); int getCode(); … | |
Here is the class definition that I have so far: [CODE]#ifndef SAVINGACCOUNT_H #define SAVINGACCOUNT_H #include<iostream> #include<string> class SavingAccount { public: /** Default constructor */ SavingAccount(); /** Default destructor */ ~SavingAccount(); string getfirstName() const; string getlastName() const; static double modifyInterestRate();//static method declaration static double calculateMonthlyInterst(double,double); void setannualInterestRate(double); double getannualInterestRate() const; private: … | |
[CODE]#include <iostream> #include <cassert> using namespace std; struct node { int number; bool high_priority; node *link; }; class linkedPriorityQueue { private: node *high_priority_front, *high_priority_rear, *queue_front, *queue_rear; public: linkedPriorityQueue(); void addQueue( int number, bool high_priority ); void deleteQueue(); int front(); int back(); bool empty(); bool full(); void print(); int size( bool … | |
Does anyone knows what is the version of the C++ Builder in the image bellow ? [URL="http://www.escomposlinux.org/sinner/dibus/sinner7.jpg"]http://www.escomposlinux.org/sinner/dibus/sinner7.jpg[/URL] | |
[CODE] std::string function(std::string buffer) { int Variable1 = 23; if( !buffer.compare("Variable1")) <--- i want the user to input the variable name..and have my program match the input with the variable name of the program and return the value it contains return Variable1; [U]<--- How do i convert this number into … | |
I was under the impression that you could completely gaurd anything you wanted with an [icode]#if 0 [/icode]. Apparently this is not the case? I found some code that has opening /* comments but no matching closing */, and the /* seems to comment out the [icode]#endif[/icode], resulting in everything … | |
i don't know how can i start or what classes i need in this project (wav player) with functions (play,stop,pause,record,mute) thanks in advanced | |
Hi, I am trying to write a program for my mum who is a teacher, the program needs to be able to store students information like their name address SAT scores etc. I have a basic background in c, but i decided to try and implement this program using c++. … | |
Hi there ! Actually I am a beginner in c++ and i have a problem to convert pseudocode to c++. Hope that anyone can help me Input : number of people, height of persons Process: division, addition, comparison (greater than and smaller than) Output : smallest height, tallest height, number … | |
how to known whether system is available or not at the time of start up of operating system in unix systems | |
It's soon time for me to create some c++ program as a project for my class. But I have no idea what to do, any suggestions? | |
Hey guys, I have a problem. I created a quick sort program and it functions perfectly for quantity less than 100. I searched for errors and changed and now for more than 100 values, it runs perfectly and sometimes it hangs. I am unable to decipher whats the error. Did … | |
Probably easy for you guys but I'm not sure if I have this right!! Original function [CODE]int testing (int c, float d) { if (d > c) return (int) d; else return c; }[/CODE] What I need to do: The function returns the decimal value resulting from dividing d by … | |
I need help with a flowchart in a question I'm doing. I've completed the programming code but just have no idea on flowcharts if anyone can give me an idea on how to do this then I'll appreciate it. This is the question: Write a C++ program that reads from … | |
Maybe you can help me here triumph, or anyone else for that matter. I have users running my program on various operating systems, and am running into two common problems. The window\game window my program sends messages to and gets pixels from is an older direct x game coded in … | |
Hi, I want to know what is allocator in C++ STL exactly ? For example what is the difference between the two following statements : [code] vector< int, allocator< int > > v1; vector< int, allocator< char > > v2; [/code] | |
I'm having a lot of trouble with a project for school. The project calls for me to create a random guessing game with three different levels. Each level should consist of a random number between 1 and 30. I have set my code to show between 1 and 5 for … | |
Hi all, Im started to learn windows.h libary. I want to add example some buttons with messages with more stuff in it but where i need to put that code i didnt find any torial about it can somebody help me out. [CODE]#include <windows.h> #include <stdlib.h> #include <string.h> #include <tchar.h> … | |
Can someone please explain these functions when creating a class please. Searching hasn't helped much. I need to know how they are used and examples or links to examples would be helpful. Any help is appreciated. | |
[CODE]#include <iostream> using namespace std; int main( ) { int num1 , num2 , num3; cout << "Please Enter Three Valid Integers Using The Keyboard"; cin >> num1 , num2 , num3; if {num1 => num2} && {num2 => num3} else num1 + num2; if {num2 => num1} && {num1 … | |
i have to make this board game in visual c++. i got the source code in c from a website. but it has some problem and isnt' running. moreover,its a hectic task to convert it into c++ for my use. if anyone who has worked on scrabble cud help me … | |
I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program? | |
I currently have a functor that finds the closest entity (by calculated distance) to the current entity. (Vector3 is just a 3D coordinate class) [CODE] template<typename T> class MinDistanceBGE { private: Vector3 v; // The location of the 'asking' entity. public: MinDistanceBGE(Vector3 vInput):v(vInput) {} bool operator()(T t1, T t2) const … | |
[CODE] // foo vector of unsigned chars // contains 0x00, 0x00, 0xb8, 0x01, 0x00, 0x00, 0x00, 0x1F, 0xEC 0x82 std::vector< unsigned char > foo; long some_long = (long)&foo[6]; // i want the unsigned chars 0x00, 0x1F, 0xEC 0x82 to // make up the long decimal value of 2092162 [/CODE] Now … |
The End.