49,761 Topics

Member Avatar for
Member Avatar for karang
Member Avatar for serkan sendur
0
143
Member Avatar for Lukezzz

I have assigned a backgroundimage (JPEG) to a button. Is it possible to programatically make this image visible = true or visible = false ? Like you have this beginning: [code] button1->BackgroundImage-> Visible = true, Visible = false in any way ? [/code]

Member Avatar for Lukezzz
0
57
Member Avatar for dextrew

create a program that includes two functions named calcavg() and ariance(). The calcavg() function should calculate and return the average of the values stored in an array named testvals. The array should be declared in main() and include the values 89,95,72,83,99,54,86,75,92,73,79,75,82,73. the variance() function should calculate and return the variance …

Member Avatar for William Hemsworth
0
192
Member Avatar for Lukezzz

I try to find an event for if you rightclick and leftclick a buttoncontrol in a Form application. Simply, to detect if it is the left or right button on the mouse that is clicked. What I want to do is that if I rightclick a button I want the …

Member Avatar for Lukezzz
0
984
Member Avatar for mrinal.s2008

Hi, I'm writing a template class as below. Trying to add a funtion to browse all the elements of an instance, that needs a vector iterator. When I compile the code getting a list of errors. Two of them typically draw my attention. The Error reads [B][COLOR="Red"]error:[/COLOR][/B] dependent-name ` std::vector<T,std::allocator<_CharT> …

Member Avatar for mrinal.s2008
0
207
Member Avatar for Manutebecker

I've been reading up on templates and they just seem like so much hastle for so little reward. I can't find anyway to effectively use it over vectors. I am just having a lot of trouble learning them because the concept seems so weird.

Member Avatar for ~s.o.s~
0
139
Member Avatar for nida afaq

if i want to check that wether the entered character is char type or int type,how can i do that?

Member Avatar for Narue
0
109
Member Avatar for karang

Hi I want the format of the date like Fri, Dec 12, 2008 Earlier I used CTime today = CTime::GetCurrentTime(); CString chdpl = today.Format("%A, %B %d, %Y" ); for Friday, December 12,2008 But I don't know how to specify Fri in format Regards Karan

0
103
Member Avatar for karang

Hi How to get WeekdayName in VC++ I have searched on net and found the use of CTime::GetCurrentTime(); But this is the lengthy method Is there any shorter one. Kindly advice Regards Karan

Member Avatar for Freaky_Chris
0
188
Member Avatar for Dannielf

I'm doing a program that shows which tickets have been sold for an auditorium. I am a beginner to c++ so I am not sure how I can do the following: a) Allocate an input with a character (e.g. when I enter 'A10' .. how do I allocate 'A' to …

Member Avatar for mrinal.s2008
0
91
Member Avatar for lulusweety

I got a code. But it is not working compilation error is - undefined symbol try , throw , catch. I am using C++ compler version 3.0. Is this version not enough. Or any header file is to be included for exception handling. Please help me

Member Avatar for Freaky_Chris
0
163
Member Avatar for karang

Hi I am using the code to get the current date CTime aNow = CTime::GetCurrentTime(); char month[3]; char day[3]; char year[6]; char todaysdate[30]; itoa(aNow.GetMonth(), month, 10); itoa(aNow.GetYear(), year, 10); itoa(aNow.GetDay(), day, 10); strcat(todaysdate,month); I am getting value of month but apart from that I am also getting an unexpected character …

Member Avatar for cikara21
0
143
Member Avatar for akmed

I am doing C++ assignment, it invols designing a program where the user can put binary numbers and gets a word in result. I have done the first part of the program but i am strugling to do the the last to tasks. Here is what i have done so …

Member Avatar for AHUazhu
0
121
Member Avatar for karang

Hi I am using Itoa function to convert int to string. CTime aNow = CTime::GetCurrentTime(); char* month; itoa(aNow.GetMonth(), month, 10); But I am getting error Unhandled exception at 0x00573deb in App_Name.exe: 0xC0000005: Access violation reading location 0x0000323d. Am I missing something Regards Karan

Member Avatar for karang
0
102
Member Avatar for rkumaram

Hi, I want to know what exactly happens when constructor fails. Do we have mechanism which will provide us information regarding failure of constructor other than exception. What happens with the memory already allocated to the object when in some circumstances construction of object fails.

Member Avatar for rkumaram
0
168
Member Avatar for d1s_0n3_guy

I was trying to create a simple struct array database that would be able to look up a user id and print out there first name, last name and age. So I've created a text file with 10 simple names ...here is my code ...can any one help me with …

Member Avatar for ArkM
0
116
Member Avatar for Trmsk

Hi, everyone. I'm trying to use gettext in complicate application. It consists of C++ code wrapped in python interface via sip. Is it possible to bind textdomain once in python code, and don't use this function in C++ code? Now I have to use this function twice like is shown …

Member Avatar for Trmsk
0
146
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> #include <cmath> using namespace std; const float G = 32.17; // function declaration float caltime ( float,float, float ); float calheight ( float,float,float); // main function int main() { float theta, cotheta, sitheta, distance, velocity, time, height; cout << " Input the angle of elevation : " << …

Member Avatar for vmanes
0
104
Member Avatar for nitro

please tell me how i can code a BST in c++ ? i know that each node is like that of a linked list where one 'box' stores the item. another two boxes stores the address/pointers to the two siblings. but how can i transform this into code? like this? …

Member Avatar for AHUazhu
1
140
Member Avatar for clb8372

[QUOTE]I was given feed back from my instructor and I am not sure how to implement these changes. Here is the feedback: [LIST] In you MAIN module you call a WELCOME MESSAGE module but you don't have one defined in the code. [/LIST][LIST]Why do you have a variable named ItemName? …

Member Avatar for VernonDozier
0
271
Member Avatar for anbuninja

so i think we might have nested loops in my upcoming final. so im practicing some challanges. heres a program sample For how many years have you collected rainfall data? 2 Enter the rainfall (in inches) for month 1 of year 1: 4 Enter the rainfall (in inches) for month …

Member Avatar for deviantrunner
0
181
Member Avatar for ItecKid

Hello, I am trying to write the merge sort algorithm. My code is as follows: [code=c++] #include <iostream> #include <cstdlib> using namespace std; void m_sort(int list[], int temp[], int left, int right); void merge(int list[], int temp[], int left, int mid, int right); void mergeSort(int list[], int size) { int …

Member Avatar for ItecKid
0
131
Member Avatar for brixton

Hello, I have the following setup, where vertexArray is a pointer to float (float*). It is supposed to check if the pointer has been allocated memory for. If it hasn't, it should allocate memory, but if it's already been done it will go on to put values in the array. …

Member Avatar for ArkM
0
73
Member Avatar for Titanius

Hello , I am a noob in C++ coding and wondered if anybody here can please help me, I would really appreiate it I have to create a separate function within a program to check if the date entered by the user match the month he entered E.G= if he …

Member Avatar for Titanius
0
167
Member Avatar for ninja_gs

can we do sorting in chars in c++ like if acdb is input and abcd as output any one provide me prog for this ........... or Sample code: plz...........

Member Avatar for Freaky_Chris
0
107
Member Avatar for Yaserk88

Here is what I have right now. I created a loop that loops through 6 times. Each time it loops, it spits out a different answer at the end, then when it gets back to the top it starts at 0 and {0,0,0}. [QUOTE] ........ double U[6]={0,0,0,0,0,0}; double g[6][3]={{0,0,0}, {0,0,0}, …

Member Avatar for Yaserk88
0
92
Member Avatar for ninja_gs

I have problem in getting outputs plz give me suggetion or correct error if any and make it working....... plz help......... there is no error........in this program.........when i compiled. [code=c++] #include<iostream> #include<cstdio> #include<cstring> #include<cstdio> #define IS_STRING 1 #define IS_CHARACTER 2 #define IS_INTEGER 3 #define IS_FLOAT 4 //using std::cout; //using std::cin; …

Member Avatar for ninja_gs
0
118
Member Avatar for dandeliondream
Member Avatar for dandeliondream
0
95
Member Avatar for Frederick2

I’m trying to learn how to use C++ templates, and I thought I was grasping it all ok until I decided to try to pass a template defined object variable as a function parameter. Having all kinds of troubles with that. I’m using a typical example of a parameterizd array …

Member Avatar for Frederick2
0
3K
Member Avatar for knish

Hi, I have a question for you, if you would be kind to answer it though i have asked it here. Hey, i had your email id. 1) To apply gravity on an object, do I need to make a rigid body out of the existing object in maya and …

Member Avatar for Ancient Dragon
0
87

The End.