49,766 Topics

Member Avatar for
Member Avatar for jimJohnson

I am doing some stack exercises and just want to make sure I have the correct answers. Assume StackType is sent to int and STACK_CAPACITY is set to 5. Give the values of myTop and the contents of the array referred to by myArray in the stack s after the …

0
50
Member Avatar for broli100

Hi, I am making application where I need to repaint windows form where I display some variables. I used InvalidateRect(NULL,0,0); - now the form is refreshing but started to blink because I refresh whole area,and I dont need to refresh all the buttons and static text ,only area where I …

Member Avatar for broli100
0
106
Member Avatar for riotburn

I am trying to create my first library and I guess the dynamic library is the best suited, though I don't know the difference between the two. I am following this tutorial: [url]http://msdn.microsoft.com/en-us/library/ms235636.aspx[/url] My questions are: 1. So pretty much I make my header file and a respective cpp file …

0
53
Member Avatar for Kesarion

I'm trying to translate a Pascal mouse movement algorithm to C++ but I'm not too good at it. The mouse moves to a position but when it moves again it only goes a small increment and crashes after a few more moves or if I move the mouse a few …

Member Avatar for iamthwee
0
404
Member Avatar for VilePlecenta

I've been trying to disable the desktop ( in its entity ) so that no window can get focus and I can draw on top of it. Since creating a fullscreen window and drawing on that will lag all the other windows. Ive tried WM_ENABLE and EnableWindow with the handles …

0
64
Member Avatar for nickd916

I need help creating a delete function for binary tree. This is what I have so far... (Last function is what I'm working on) [CODE=C++]#include <iostream> #include <cassert> namespace CS61 { template <class Item, std::size_t MAX> class btreenode { private: std::size_t used; // actual number of values in this node …

Member Avatar for nickd916
0
84
Member Avatar for Lukezzz

Hello, I wonder how it works when you want to send an email through a proxy server. I have code below that works if you want to send an email through for example smtp.gmail.com etc. I have put the proxyserver address and port that the proxyserver has as the 2 …

0
67
Member Avatar for caut_baia

Hi guys.I thought about it for a while but i didn't get anywhere.Is there any alternative to polling?

Member Avatar for Banfa
-1
151
Member Avatar for jdpjtp910

I am trying to pass data into a class object and the put that class object into a binary tree. My code was mostly give from the professor, but I am stuck on this part. He gave us the binarytree.h and employee.h. I had to create the emp_tree.cpp. Employee.h: (give …

Member Avatar for jdpjtp910
0
557
Member Avatar for sksingh73

i have declared a variable as uint32_t num; when i take input for this variable i.e cin>>num; cout<<num<<endl; & take its cout, then it gives problem. when i run this program, i gives num value as 12345678, it works fine & give cout. but when i give input as 1234abcd. …

Member Avatar for mrnutty
0
93
Member Avatar for sksingh73

i have got 2 cpp files & a header file, which i have included in all 2 cpp files. its like this [U]abc.h[/U] extern uint32_t key; [U]a.cpp[/U] #include "abc.h" uint32_t key; int main { ............. } [U]b.cpp[/U] #include "abc.h" int main { printf("Key: %.8x\n", key); ............. } now when i …

Member Avatar for nbaztec
0
96
Member Avatar for iamthwee

I don't know if this is helpful for moderators but I've put together a code formatter in dotnet which automatically beautifies someone's code. Numerous times you will see newbies posting without code tags. Now the moderators can easily quote the post so the indentation is preserved, but sometimes the posters …

Member Avatar for iamthwee
3
236
Member Avatar for sharensla
Member Avatar for Fbody
0
2K
Member Avatar for alllucky7s

So this is my problem: as the title suggests, I have a Labyrinth class that contains two binary trees made of two different kinds of structs that represent different kinds of rooms. The names are in spanish, so Arbol means tree, Laberinto is the labyrinth class and Sala1 and Sala2 …

Member Avatar for alllucky7s
0
210
Member Avatar for Sandhya212

Hi, I use Fedore Eclipse IDE to run C++ code. I need to use the Scythe Statistical toolbox which implements random number generators from different functions (gamma, beta etc). I have added the toolbox's location to the path of header files in Eclipse and added the [CODE]#include "distribution"[/CODE] (available in …

Member Avatar for Sandhya212
0
161
Member Avatar for techie1991

I want to print a float number with it's digits extending to 20000 digits after the decimal i.e. if the number is 10/3, it should print 3.333333333333333333333333333...20000 or more times. So, how do I print something like that? Also, do tell the solution for C and C++ as well... The …

Member Avatar for nbaztec
0
171
Member Avatar for o.anhbayar
Member Avatar for i_luv_c++

Hey guys, I am working on a assignment. I am 90% done with the code. However I stuck on the part where i have to flip the output(vertically and horizontaly). I tried I everything i could. I tried setting the row up side down that way it would help and …

Member Avatar for Swiftle
0
82
Member Avatar for anuragcoder

This is a program that emulates a supermarket cashier. It includes Login and also uses EncryPro for encrypting customer ID. AC 2010 Main Page : code.google.com/p/advancedcashier2010 EncryPro : code.google.com/p/encrypro

Member Avatar for anuragcoder
-1
384
Member Avatar for shrutinr

Hi, I m having problem with accessing one form (project1) value in another form(project2). I m using VC++ 2008 express edition and i m doing my project pure vc++. I have to store the the project1's textBox value in project2's textBox.. Please help me to resolve this problem. Thanks in …

Member Avatar for jonsca
0
169
Member Avatar for Swiftle

Hello, I'm trying to make a circular list by modifying an existing simple-linked list. I'm having a problem when testing whether or not a node is valid. The old code looked like this: [code] return (elem == NULL); [/code] Now with a circular list I have my sentinel node and …

Member Avatar for Swiftle
0
87
Member Avatar for darelet

Hello, I'm researching in image processing and need to develop a Gabor filter in C++ and openCV. I found a good sample on which I'm basing my code. Problem is, while I've tried to emulate much as possible the other code, mine is not producing correct results. I changed a …

Member Avatar for darelet
0
154
Member Avatar for dualdigger

Hi; I made a ATL/MFC application using VS 2008 but its exe is not running on Win Xp or Windows 7. My OS is Windows XP 2002 with Service Pack 3. What could be the problem? Doing some .net Framework Service packs doesn't seem to help much as I already …

Member Avatar for amrith92
1
499
Member Avatar for tendavola

This code crashes, unless the indicated line is commented out, then it works beautifully. I cannot understand this because it is the 3rd in a series of 4 repetitions of the same thing. Any help is appreciated. Thanks [CODE] int x=0; int y=0; int lp=0; for(lp=1;lp<=4;lp++) { y=0; x++; y++; …

Member Avatar for NP-complete
0
104
Member Avatar for jwelsh

Can anyone give me any insight on how to perform a [B]lookup[/B] on a key/definition hashtable? This is the method that I am trying to use to perform the lookup: [CODE] const Object & lookup( const HashedObj & key ) const { return theLists[ hash( key ) ]; } [/CODE] …

Member Avatar for mrnutty
0
142
Member Avatar for LevyDee
Member Avatar for corby
0
55
Member Avatar for Ohta

I am new to C++ and am trying to create a doubly linked list using templates, here is the code doubleLinkedList.h [code] #ifndef DOUBLELINKEDLIST_H_ #define DOUBLELINKEDLIST_H_ #include<iostream> #include"nodeType.h" using namespace std; template <class Type> class doubleLinkedList { public: void initList(); bool isEmptyList() const; void destroy(); void print() const; void reversePrint() …

Member Avatar for mrnutty
0
92
Member Avatar for coding101

Im learning java, and having trouble with some simple code. Heres my code, can you tell me why the output is disregarding the "Correct!" statement at the end package Otm; import java.util.*; public class Otm { public static void main(String arg[]) { Scanner sc=new Scanner(System.in); String Wash="Washington"; String Ham="Hamilton"; String …

Member Avatar for coding101
0
117
Member Avatar for cecp

Is it possible to use child window created in Win32 API as a container for another windows (controls - buttons, edit fields etc.)? Or is there any other way how to use container in Win32 API? The goal is to create a simple user interface for application?

Member Avatar for cecp
0
224
Member Avatar for aleX_X

It only has one player, and no it isn't that technical on the rules of soccer. If the ball gets out of bounds there is no penalty shot, it just respawns randomly on the field. My problem is in my lookatball funtion I think, but I am not sure. Sorry …

Member Avatar for NathanOliver
0
226

The End.