51,593 Topics

Member Avatar for
Member Avatar for briantrumpet

How do you stop forms from being movable and resizeable after you have maximized them in code.(this only happens if the maximize box is disabled) If you maximize a form with the maximize button it does not let you move or resize the form.

Member Avatar for DdoubleD
0
1K
Member Avatar for daiceman

I'm having trouble getting this situation to work: I've got a gui that will take the user's input, and pass along the string to a function in another class, called Command(String^ str) The command will process the input, and print off some statements using a function in the GUI's class …

Member Avatar for daiceman
0
82
Member Avatar for dmm

Let's say I'm writing to a file a series of integers like this: 4 3 2 1 0 After writing the last number (or the last line), can I delete that last one?

Member Avatar for William Hemsworth
0
79
Member Avatar for lotrsimp12345

1>c:\users\...\documents\visual studio 2008\projects\generic bst container\generic bst container\my_bst.h(80) : warning C4717: 'my_bst<int,int>::insert_sub' : recursive on all control paths, function will cause runtime stack overflow TEST.CPP #include <iostream> #include "my_bst.h" using namespace std; int main() { my_bst<int,int> ab; ab.insert(5,10); return 0; } MY_BST_NODE.H #ifndef MY_BST_NODE_H #define MY_BST_NODE_H #include <iostream> using namespace std; …

Member Avatar for Kontained
0
198
Member Avatar for fadia

Hi guys.. I've started but don't know what to do next.. can someone please help. This is the question.. Q:- Write a program to define a class to implement the time of day. A clock gives the time of day, let us call this class ClockType. Furthermore, to represent the …

Member Avatar for fadia
0
305
Member Avatar for AnnaHa

Hi! I need a bit of help with an array sorting issue. I would like to sort the contents of an array (double type values) in ascending order. The problem is that the array size is unknown - the array itself is the result of another algorithm carried out within …

Member Avatar for Clinton Portis
0
76
Member Avatar for NinjaLink

Hi all, I am trying to reverse the numbers in an array using recursion, however, I am receiving an error that I can't figure out. If possible, I need some assistance on it. [B]Error:[/B] line 27 incompatible types in assignment of `int' to `int[5]' [I]intArray = reverseArray(intArray,low,high);[/I] line 57 invalid …

Member Avatar for basitkhan
-1
2K
Member Avatar for nguerrero03

I've long looked at this site for advice, but I'm stuck now. I have an idea of WHAT I need to do, but don't know exactly how to do it. YES this is homework. NO I'm not asking for anyone to completely do it because I need to learn this …

Member Avatar for nguerrero03
0
544
Member Avatar for Afupi

I am very new to using the STL list library. From what I have been reading here and other places on the web is that I have to create a compare function to use within the sort member function of list. The reason being that the list node's contain structures. …

Member Avatar for Afupi
0
333
Member Avatar for StaticX

Hi i am in need of an explanation to the following: I have created a program to take in a string(stored in a character array). With my string,i must pass it into a function and 2 functions i have created are stringLength and toUpperCase.(i know there are string functions to …

Member Avatar for StaticX
0
98
Member Avatar for ybean4

Hi, I'm looking for a way to write programs for a pc on a palm and "compile" them (check them for compiling errors without actually creating an executable). Any ideas? Thanks

Member Avatar for ybean4
0
77
Member Avatar for pac-man

Hi guys, I have a static vector which holds objects of a class. I want this vector to be singleton i.e. be the only vector of this type which will indefinitely store the relevant objects. Unfortunately, a problem arises whereby, when I access the vector from a different class, for …

Member Avatar for pac-man
0
844
Member Avatar for acdougla17

OK, so I have this project to do and cant figure it out. I am not positive on calling functions correctly and I am kind of lost when it comes to parameter passing. So my program needs to read a text file 1 integer at a time, find out if …

Member Avatar for restrictment
0
155
Member Avatar for react05

How would I call the function so the program runs through each option. I've got the program done but everything i run it, the options do not run. Any help? Thanks. [code]#include <iostream> #include <fstream> #include <iomanip> using namespace std; void readMatrix (double x[][30], int & m, int & n); …

Member Avatar for react05
0
116
Member Avatar for dmm

can I open a file and then close it in a loop? I tried but it doesnt seem to work. :(

Member Avatar for shakunni
1
94
Member Avatar for adino2

Hi , just would like to ask on a few questions Is it possible to make a voice to text system without using the Speech SDK ??? If yes, can anyone provide me with the info on that? What can be used?

Member Avatar for Diamonddrake
0
82
Member Avatar for newbie_to_c

Hi everyone, I dint not post the complete program, just the most relevant parts. I think the problem is with conversion part towards the end . I cant print the correct values to the text or edit box on the GUI, it prints out some weird values. Thanks in advance …

0
56
Member Avatar for PopeJareth

Can Someone tell me why these files won't compile on unix but work fine (mostly) in windows? It looks like unix-land doesn't load the variables from the inherited class QueueArray into the proper scope. prog5.cpp is supposed to create 3 different types of Deque classes. each Deque inherits from ArrayQueue …

Member Avatar for PopeJareth
0
256
Member Avatar for scc123

Hi, I am new with C++, can anyone help me with the following code. I will be highly thankful. Write a recursive function that has two inputs, first and second, which both are strings(from ). The function should print all rearrangements of letters in first, followed by second. For example, …

Member Avatar for Rashakil Fol
0
104
Member Avatar for mitchstokes225

I have tried the two ways below to get my functions to call and run, but VS gives me the error error c2660: ..... function does not take 0 arguments First way tried [code] //Michelle CSI 130 Lab 11 Part 2 Section B //Digital logic and Boolean algebra #include <iostream> …

Member Avatar for mikiurban
0
143
Member Avatar for ranjithgoud

hi guys, i am ranjith intrested in writing c c++ progs i hav a doubt that can i write a c or c++ program to excute at a given time thanks

Member Avatar for abdelhakeem
0
924
Member Avatar for tintin.iitk

class A { A& a; public: A(): a(* new A()) {} }; There is a huge flaw here and before I compiled this code I was hoping that it will fail to compile, But it didn't. At first I felt like I had a big flaw in C++ as it …

Member Avatar for gusano79
0
245
Member Avatar for jjf3rd77

I keep getting errors in my code. I can enter the first number 1 fine but then is says that letter c or a is not initialized. What am I doing wrong? This is what i have so far [CODE]// Exercise 8.13: ComparingRates.cpp // Application that calculates the amount of …

Member Avatar for mrnutty
0
122
Member Avatar for Iam3R

i have just written a small program on DEV C++. i have been using it for couple of months but i never observed this error. [CODE] #include<stdio.h> int main() { printf("Welcome\n"); system("PAUSE"): return 0; } [/CODE] could not create makefile I/o error 32 any idea? what does that mean

Member Avatar for Iam3R
0
96
Member Avatar for dmm

Can I change a file stream object's read position in C++? I mean I have a file with a series of integers separated by a newline character. Can I read the first five integers into some variables and then move the read position back to read the fifth integer one …

Member Avatar for dmm
0
650
Member Avatar for wangatang126

Hi i have a binary function search program where the user enters a index of numbers, then enters the number he wants to find. However my program wont compile and says the subscripted value is neither an array or pointer. Help me out please. Here is what ive got: [CODE]# …

Member Avatar for stephen186
0
104
Member Avatar for Ashishinani1756
Member Avatar for NicAx64
0
110
Member Avatar for raigs

I get this g++ warning when I use the [I]-Wconversion[/I] flag. Anybody know how to write this "correctly" ? [QUOTE]a.cpp:15: warning: conversion to ‘float’ alters ‘double’ constant value[/QUOTE] [CODE]#include <iostream> using namespace std; float VAR1(float VAR2) { int VAR3 = (int)(VAR2 * 1.045 * 1.55); // Result must be an …

Member Avatar for JasonHippy
0
1K
Member Avatar for NitaB

Hi, my name is Anita. I'm new to this forum and I'm here because I am utterly frustrated with this program that I have been working on for days. This program is supposed to ask the user a series of arithmetic problems and report on how the user performs. The …

Member Avatar for AAAKsu
0
187
Member Avatar for atch

Hi, I'm trying to initialize string with iterators and something like this works: [code=c++] ifstream fin("tmp.txt"); istream_iterator<char> in_i(fin), eos; //here eos is 1 over the end string s(in_i, eos); [/code] but this doesn't: [code=c++] ifstream fin("tmp.txt"); istream_iterator<char> in_i(fin), eos(fin);/* here eos is at this same position as in_i*/ //moving eos …

0
43
Member Avatar for Muathelbou

Anyone who can help me please do I am totaly lost. this is the homework: You will implement a set of functions that will analyze and/or manipulate character data. You are provided with a header file called charRoutines.h that contains the declaratins (prototypes) for the functions that you are to …

Member Avatar for tintin.iitk
0
227
Member Avatar for samsons17

how to display this output ? ********** ********* ******** ******* ****** ***** **** *** ** * ** *** **** ***** ****** ******* ******** ********* ********** thank you...

Member Avatar for tkud
0
369
Member Avatar for programmer01

hey guys, I have written a calculator program in C++. It suppose to get the input from the user which is a string. Some thing like ((5+3)/2)*5. If you input that expression it gives 20, which is the correct answer. The problem i am having is that it cannot compute …

Member Avatar for Naira88
0
2K
Member Avatar for johndory

Hello, I really need your help. I am writing a program to create a polynomial using linked list. The program is to perform different operations such as addition, subtraction, multiplication. I am however having problems setting the coefficients of this polynomial. I have an idea on how to implement the …

Member Avatar for fireprogramer
0
4K
Member Avatar for eliza2044

Hey guys, Does any of you have a clue how can I install the sqlite3 library on my computer? I'm using netbeans for building my application which now needs to handle a database. I already tried to compile the sqlite3 source code but the make command ends into a huge …

Member Avatar for eliza2044
0
497
Member Avatar for urmi

Hi; I want to connect MySQL database from turbo c++.I have installed MySQL 5.0.Also MySQL c++ connector.But it's not working.How can i connect.Any body have any procedure for it? Is it possible to connect it directly without any connector?If yes,then how?

Member Avatar for kvprajapati
0
103
Member Avatar for xueyingkoo

Hello, i already have C++ class few month , but i still find difficult to write the problem analysis on this project ... This is my question ... "Problem Specification A small scale Airline Company bought a new computer to computerize their airline ticket booking system. The company’s CEO asked …

Member Avatar for Skeen
0
2K
Member Avatar for python.noob

Hi friends, I'm using mandriva 2009 spring. I have a problem in compiling wxwidgets program in anjuta. I've done the things as said in the tutorial file->new->project->c++ tab->wxwidgets->project name,author->forward->folder name etc.->apply. It generated make files and all.It has a program to show a window as well in main.cc. [CODE]#ifdef HAVE_CONFIG_H …

0
61
Member Avatar for atch

Hi, Is it possible to have class template in non template class? I'm trying something like this and I'm getting errors: [code=c++] class Non_Template { //...other stuff public: template<class T> class some_Template; //declaration }; template<class T> //something WRONG with this syntax Non_Template::some_Template { }; [/code] Err msg I'm getting: error …

Member Avatar for atch
1
110
Member Avatar for samsons17

how to display this using for loop ? ***** ***** ***** * * ***** * * ***** ***** thank you for helping.

Member Avatar for restrictment
-1
359
Member Avatar for samsons17

#include <iostream> using namespace std; int main () { int a,b; for (a=1; a<=10; a++) { for (b=1; b<=10-a; b++) cout<<"*"; for(b=10; b<=a; b++) { for (b=1; b<=a; b++) cout<<"*"; } cout<<endl; } system("pause"); }

Member Avatar for VernonDozier
0
95
Member Avatar for yatman

Hi, I am trying to write strings to a file line by line and trying to format the output so that the alignment is proper. output should be it should appear in the output file as david 10 15 16 sam 11 15 16 but appears as david 10 15 …

Member Avatar for yatman
0
171
Member Avatar for bushimports

How can I draw text in a glut window with the keyboard; I have tried doing cin with [CODE] void TextBox::Keys(unsigned char key,int x,int y){ switch(key){ case 13://enter key cin >> String; DrawString = true; break; case 27: exit(0); break; } [/CODE] and then in the draw function [CODE] fontx …

Member Avatar for mrnutty
0
2K
Member Avatar for luvsom

I have to create a program that accepts 3 user inputs (hours, minutes, seconds) and then asks the user whether they want it to show in standard or military time. The main program should make 2 calls to the function DisplayTime, whether its true if they want standard time or …

Member Avatar for restrictment
0
144
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 restrictment
0
838
Member Avatar for dark1806

hi i m beginer in C++ programing.....can someone help me with a problem : i have to program the linux comand hostname in C++.....the c++ program should return the local hostname....thx

Member Avatar for Ancient Dragon
0
64
Member Avatar for newbie_to_c

Hello everyone, I need help with this code, which does not work properly. It prints fine at the first instant and when I convert it into a double it prints some unknown value. I am trying to get the maximum of all the values in the row. First: I cant …

Member Avatar for newbie_to_c
0
83
Member Avatar for blamp

can someone help me figure out why my output is incorrect any help would be apprecaited [code]#include<iostream> using namespace std; class fractions { public: fractions fractions :: operator+(fractions f); fractions fractions :: operator-(fractions f); fractions fractions :: operator*(fractions f); fractions fractions :: operator/(fractions f); fractions addFraction(fractions); fractions subFraction(fractions); fractions multiFraction(fractions); …

Member Avatar for jonsca
0
105
Member Avatar for konefsta

im new with C++ . i was in java but now im learning C++ and i am not very good at it . i am making a program about spam and ham emails . i have all the files in the same directory . i created Ergasia1.cpp , Ergasia1.h , …

Member Avatar for jonsca
0
185
Member Avatar for ellimist14

ok I have to do standard database functions (add, delete, update records. print one record, print all records, etc) with a binary file. The only problem I'm having is, obviously with singular operations (add, update delet and print one) you have to perform a search to find the record you …

Member Avatar for Ancient Dragon
0
106

The End.