49,761 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
71
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
156
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
133
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
182
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
163
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
328
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
115
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
394
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
424
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
51
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
185
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
178
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
266
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
143
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
142
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
147
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
133
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
254
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
155
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
800
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
234
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
149
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
568
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
437
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
172
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
124
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
222
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
110

The End.