199,114 Archived Topics
Remove Filter ![]() | |
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. | |
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 … | |
when i try to do the following, [code] double root_value, c; int d; d=0; printf("%.0f", root_value); for(c=2; c<root_value;c++) { if(c !=root_value) { if(fmod(root_value,c)==0) { d = 1; } } } if(d == 1) { printf("not prime\n"); } else printf("is prime\n"); [/code] now its part of a program to determine if … | |
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 … | |
I m using Python 2.5. The dll i imported is created using clr. The dll function is returning a string. I m trying to apply "partition" attribute to it. I m not able to do it. Even the partition is not working. I think "all stringd returned from clr are … | |
Hi, I've been looking all over, and I can't seem to figure this out. I have to generate a random number within the range of -99 and 99. I know about RANDOM, but I don't know how I could use that to keep the numbers within this range. Any help … | |
I am not experienced with javascript.I made a from with tabs.When i Click on order tab regorder.jsp in not coming.here is my codes. <div class="TabView" id="TabView" > <div class="Tabs" style="width: 500px;"> <a style="color:blue;"><font face="times">Order Form</font></a> <a style="color:blue;"><font face="times">Accounting</font></a> <a style="color:blue;"><font face="times">Services</font></a> <a style="color:blue;"><font face="times">Members</font></a> </div> <div class="Pages" style="color:blue; width: 900px; … | |
[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 : " << … | |
hi, i hope someone can help here with my problem. i have a file with this structure: testtt Login-Lat-Group = CNAme Auth-Type = whatever testt Login-Lat-Group = CName Auth-Type = whatever test Login-Lat-Group = CName Auth-Type = whatever i need now a command (e.g. awk or sed) which deletes the … | |
so I have this working procedure that is basically like func. 09h of int 21h except it terminates at 00h, and it uses 01h-04h as control characters that determine the style of the text. I wrote it in the main procedure of a test program to get it working, and … | |
[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? … | |
Hi all, I need help in designing a database for an equipment finance system I want to implement as a project. This is how the system will work. 1. A client would make an application to a finance company for a loan to buy a machine. The loan will be … | |
Here is the problem, DEPARTMENT STORE SALES FILE DESCRIPTION File name: DEPTSALES Sorted by: Department Field Description Data Type COMMENTS Transaction Number Numeric a 6-digit number Amount Numeric 2 decimal places Department Numeric a 3-digit number Using Visio create the flowchart that shows the logic for a program that would … | |
Hi all, I'm new to VB and I am doing a lottery program. I managed to produce 7 random numbers but I am stuck with the sorting. All I can think of is to use if statements to do comparsion, but that will be a long way to do it … | |
please can someone help me with this HW the instructions are : # The computer should ask the player for the largest possible value which could be generated (N) # The maximum number of guesses should be set equal to 1/2 N. (Don't prompt the user). # When the game … | |
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 … | |
plz explain how to do this the proper way. [CODE]main.c ===== struct names{ // definitions ----- ---- ---- } struct names x; function1(&x); file2.c ====== function1(struct names *x){ ---- ---- ---- }[/CODE] am getting warning: [B]'struct names' declared inside parameter list[/B] | |
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 … | |
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. … | |
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 … | |
I have a datatable (sqltable) and a datagrid (dgData) if the user click the datagrid header the grid changes sort order but when i try to get [CODE]Dim Row As DataRow Row = sqlTable.Rows(dgData.CurrentCell.RowIndex)[/CODE] or [CODE]Dim Row As DataRow = sqlTable.Rows(e.RowIndex)[/CODE] the row returned is not the row selected in … | |
Hi, I have created a HTML template for sending emails to the clients. I read the values from the database and fills them in the template. Now i want to read the contents of this HTML template. Can anybody suggest me how to do this? Thanks in advance Regards Exelio | |
Hi, just a quick question from a newbie! I have recently inherited an asp.net website from an ex-colleague and I have a question regarding db connections. I am using vb.net for code behind with an oracle 9 database. The site at the moment, sets up a database connection GDBConn in … | |
Hello, I'm a bit of a newbie here, so would appreciate some help on this one! I want to write a program that will display a map on a windows form. The map is built up of a 2-dimensional array of objects (either Land or Water), of size [1000, 1000], … | |
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........... | |
im trying to right align data that i have written to file with fprintf, but im not sure how i would do so in C. ive looked around and there are many solutions for C++ and C# but havent found one for to right align in regular C. | |
I've installed with my tomcat, connected to sql with jsp and did the same thing with asp.net I've checked the speed with for loops as seconds but I've posted to be sure, thanks. | |
How can I send a Crystal Report to Email through Active Server Pages (ASP)? if some one can post a sample code for it, i will really thankful to him. i am using seagate 8.5 and asp 3.0. thankyou in advance regards | |
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}, … | |
How do I use classes in python? Do I import them? For example: class classA: def __init__(self): print "class A" class classB: def __init__(self): classA_list = [] for i in range(5): classA_list.append(classA()) #list of classA objects This works if I have both classes in one file. But if the classes … | |
Hey guys I'm trying to see if someone can give me a nudge in the right direction here. All I need is two simple procedures: 1. Load XML Entries into TListBox 2. When ListBox is clicked, find string pointing to filename so I can display the item's associated file. My … | |
Hi there, I pulling my hair out with a SQL statement I am using for a query in Access. I have a list box which pulls data from my table. I am using the list box to allow the user to select a record which will then be pulled up … | |
Hi guys.. Im stuck on my project and i urgently need ur help. i want to randomly generate some moving rectangles (one after another moving in the same direction). this should occur infinitely. So far i have only managed to create one moving rectangle. i hope u guys can help … | |
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; … | |
We have developed asp.net project in VS2005, framework 2.0.50727 using C#, in that we are using a third party library(Map Quest) to display the Map. When we are calling a function from dll, we are getting the following error (configuration error) . Message: That assembly does not allow partially trusted … | |
[StructLayout(LayoutKind.Explicit)] struct MyStruct { [FieldOffset(0)] public byte F1; [FieldOffset(1)] public byte F2; [FieldOffset(2)] public byte F3; [FieldOffset(3)] public byte F4; } MyStruct s; s.F1 = 0x00; s.F2 = 0xF1; s.F3 = 0x00; s.F4 = 0x01; uint p = 0x00F10001; How can I convert MyStruct s to uint p ? Thanks … | |
This is my code can you expllain how the user may activate or inactivate with check box.... [code=php]<?php mysql_connect("localhost","root","rootwdp"); mysql_select_db("rams"); if(isset($_REQUEST['submit'])) { $arr=$_REQUEST['chk']; foreach($arr as $key => $value) { $sql=mysql_query("update ram set status=1 where emp_id=$value"); } $sql1="select * from ram where status=1"; $res1=mysql_query($sql1); ?> <form action="" method="post" name="form"> <table border="1"><th>Username</th><th>Empid</th><th>Designation</th><th>Check … | |
[CODE] set<Student> myStud; Student b; myStud[b] = Student("Katie", 12);[/CODE] | |
Hi all, I am going through the concepts of CSharp and I could not understand.. and get enough info on net about String.Format(). Can someone please explain how is it useful?! I got this example.. but i see no use of using String.Format() here as.. use it or not.. the … | |
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 … | |
can i anyone know how to solve a summation problem? in visual basic? using do while? or do until? here's my code x = val(text1.text) n = val(Text2.text) c = text3.text for example if the input of x is 3 & n is 2 therefor solving of that is like … | |
can anyone change this for next statement to do while statement? Dim x, n, i As Integer Dim Tot As Double x = Val(Text1.Text) n = Val(Text2.Text) If n <= 1 Or x < 0 Then MsgBox "Enter Proper Values", vbCritical Exit Sub End If Tot = 0 [B]For i … | |
hi, Through VB i want to set the first 3 rows of my excel sheet as HEADER so that those 3 rows will be common header for all the pages when i print them. Regards, Dinil | |
Hello ALL, I have a table contains words extracted from a few documents. [Code] DocID Word Tag 1 Book noun 1 Pen noun 1 Pencil noun 2 There prep 2 Hand noun 2 Have verb 3 Oil noun 3 Thorough adv 3 Drive verb 4 Red adj 4 Blue adj … | |
In a msflexgrid control , i want to give the option to the user to select a single row or a group of rows from msflex grid control the if use clickon the product_id from first msflexgrid contrl1 since this grid contains complete list of product_id it selected record should … | |
I would like to make a photo gallery using javascript. Are there any tutorials out there? This is what I wish for (but anything is better than nothing): - Vertical Bar - Auto Scrolling (mouse movement scrolls quicker on outsides and stops in middle) - When clicking on one of … | |
All right, so I have a final exam due that consists of four problems. I'm currently working on the first problem. I understand the algorithm of the problems, but I am very, VERY weak with syntax and the entire C language in general. In the first problem, I just indexed … | |
I need a script that performs this task: I want a script in PHP/MySQL or AJAX, that reads the Ad Block of Google Adsense and finds out link, so that they can be used in another portion of the page. Read Details if not clear. [COLOR="Red"]I have a site, for … | |
Hi, I wrote two functions, FWT2_PO and IWT2_PO, both having a 'transform' method. The functions work really well, but a strange thing happens. Namely, the following code gives different output than the code below. [code=java] denoised = FWT2_PO.transform(array, 4, QMF, 2); //recovered=IWT2_PO.transform(denoised, 4, QMF); for (int i=0;i<denoised.length;i++){ for (int j=0;j<denoised.length;j++){ … |
The End.