48,986 Topics

Member Avatar for
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
162
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
89
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
451
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
112
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
117
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
193
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
201
Member Avatar for charqus

Hello guys. I'm new here. I've got a problem with a CLR Windows Form Application. I've started to make Mendeleev Table , and i almost finished it. Here's a screenshot: [url]http://files.uploadffs.com/d/8/9b468fc8/screenshot.PNG[/url] I've tested it on my computer ( Debug ; starting .exe ; etc. ) , it works , but …

Member Avatar for charqus
0
149
Member Avatar for timbomo

and this what is a better way too write this without getting an error if ((symb1 != 'A', 'a') || (symb2 != 'B', 'b') || (symb3 != 'C', 'c') || (symb4 != 'D', 'd'));; << endl; { cout << "Please enter an corresponding letter." << endl; } and this what …

Member Avatar for Narue
-1
178
Member Avatar for SpyrosMet

Hello. I need an example of how to pass an array of pointers to objects as a parameter to a function or a constructor. It's urgent. Please help me. Thank you.

Member Avatar for Narue
0
187
Member Avatar for sidra 100

plz chk i want to overload compound assignment operator bt its gving me some error[CODE]#include <iostream> using namespace std; class strng { char s[30]; public: strng() { strcpy(s,""); } void getstring() { cout<<"enter the sting:"; cin>>s; } void displaystring() { cout <<"the string is:"<<s<<endl; } string operator +=(string &t); }; …

Member Avatar for sidra 100
0
122
Member Avatar for justsawyer

How would I make or find a spellcheck for wordpad and I don't mean like all spellchecker I mean like a built in spellcheck like in word were you just press F7 and bam no haveing a whole other program up so how would I even start to make that?

Member Avatar for tetron
0
142
Member Avatar for miteigi-san

I'm still working on the same problem. Im doing a text-twist code for c++ as part of our school requirement. Last time, I'm having problems on delaying outputs using CLOCKS_PER_SEC and clock(), but thanks to some people, I solved that problem already. Now, Im working on the game's play mode. …

Member Avatar for tetron
0
531
Member Avatar for the_caesar

I have a make file which compiles my C++ code on RHEL5. It contains the compilation flags as listed below. Where can I get the description of following g++ compilation flags: -D_UNIX -D_REENTRANT -DUNICODE -D_UNICODE -D__LITTLE_ENDIAN__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_LARGE_FILES -DLINUX -D__x86__ -D__linux__ -D____ -D__OSVERSION__=2

Member Avatar for Salem
0
79
Member Avatar for Dizzzy

Ok so I am having a problem using the method stat(), I need to find the filesize of a file and return it as a const char *, So i would need to convert the int value to a char. This is what i have now which does compile but …

Member Avatar for mitrmkar
0
294
Member Avatar for suncica2222

I use MS VC++6 and when I type code I have problem...let's say I have 123456789 typed and I place cursor between 4 and 5 and than type "something" I get 1234something and not 1234something56789 so it deletes and wont shift right :S also enter doesnt brake new line,space,backspace.... I …

Member Avatar for suncica2222
0
87
Member Avatar for SpyrosMet

My problem is the array Field which is considered by the compiler as undeclared. I declared the array in main and i'm trying to access it through the following .cpp file. animals.cpp : [CODE]#include <cstdlib> #include "organisms.h" #include "animals.h" // class's header file // class constructor Animals::Animals() { } void …

Member Avatar for SpyrosMet
0
128
Member Avatar for sidra 100

Although for consistent and reusable design we follow Object Oriented paradigms; “structured approach” has still its worth in some imperative and critical application. wat do u people say about this

Member Avatar for jonsca
0
91
Member Avatar for suncica2222

I need function that sends to email (text.txt file) in SMTP protocol? I've googled it up but I mostly found C# or VB codes... Can I get a link or code of such function?

Member Avatar for suncica2222
0
180
Member Avatar for anishakaul

Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects, It [B]doesn't mean[/B] building a calculator or matrix multiplication programs, [B]nor[/B] does it mean building games, [B]nor[/B] does it mean dealing with databases, What I actually want is to use the …

Member Avatar for kvprajapati
0
92
Member Avatar for Zhrate

Hello, I'm seeking a solution to how to keep text updated in windows forms, currently Im using QT forms, and trying to keep my labeltexts updated but always fails, tried infinite true here and there but program always crash=\

Member Avatar for Nick Evan
0
33
Member Avatar for WargRider

Hello Everyone, As you can see, I am new to DaniWeb, and might I say this is a VERY good community. Either ways, my problem is a pretty complicated one, which I have been working on for a while now, 2-3 weeks. I am assigned by my team to create …

Member Avatar for Nick Evan
0
381
Member Avatar for cnidhi007

just the words but I am getting errors [CODE]#include<stdio.h> #include<conio.h> void main() { FILE *f1; char c='y', field[10][10]; int i=0, j=0; printf("Fields:- \n"); f1 = fopen("filename","r"); while ((c=getc(f1))!='\r') { while (c!='\t') { field[i][j] = c; j++; c=getc(f1); } c='y'; printf("%s ",field[i]); i++; } printf("i = %d, j = %d", i, …

Member Avatar for Nick Evan
0
66
Member Avatar for Mz3g

Hi everyone, I'm reading two values from my text file after that I have to find all the possible points in this row*column data. I wrote this code but I got an infinite loop as a result instead of getting N1=(1,1), N2(1,2) till the the last column which is n, …

Member Avatar for Mz3g
0
91
Member Avatar for chotib

i am confused about syntax highlighting, if i am paste text from clipboard to RichEdit, the syntax highlighling doesnt work perfectly. here is my code : [code]//On header(FWDesign.h) define TStringList *htmltag; TStringList *atribut; //On FormCreate void __fastcall TFWDesign::FormCreate(TObject *Sender) { htmltag = new (TStringList); atribut = new (TStringList); htmltag->Add("html"); htmltag->Add("body"); …

0
54
Member Avatar for angel6969

I am having trouble with getting the math from paper to C++ code ... I am asking for user input for a numerator and a denominator .... the function then treats the variables as a fraction and reduces it to the lowest term ..... I had some math in the …

Member Avatar for angel6969
0
272
Member Avatar for alcay

help me how to do a word scrolling like a snake game without hitting any keys.

Member Avatar for Ancient Dragon
-2
82
Member Avatar for sexyzebra19

Could someone please have a look at my code and tell me anything that can be improved? Anything at all - layout, using headers etc? Thanks in advance! [code=php] #include<iostream> #include<vector> #include<cmath> #include<iomanip> using namespace std; typedef double(*fun)(double); //Declare functions double gauss(fun f, double &a, double &b, int &n, double …

Member Avatar for jonsca
0
129
Member Avatar for Ana_Developer

Before I proceed with the code implementation, I need to find the error that this program initiates. I can't figure out the solution, I guess thats what happens after not using c++ for 4 years... The compilation errors I'm getting are all of this type (11 of them): Error 9 …

Member Avatar for Ana_Developer
0
193

The End.