49,761 Topics

Member Avatar for
Member Avatar for misfits86

Input a list of positive numbers, terminated by 0, into an array Numbers. Then, display the array and the largest and smallest number in it. Process, Input, Output information with variable names and type and complete pseudo code of the program (with declaration of variables, calling of modules, any modules, …

Member Avatar for misfits86
-2
191
Member Avatar for yun

pdcurses works well with code::blocks but is there any way to use pdcurses with visual Studio, plz help.

Member Avatar for miguelbezerra
0
2K
Member Avatar for wen30

Hi , i got an application API interface written in C++. i wanted to inherit the interface in C#. can somebody be kind to teach me how may i write this code in C#? [CODE]HRESULT _stdcall ExampleFunction() [/CODE] thanks!

Member Avatar for kvprajapati
0
71
Member Avatar for miteigi-san

I've been reading sites that talk about clock() but I don't really get an answer by doing that. I mean, I still need to confirm and know some more stuff. I hope you could help me... Here's what i would like to know: 1] what does the value returned by …

Member Avatar for mrnutty
1
616
Member Avatar for terabithia

So i suppose to do some Matrix calculator and perform some calculation by using classes. But we need to copy the square matrixes to other matrix to perform the calculation without changing the actual value. So we can use the same matrix and just changing the form to upper or …

Member Avatar for Lerner
0
1K
Member Avatar for tomtetlaw

when i run my code, i get lots of undefined class errors, even though i have defined and included the files properly(i think). here are the errors i'm getting: ------ Build started: Project: engine, Configuration: Debug Win32 ------ Compiling... baseentity.cpp c:\documents and settings\tom\my documents\visual studio 2008\projects\engine\engine\globals.h(13) : error C2079: 'CGlobals::controller' …

Member Avatar for JasonHippy
0
148
Member Avatar for Violet_82

Hi there, I am trying to get my head around this simple program, but there are things that really don't make sense... here's the program: [CODE]// Fig. 3.5: fig03_05.cpp // Define class GradeBook that contains a courseName data member // and member functions to set and get its value; // …

Member Avatar for Violet_82
0
148
Member Avatar for CollDet

Hello. I'm writing a manager class that should handle a vast and expandable group of classes. The manager class uses a hash_map to store all these etherogenous objects. The objects are all derivations of a base class Object, and of different "interface" classes which are used to define required functions. …

Member Avatar for Agni
0
98
Member Avatar for sidra 100

plz guide me i m having some error at line 28[CODE]#include <iostream> using namespace std; class str { char s[30]; public: str() { strcpy(s,""); } string getstring() { cout<<"enter the sting:"; cin>>s; return s; } void displaystring() { cout <<"the string is:"<<s<<endl; } string operator+= (string &t) { strcat(s,s.t); return …

Member Avatar for dusktreader
0
125
Member Avatar for Jeronim

I have read a lot of topics with these subject many of theme where on these forum but what ever i try i cant get this working. I have tried 4 or 5 function for converting string to float but i always get compiler error left from xxx must be …

Member Avatar for dusktreader
0
159
Member Avatar for Jennifer84

If you have a form application and open another form from a buttoncontrol on "Form1", this will open another form but this form will also be in the "Taskbar" on your desktop. So you have 2 forms in the "Taskbar" (What I am after is to still only have one …

Member Avatar for scott.vass
0
140
Member Avatar for vader1231231

[CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { srand (time(0)); int count = 0; int random_num = (rand () % 100) + 1; int high_num = random_num; int low_num = random_num; float total = 0.0; while (count < 100000){ count++; random_num = (rand () …

Member Avatar for Narue
0
58
Member Avatar for faizanahmedin
Member Avatar for jonsca
0
86
Member Avatar for n.utiu

Hi! I am quite an active programmer. I work allot for school so i need a good IDE. I a[COLOR="red"][/COLOR]m currently working on Windows with Dev C++. Dev is quite a good compiler and editor but IMO the debugger...sucks. So I would like to know your opinion on Dev, and …

Member Avatar for abdelhakeem
0
87
Member Avatar for mmasny

Hello, I'm not much of a programmer and will probably never be, but am just curious. Can I initialize a pointer with a constant value different than NULL? I.e. can I tell my pointer to point at one particular memory cell? It's a number so why couldn't I? I know …

Member Avatar for Salem
0
98
Member Avatar for SpyrosMet

Hello. Can someone tell me what will happen if i have an array Ar[5][5] and a pointer ptr = Ar[0][0] and try accessing the second line of Ar throught ptr by increasing it by 5? I mean ptr+5 ==Ar[1][5] or something else?

Member Avatar for Salem
0
100
Member Avatar for matharoo

I am making a scientific calculator as an assignment in my class. I am using switch case for all the operators like +-*/ , and I am calling them with a single keyword like '+' for addition and so on. The problem is that when i try to use more …

Member Avatar for ajmacca
0
869
Member Avatar for cybergirl

Hey guys, I'm new here. And I was wondering if you could help me with a question i have. You see i have to write a C++ program that plays the game of tic-tac-toe. And the class contains as private data a 3-by-3 double subscripted array of integers. And i …

Member Avatar for codename09
0
1K
Member Avatar for Lukezzz

I am trying to declare a Doublebuffered panel in C++ I can only find the declaration for this in C#. So I wonder how this could be converted to C++ ? [code] public class DoubleBufferPanel : Panel { public DoubleBufferPanel() { // Set the value of the double-buffering style bits …

Member Avatar for Lukezzz
0
384
Member Avatar for arithehun

I am trying to create an expression evaluator to expand my C++ knowledge. It is supposed to evaluate 5(x+7)-2. Here is the code: [code=c] #include <iostream> #include <stdio.h> #include <time.h> using namespace std; time_t now, later; void sleep(int delay) { now=time(NULL); later=now+delay; while(now<=later)now=time(NULL); } int main(void){ //It finds an error …

Member Avatar for arithehun
0
180
Member Avatar for Jeronim

hi! I have created a class with 2 constructors and whenever i try to access it i got the error no match for to call int& here is the code [CODE]class A{ public: A(){}; A(int i); int moj_broj; }; A::A(int i):moj_broj(i){} int main() { A something; cout<<"before "<<something.moj_broj<<endl; something(5); cout<<"after …

Member Avatar for JasonHippy
0
110
Member Avatar for mo94015

need to change this from availcredit01.cpp to availseats01.cpp and make the necessary adjustments 1)ask user to enter the room size 2)get room size 3)ask user to enter number of students 4)get enrolled 5)set avilseats to room size minus enrolled 6)display the available sets 7)halt and return to operating system i'm …

Member Avatar for Narue
0
97
Member Avatar for nucoder

Hey guys I need help with a program for school. It involves a menu to access sub programs and use of recursive techniques as well as 2D arrays and traversing. Here's the requirements: In this program, you are to create a menu-driven program that allows the user to execute one …

Member Avatar for nucoder
0
167
Member Avatar for esesili

Hi All, When I try to compile the code below, I get error message " error: ‘MAX_IMG_HEIGHT’ undeclared here (not in a function)". I tried to declare them in different ways but it does not work. Does anyone have idea ? I appreciate for helps, The code is: [CODE]/* ImagExper.h …

Member Avatar for dusktreader
0
90
Member Avatar for Jfunch

Hi i'm writing this program where the user chooses whether to print out a square, a forward triangle, and a backwards triangle using the "*" character. I got the square and the backwards triangle to work and the forward triangle, but i cant figure out how to do the back …

Member Avatar for mrnutty
0
456
Member Avatar for timbomo

this message is coming up i cant get it off ERROR C2447 [CODE]#include<iostream> using namespace std; int main(); { int item_purch, numb_of_purch, quit; char ('A' || 'a'), ('B' || 'b'), ('C' || 'c'), ('D' || 'd'); double mugs, teeshirts, pens, tot_mon, curr_cash, mon_spent; cout << "Welcome to the Southern Illinois …

Member Avatar for Lerner
0
123
Member Avatar for Lukezzz

I have a problem with flickering for a lot of buttoncontrols in a panel. I have put a panel on the form that holds 200 buttoncontrols. When switching from one panel to this panel, all 200 buttoncontrols flickers for about 2 seconds. I have red that if setting [B]DoubleBuffered = …

Member Avatar for Lukezzz
0
118
Member Avatar for mimran

hi can some one help me I want to take url name in textbox from user and when he press enter key that url should open. I want code of this program in c++ visual studio 2008.

Member Avatar for kdcorp87
0
68
Member Avatar for MJaske

Hey guys, I'm almost done with my homework assignment in an intro c++ class. My assignment found here: http://faculty.cs.niu.edu/~byrnes/csci240/pgms/240pgm2.htm My problem is with the output of the roots. If you run my program with the same numbers as sample output #2 in the assignment, I only get one root to …

Member Avatar for MJaske
0
194
Member Avatar for SpyrosMet

I need to make a program that takes one character as an input and instantly continues execution and the time limit for the user to enter that character is 2 or 3 seconds. please help me and if possible ppost an example. Thanks for your help.

Member Avatar for Duoas
0
206

The End.