51,593 Topics

Member Avatar for
Member Avatar for fflittle

Surfed, a freeform editor for sculptured surfaces was published in 1978 in CAD. It premiered screen plane dragging of control points in a dynamic 3d view via a tablet with a pen tip switch. The surfaces edited were square arrays of squares. Although a variety of shapes were obtained, no …

Member Avatar for Ezzaral
0
73
Member Avatar for criselda
Member Avatar for pseudorandom21

I found this excellent video on one of Microsoft's websites: [url]http://msdn.microsoft.com/en-us/ff728575[/url] I'm really just wondering how to organize the window procedures for my Dialogs/Buttons/etc. Would one normally after creating a dialog throw the window procedure into a new file? I don't like tiny bits of code in different files, so …

Member Avatar for BitBlt
0
160
Member Avatar for caltech

Total newbie, I need more help... If you could just give me a basic structure for what I'm trying to do and an explanation, that would help a whole lot. Here's my assignment: [INDENT] 1) Write a function [I]divides[/I]. The function accepts two parameters: a number and a possible divisor. …

Member Avatar for reemhatim
0
138
Member Avatar for Celtrix

Im having trouble with gtk open file dialog it will open the first time but after i closed it i cant reopen it Ive tried casting it as different objects but i cant seem to fix it. After attempting to reopen the dialog box it spits out gtk_dialog_run: assertion 'GTK_IS_DIALOG …

Member Avatar for Celtrix
0
186
Member Avatar for ChuckRussell

I am having trouble overriding the virtual functions from the parent class Label. Can anyone please help me on what the correct syntax for the declaration and implementation of OnMouseEnter, OnMouseDown, OnMouseLeave, OnMouseUp etc. [CODE=C] using namespace System; using namespace System::Collections; using namespace System::Linq; using namespace System::Text; using namespace System::Drawing; …

Member Avatar for ChuckRussell
0
168
Member Avatar for zenotriacme

Hi, i have download the project from microsoft using WMEncoder to capture a desktop activities as video. Its working fine. But the problem is it capture a full screen but i need to capture the specific window. I am new to VC++ thats y i dono how to change the …

Member Avatar for zenotriacme
0
331
Member Avatar for pkfx

if numInput isnt an integer I want it to prompt "Invalid Try Again" and ask for input again [CODE] std::cout << "Enter a Number (Max 10 digits)(99 to Exit): "; std::cin >> numInput; [/CODE]

Member Avatar for Narue
0
117
Member Avatar for annnDi

Hello guys. First of all i have to say i've been learning a lot on daniweb and appreciate all your effors. Secondly, i'm currently learning MFC with c++ and atm I am making a program called "fast fingers", where you have to press those chars on keyboard that are dynamically …

Member Avatar for annnDi
0
399
Member Avatar for dss1984

Hi, everyone. This is my first post here. I'm not very good with C++ and I have to write a program using 2 dimensional arrays. My program is a Menu that works with 2 two dimensional arrays. The program has to generate two random matrices and perform arthimetic procedures like …

Member Avatar for ameya potnis
0
429
Member Avatar for ahtaniv

Receiving exceptions from TAO with different minor codes... How do I decipher what is the problem using these minor codes? The explanation given in Wikipedia is a little confusing. This is what is mentioned in Wikipedia: Each standard CORBA exception includes a minor code to designate the subcategory of the …

0
52
Member Avatar for raidernation

#include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; const int num=1000; int main(int argc, char *argv[]){ if (argc == 2){ ifstream file; file.open(argv[1]); } else cout << "You typed only one file" << endl; ifstream file; file.open(argv[1]); string space; char word; int i=0; int w=0; int s=0; …

Member Avatar for raidernation
0
187
Member Avatar for azencot

Hello, I am not sure if this is the place to ask. I develop an algorithm in C++ under Windows XP with Visual studio 2008, the algorithm is proved to be linear ( O(n) ), there is a usage of memory during the algorithm ( all of it is being …

Member Avatar for azencot
0
185
Member Avatar for darkalfx

Hello, I just started learning c++ and I'm dabbling with file input/output. But now I have encountered an issue with this code: [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { ifstream inFile("values.txt", ios_base::binary); string Value1; int Value2; int Value3; int Value4; if(inFile) { inFile.read((char*)&Value1, sizeof(string)); inFile.read((char*)&Value2, …

Member Avatar for darkalfx
0
1K
Member Avatar for skinwah

Hi all. I am having trouble with these inside a loop I have. The loop is used to fill a struct and I want to check each input before it is accepted. It works fine if the input is what is expected but doesnt if it is incorrect input. Here …

Member Avatar for pseudorandom21
0
270
Member Avatar for surferxo3

[CODE] #include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; int main () { int arr[9][9], n; srand(time(0)); for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { n = rand() % 9; if (arr[i][j] == n) { n = rand() % 9; arr[i][j] = n; …

Member Avatar for surferxo3
0
145
Member Avatar for MaDo4

Hi im trying to calculate the average of an inputfile using a 2d array. I tried to calculate the average per row and add them all together but my code gives me an average of zero. I was wondering if anyone can see what im doing wrong or a better …

Member Avatar for MaDo4
0
143
Member Avatar for aarahi

//what is the problem in following program? #include <iostream> #include <cmath> using namespace std; // FUNCTION PROTYPE FOR test_polar void test_polar(); // FUNCTION PROTOTYPE FOR read_point void read_point(double & radius, double & angle); // FUNCTION PROTOTYPE FOR degrees2radians double degrees2radians(double angle); // FUNCTION PROTOTYPE FOR compute_coord void compute_coord(double radius, double …

Member Avatar for MasterGberry
-1
150
Member Avatar for blee93

Hi, I began file I/O and I did exactly what it said in the book I was using and it doesn't seem to work for some reason. Am I doing something wrong? [CODE]#include <iostream> #include <fstream> using namespace std; int main() { ifstream fin("hello.txt"); if (fin.is_open()) cout << "It's good"; …

Member Avatar for blee93
0
138
Member Avatar for smitty34

Can someone please help me with this code? I have already taken out some of the errors, and my instructor says to make sure my brackets are enclosed. When I do this though I get more errors???Help!!! #include <io> #include <string> #include <iomanip> using namespace std; //Global Declarations of Variables …

Member Avatar for ninjatalon
0
256
Member Avatar for scarlettmoon

Hi ~ As you can see from the code below I am in school for programming. I have come across this homework assignment a few times on the site already however the requirements for mine are different. I cannot use arrays. Three functions - I only have two coded. The …

Member Avatar for scarlettmoon
0
160
Member Avatar for kra9853

I'm trying to write a program that outputs the cent symbol (¢) in Visual Studios 2010 and when I copy and paste the symbol into my text it outputs a completely different symbol. I've also tried using \u00A2 and I still get a different wacky symbol. What is the C++ …

Member Avatar for mike_2000_17
0
814
Member Avatar for MasterMic

I'm attempting to recreate the Unix shell program "todo.txt" using C++ on Windows. An example use of my program in the Command Prompt would be: [CODE]>todo /A "I like cheese."[/CODE] which would append the item "I like cheese." to the file "todo.txt". In my program, there is a line which …

Member Avatar for MasterMic
0
239
Member Avatar for NichtSoGut

Good evening! So I've been trying to get my head around these classes and it's not going well. From what I've understand I've been calling functions correctly, but for some reason the members I'm creating are not being accepted. [CODE]class TheData { public: void InputData(); void DisplayMembers(); TheData(); ~TheData(); protected: …

Member Avatar for mike_2000_17
0
151
Member Avatar for muthuivs

Hello again everyone, I have just finshed a neat little c++ program, but now I just realized that I don't know how to save the file as an executable so that I can use the program on any computer whether or not it has a compiler. Please Help. PS: I …

Member Avatar for raj.patel301
0
573
Member Avatar for Sundayy

Hello again: I am having trouble declaring my variables. Can you please show me what I am doing wrong. The homework problem ask for me to use the "if" statement also, kinda having a few problems with that. Please see the question and my code below. Thank you for your …

Member Avatar for peter_budo
0
446
Member Avatar for Juan-Ellyn

Hi I need help on this please.I have to write a void function that reads data from the following file:5 2 2 670.60 6 4 2 890.80 2 2 0 220.00 10 8 1 1340.60 10 4 3 1430.70 4 0 0 460.30 5 3 1 700.00 7 5 2 …

Member Avatar for Juan-Ellyn
0
176
Member Avatar for KazenoZ

Hello, I'm sorry for the bad title for this, but I honestly have no idea how to define this by few words. My problem is this, I need to read a bunch of data from a text file into an array, in the theoratical aspect, it's all nice and should …

Member Avatar for KazenoZ
0
125
Member Avatar for JordanHam

I am using getline to read a CSV file. The line it reads looks something like "1/24/2010 6:19 1/24/2010 6:59 Merrill - Valley Farms yhy 69 Vegetation 55" The getline works but, I need to be able to calculate time days between a date the user inputs and the date …

Member Avatar for JordanHam
0
226
Member Avatar for sufyanali

Hi, friends Can anyone tell me more efficient answer of this question. Q:-As we all know when we any object by value to a function then a temperary object is created. I observe that the destruction of this object occurs differently in different situations like . 1):- If we call …

Member Avatar for rxlim
0
112
Member Avatar for mitrious

given the following code [CODE]bool space(char c) { return isspace(c); } bool not_space(char c) { return !space(c); } template <class Out> void split(const string& str, Out os){ typedef string::const_iterator iter; iter i = str.begin(); while(i != str.end()){ i = find_if(i, str.end(), not_space); iter j = find_if(i, str.end(), space); if(i != …

Member Avatar for mitrious
0
151
Member Avatar for Swiftle

Hi, I'm having trouble figuring how to search for a specific element of a class in a list. I saw some examples of find() but they only show how to search for a string or an int. Another thing is modifying elements of a class. So let's say I have …

Member Avatar for Swiftle
0
148
Member Avatar for Howdydoody

Hey guys, The question on the homework is "Write a function that returns a count of the nodes that contain a value less than the parameter value." I was wondering if someone could point me in the right direction maybe with some pseudo code or something of the like. ive …

Member Avatar for Howdydoody
0
139
Member Avatar for peck3277

Hi guys, if anyone can help here it would be great. I'm running Windows XP SP3. I have at the moment a micro-controller connected to my serial port. Using the micro-controller I can get temperature data and send display it in a terminal. I can program the micro-controller in C. …

Member Avatar for Ancient Dragon
0
106
Member Avatar for mak_sutt

Hi I have a GUI created using VC++. I want to read the value or content from a text box of another GUI in windows(dont have sourec for this GUI). Can you pleae suggest me how can i do this, please also point me to some basic tutorial or books …

Member Avatar for ninjatalon
0
122
Member Avatar for cyrusmay13
Member Avatar for eightyseven
0
836
Member Avatar for i4ba1

Hai all, i want to create interactive multimedia software. the software want to run in windows, linux, and mac. what the programming language that suite to developed that software?. c++ or adobe air? Best Regards

Member Avatar for i4ba1
0
174
Member Avatar for bensewards

Hey everyone, In my COMP 208 class, I was asked to do the following: "Redo Lab 2 Problem 2, only this time use vectors to hold the names and gpa’s instead of arrays. So you will work with 2 vectors, one holding the gpa’s (type double) and the other holding …

Member Avatar for user422
0
201
Member Avatar for txwooley

I am trying to learn C++ through on-line tutorials and such. In almost all tutorials, the author tells you which headers to include for that particular exercise, but never tells you how he knows that. I understand that if you are advanced enough to be writing tutorials, you know off …

Member Avatar for mike_2000_17
0
122
Member Avatar for kartikkp

Hey I'm having trouble with compiling this code, I keep getting a "undefined refernce to winmain@16 I feel like it has to do with int main() I tried just main(), im not sure how to fix that [CODE]#include <iostream> #include <fstream> #include <string> #include <stdio.h> #include "HangmanBoard.h" #include "FileProcessor.h" using …

Member Avatar for jonsca
0
114
Member Avatar for chamnab

do u know some code that we can use mouse in c++ because i want to click some button in my assignment ?

Member Avatar for Red Goose
0
139
Member Avatar for deanus

Hi, When I access the property pages of a project with Visual C++ 2010, in the 'Configuration Properties | VC++ Directories' sub-tab there's an 'Include Directories' property. Under 'Configuration Properties | C/C++ | General' there's a property 'Additional Include Directories'. Is there a difference between the 2? What are the …

Member Avatar for Ancient Dragon
0
101
Member Avatar for chamnab

i have some question to ask everyone . 1.what is thread ? 2.what is advantage to use thread ? 3.if you can ,please give me some tutorial about create and using thread . 4.thank for your answer

Member Avatar for Ancient Dragon
0
59
Member Avatar for fishsicles

Hello, I am working on developing an interpreted programming language for a capstone project and have hit a snag dealing with two classes. In the interpreter, the classes represent a scope containing a procedure pointer and the procedure pointing back to the scope containing it. The former to allow the …

Member Avatar for fishsicles
0
149
Member Avatar for arguav74

Hi everyone, I am taking a C++ 100 level beginners course and we just got this assgnment that I am stuck on. Here is the assginment description: [QUOTE]We are going to just compute the first 15 or so digits of π using doubles. In any case, to compute the value …

Member Avatar for WaltP
0
897
Member Avatar for CronosAkroma

ok so here the problem the code works just adds break on to every line i want it to only add breaks to the line that don't alraedy have spaces after them. while (! fileIn.eof() ) { getline (fileIn, linea); fileOut << linea << b <<endl; }//end while is what …

Member Avatar for WaltP
0
111
Member Avatar for moone009

C# command prompt. I have a program that builds an xml file for me but then I need to open the command prompt and enter: 1.D: 2.cd\rplcarts\createprogram 3. createprogram.exe "XML file" then enter does anyone know how I could automate this in c#?

Member Avatar for kvprajapati
0
93
Member Avatar for chamnab

can anyone help me to clear this ? example: Hello i want to clear 'e' and remain words is "Hllo" please tell me if it possible . thank for the answers.

Member Avatar for mrnutty
0
47
Member Avatar for speedofdark

Hey all, I've used this site quite a bit as a reference, and couldn't find a solution that worked for me. So I became a member. :) Anyway, I can't get my insert function to...function when I go to add a node. The node is NOT to be just added …

Member Avatar for speedofdark
0
221
Member Avatar for caut_baia

Hi folks i only have one question.Can or should i delete a base class object instantiated in a derived class's constructor , inside the derived class's destructor? [code] class A { protected: int somedata; public: A () {} A (int x) : somedata(x) {} virtual ~A () {} }; class …

Member Avatar for caut_baia
0
561

The End.