49,757 Topics

Member Avatar for
Member Avatar for rupertbeard

Is it possible to have software lock itself till the user completes a form on a web page? The user installs the software, then a splash screen pops up and their web browser opens to a predefined page. The page is a form that needs completing. Say the form is …

Member Avatar for kolosick.m188
0
99
Member Avatar for micromic

Hi, I need to produce an xy matrix on screen of tiny boxes, each equivalent to 2.5 x 2.5 mm. I want to group them into sixes. When the mouse pointer is moved across the tiny boxes in any six group I want the program to register when the mouse …

Member Avatar for Clinton Portis
0
91
Member Avatar for aagajaba

The following code works, it prints hello world. Also, depending on the second value, it either gives segmentation fault or doesn't gives segmentation fault. Can someone please explain me what is happening internally. [CODE] int main = ( cout << "Hello world!\n", 195 ); [/CODE]

Member Avatar for Clinton Portis
0
113
Member Avatar for arshad115

hi,i am making trees and i want to draw the structure of the tree in windows forms applications.since the class tree has the access to the trees root pointer.so only a member function of the class can draw the nodes of that tree. but i cannot use the graphics pointer …

0
152
Member Avatar for lexsoOr

I was having problems with this program or better with the int main() function. The program is supposed to ask the user for his name and password. After that the user will be able to access different infos based on his security clearing. The comments in the code are English …

Member Avatar for lexsoOr
0
86
Member Avatar for spankboy11

Hi there, I'm assuming the answer to this problem is really easy, but I just can't work out where the problem is. It's driving me insane and I'd really appreciate some help. I'm new to C++. My problem is this: I'm trying to pass a char array to a function, …

Member Avatar for spankboy11
0
148
Member Avatar for karanmehra18

hi..i am writng a program.....i have collected a lot of information(name,hobbies etc.....) of about a hundred students in my school.......i have also stored their photographs in .jpeg format.........i am using Dev c++ and windows xp..........i want to store all this info + photos in a single file....how do i go …

Member Avatar for thines01
0
118
Member Avatar for johnray31

hello guys here is a problem when i was written a simple demonstrative linklist program i got the[B] general protection error[/B] ([B]**one more question i need ur guide i have the turbo c++ compiler but this does not support when i write #include <iostream> using namespace std; plz tell me …

Member Avatar for vibhu1
0
227
Member Avatar for icu222much

I have created a linked list in Java, and now I am trying to convert my program to C++. When I try to compile, it gives me the error saying that 'next' uses 'CarNode' which is being defined. I am wondering if there is any way around this? Java: [CODE]public …

Member Avatar for VernonDozier
0
189
Member Avatar for simonsayz27

Hey everyone. I first post and I couldn't figure out how to encase my code, sorry. Let me know and I'll do it next post. Anyways, I've built binary tree using recursion and included a function to print out the sum of the level of the tree of a given …

Member Avatar for codewalkz
0
353
Member Avatar for Laryssaparker

Hi, I am creating a Visual C++ application with a bunch of forms. I would like one form to stay open the entire time (just a screen to show app is running), then I need one form with two radio buttons, an OK button and a Cancel. If the OK …

0
83
Member Avatar for Jalwes

Hi all, I am trying to write code that will read from a file that is set up as an inventory file. So, on each line you'll have something similar to: 1. Toothpaste 2. Toothbrush etc... The problem I'm having is saving the numeric item number into one array index, …

Member Avatar for Jalwes
0
148
Member Avatar for Kuroshi

I have already done most of the program, ask the user for the move, see if it is a valid move, make the move, test if the perimeter is full, etc... but now I see myself troubled with testing if someone has won the game, I could just make a …

Member Avatar for Kuroshi
0
143
Member Avatar for sebassn

Hey guys, I justs started this code to make a diamond with stars (*), but I get confused how to print the spaces that I need, I don't know if you understant what I'm trying to say. It is something like this: Prompt the user to enter (odd) height (of …

Member Avatar for jonsca
0
92
Member Avatar for mrsrinath
Member Avatar for .:Pudge:.

I tried looking at the other examples on the site, but I still get segmentation errors whenever I run the file. I need help with the constructors in [B]bold[/B] in the "List" class. [CODE]#include <iostream> using std::cout; using std::endl; // forward declaration of List class, so ListElement can make // …

0
92
Member Avatar for Duki

Hey guys, I'm about to start on a research project about multi-threading. I'm very comfortable with c++ oop/data structures concepts, but am completely new to programming with multiple threads. Does anyone have suggested resources for me to get started?

Member Avatar for Cronless
0
117
Member Avatar for tomtetlaw

When I try to compile my code, I get this error: [code]------ Build started: Project: SUD, Configuration: Debug Win32 ------ Compiling... baseent.cpp c:\program files\microsoft visual studio 9.0\vc\include\xmemory(52) : error C2558: class 'BaseEnt' : no copy constructor available or copy constructor is declared 'explicit' c:\program files\microsoft visual studio 9.0\vc\include\xmemory(155) : see …

Member Avatar for JasonHippy
0
609
Member Avatar for calypso&noname

Hi friends; I've run into a problem trying to complete the below assignment: Write a function called myName which returns (does not cout) your full name (e.g., "Bob Smith"). Write main to call the function and display the name on the screen. NOTE: Your name should not appear anywhere other …

Member Avatar for calypso&noname
0
144
Member Avatar for tina05

Hi I want to display a variable menber array queue, and the definitions of the class are The Array.h template <class DataType> class Array { public: Array( int size ); private: T *ele; }; The Array.cpp Array<T>::Array( int size ) { if ( size < 1 ) { capacity = …

Member Avatar for jonsca
0
330
Member Avatar for ganbree

I'm trying to advance my understanding of how computers and compilers work. Given the C++ program bellow with exceptions and runtime typing turned off and no optimizing that removes main or makes it into a non-standard function. [code=c]int main() {return0;}[/code] Produced an disassembly with the following code for main: [code=asm]pushl …

0
83
Member Avatar for AdRock

I am trying to increment 2 variables in a for loop and i want the loop to exit when the highest value variable is reached My example [B]a [/B]gets the first element of a vector and [B]f [/B]gets the next. It needs to keep doing that until [B]f[/B] reaches the …

Member Avatar for AdRock
0
164
Member Avatar for EastJohn

My array keeps outputting this random character (kind of like a # in a box). Anyways, its just garbage really, but how do i stop it from doing this. If my array was like char title[10] and the user inputted something with only 5 characters, then the remaining characters would …

Member Avatar for restrictment
0
116
Member Avatar for Silvershaft

Well I think title says it very well, how do you think, is it good option to make program with GUI?

Member Avatar for thines01
0
146
Member Avatar for Niner710

I have an function in which I want to make a copy of an object. [code] ClassBase { public: Tblk myTblk; private: }; void ClassBase::CopyObject(const ClassBase &test) { TblkPtr_t myTblk = TblkPtr_t(new Tblk); //TblkPtr_t is a typedef shared pointer *myTblk = *test.myTblk; } [/code] For some reason that doesn't work. …

Member Avatar for mrnutty
0
111
Member Avatar for futureaussiecto

Hey guys, im about to write an application which has a visual GUI doing representation of a system (lots of pretty colours and flashing objects etc), which represent what is happening with packets and external devices being inserted into the system. I need to use one of the Win32 APIs, …

0
44
Member Avatar for samsons17

i need help with this very simple question.... the [I]default[/I] in this program will just display the [I]wrong input[/I] if the input entered by user is different with the data type of the variable which is [I]char[/I].. but not if the user entered the the word which is the character …

Member Avatar for mrnutty
0
108
Member Avatar for tkud

While I was browsing through the forum threads long ago, i saw a thread about one assignment given toits poster. Since i am learning myself(1 month left to enter university), I decided to try writing d program . Please, you are free to correct me if I am wrong anywhere... …

Member Avatar for pecet
0
110
Member Avatar for Ponomous

Hey How do you go about debugging? like tips and tricks? I have been looking at my code (below) for like an hour and cant figure out what i have done wrong..... [CODE] #include <fstream> // Header File for File Reading #include <iostream> // Header File for General I/O-put #include …

Member Avatar for Ponomous
0
123
Member Avatar for PDB1982

How can I call a value that was created in 1 function into another function so that it can be used as a variable? (i.e how do I implement the values that I found in my distance function, and use them in my radius function...) [code] #include <iostream> #include <cmath> …

Member Avatar for jonsca
0
80

The End.