199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm having a problem with vectors. I have [code=c++] vector<int> ds; [/code] in a header file. When I do [code=c++] ds.push_back(0); [/code] in the cpp file, I get a seg fault. Does anyone know what the problem is? Thanks | |
I am not a computer programmer but have an assignment that involves javascript. I need a program that will display the interest in a savings account if I deposit $1000 at 5% interest for 10 years. I need it to show the interest each year for each of the 10 … | |
Ok I have no idea why I'm getting this error. I'm guessing its the fact I'm trying to return something from another class but I don't know how else to do it. [code=C++] #ifndef Floor_h #define Floor_h #include <queue> #include "Passenger.h" using namespace std; class Floor { public: Floor(); void … | |
I have a query to find dates based on Between And criteria but I can't pull up anything in 2008. all 2007 dates work properly. What am I missing? Thanks | |
hi i want to integrate my gallery with my phpbb forum. i have some instructions that came with gallery1.5 but i don't know how to do some of the steps. here is the instructions. this a very little description what you have to do to make Gallery >=1.4.3 work with … | |
Is there a way to carryout explicit data type convertions automatically? if the complier can see your errors why can't it correct them? | |
Hey guys, Got my logger working as i wanted it to.. basically it just logs to a file using java.utils.logger anyway now got a problem. I'm wanting to duplicate the logging output to a JTextArea on my GUI. So I thought of building a wrapper class but to my suprise … | |
Season Greetings! Searching database file in the application path I want to determine the database file is existing or not... If the database (".mdb") is existing then msgbox "The database .mdb is not existing" if not existing msgbox " The database is not existing" If the database is not existing... … | |
Ok, I thought I had gotten all the answers I needed and marked my thread as solved. But now I am having problems trying to put the code into use. I tried to insert the data from my form into my data base and got an error message. I obviously … | |
Eg: Calculator How to assign numbers in key board to corresponding buttons in the calculator? | |
Create a modular program in C that generates and modifies a number of circular double linked lists. Each node in the circular double linked list should have two pointers which should “point” to the next and the previous node. And that the double linked list is in the form of … | |
hi, i am new beginner of the java & i want to create a application such using applet for create user - student & admin. | |
typedef struct node node struct { int when i run the C program, compiler give me an error which is , is expected, help me ![]() | |
I am doing this program that has listboxes and 2 combos Listbox 1: 1-3 Persons Listbox2: 4-7 Persons Combo1: 8-20 Combo2: 21-50 When I click on a number of persons the price is displayed... But I need a way to change the prices so they must not be in the … | |
Hi, My database in Access contains record since 2005 and it is not required for frequent use unless the Audit ask for. So I would like to take the backup of the data through VB6 by writing code instead of going to Access and copying in CD So will any … | |
My program keeps crashing when the retrieve function calls the getName function. I'd like to make sure my getName function is correct before tinkering with my retrieve function. I'd appreciate any ideas. Is there a problem with deleting the name if it's a pointer? header file: [code] void getName(char * … | |
I have an html form from which I am trying to insert the data into a MySQL db. I have heard that the date needs to be in a specific format for inserting into the table, I believe it was YearDayMonth (20070612) Is this true? Because of that, I broke … | |
hi all, I am trying to figure out how to read from a file, ifstream reader reading string next.... if next is a digit then add it to total... and cout total.. please indicate what went wrong. thank you. [code=cplusplus] # include <iostream> # include <fstream> # include <cstring> # … | |
hi everyone, I am in problem to get the array data from php to use it in js. $data[0]=88; $data[3]=44; $data[4]=2232; I want to use those data in js. Can anyone help me ?? | |
i want to define a function that calculates the " integral" of a function | |
i am new at programming basic.. i got this problem at school... i want to seek help from you!..its all about inserting and deleting arrays in c language!.. im really confused about the code of this...pls help me!... for example: given this output: Menu Operations: [1]Insert at beginning [2]Insert at … | |
Hello i got this project that i have to do and im very bad C# and need help ASAP i have done a little bit but not much i will display the coursework outline and after that the code that i have done so far, i would appreciate it if … | |
i am writing a program for seats reservation... here is the thing.... we have only one airplane with 10 seats... type (1) for expensive seat type (2) for cheap seat type (0) for exit you have to use seats[10] array and you have to do seats[10]={0}; if you type (1) … | |
i dont know how to pass variable values from a function to another.. i get this error passing arg 1of 'add' makes integer from pointer without a cast here is my complete code: (this is not complete as i am just starting a text-only calculator :P) [code] #include <stdio.h> void … | |
Hey everyone, I'm attempting to write a header file, example.h that will contain function declarations that will be defined in example.c. For some reason Its giving me an error when i do this [CODE]extern void mainMenu(node*);[/CODE] Now node is a struct defined in another header file, should I include that … | |
Actually im a beginner with the subject of data structures. for my project i got a program to make which goes like: " implement the ADT unordered dictionary using hashing with linear probing." by using c or c++ language. i would b grateful if sum1 could help me with this … | |
Ok, I am trying to insert the data from a form into a table on my MySQL database. I have been going through some tutorials on how to do this, and have found slightly different answers. I'm assuming that they both kind of do the same thing, but what would … | |
My assignment says I'm supposed to read in an address all on one line separated by pound signs (eg jane doe # p.o. box 123 # new york, new york 97229 #) and output it with correct capitalization and in proper address format like: Jane Doe P.O. Box 123 New … | |
Hey guys, I'm trying to write a peice of code that basically checks if the input field have been submitted, it is an update code so I have designed it so that when the user clicks "update" another page displays saying "well done object updated". However when i do this … | |
//sample program for car:) #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<process.h> void main() { int gd=DETECT,gm; initgraph(&gd,&gm,"c:\tc\bgi"); int c=12; setbkcolor(0); //setlinestyle(0,1,2); int t; while(1) { settextstyle(2,0,5); outtextxy(100,10,"Press L,H ,T,P"); outtextxy(100,30,"Press 1 for Quit"); as: setcolor(13); ellipse(380,127,20,152,130,35); //////////////////////////////rear////////////////////////// line(490,109,560,142); line(560,142,569,142); line(569,142,582,102); line(582,102,620,92); line(593,132,617,125); line(617,124,627,96); line(620,92,628,97); line(472,86,602,96); line(501,113,575,121); line(443,77,475,80); line(443,77,432,93); line(475,80,472,85); //setcolor(4); line(593,132,593,137); line(593,137,600,141); … | |
I own a website build in .net and I want to make simple changes, including pictures, headlines and nav bars, from time to time. What software do I need. I have used Contribute (CS) on other sites (.php) I am involved with and it provides a visual reference while making … | |
hii, can any one guide me to buy which book for asp.net 2.0. i heard of two books step by step and other programmer to programmer by wrox any have different suggestions iam not a newbie ,i have some exp in asp.net with vb r there any ebooks on asp.net … | |
Hi Guys... I'm having problem with XML transformation. I have this code where I click a link that will open a new window that is referenced to XML. It works fine in IE but in Firefox, a new window is opened and the contents are not displayed. Here's a code … | |
Hello, I am new to java and was looking all over the place for a pop up type warning box coding for java. If someone has any ideas, that would be excellent! Thanks! | |
Hi all, I was wondering, is there also a classloader in C#? I know that Java has it; if there isn't a classloader in C#, how would one load classes during runtime? If there is a classloader, how do I use it? I mean can someone show me an example … | |
hi, i am new to java script but my code is not working...please do tell the error in my code <script language="javascript"> function validateform() { valid=true; for (var i=0; i < document.userdetails.elements.length; i++) { var element = document.userdetails.elements; switch (element.name){ case "cname": if (element.value.length==0) valid=false; break; case "address": if (element.value.length==0) … | |
i am new to php.... please send me a code tat will help me create a form n direct it to my home page and send the information of the form to my email | |
I Have one application in vs.net 2003.I used crystal report 9.0.When I am trying to deploy the S/w on client machine it gives error in crystal repot that KeycodeV32 /missing.I searched Lot on Web About the error.Some Said CR need a Licence.Is It true.How Can I get the licence. | |
I am having a complicated problem with the design of a database. Lets Describe the problem This is going to be used in a job tracking system we will have a list of jobs so TABLE 1: JOBS ([U]JOBID[/U],DUE DATE, SHIP DATE, INVOICE DATE, STATUS, CATAGORY) what is category well … | |
[code=c] #include <stdio.h> #include <math.h> char decesion_matrix(double hh) { if(hh < 5) { printf("statement 1\n"); } else { printf("statement 2\n"); } return 0; } int chara_sum (int ii, char string[ii]) { int loop; char a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z; double hh; hh = 0; for(loop=0;loop<ii; loop++) { if(string[loop] == a) { string[loop] = 1; … | |
void Display(Productptr t) { Productptr g; g=t; if(t==NULL) cout<<"The list is empty."<<endl; else { cout<<"Code\tDescription\tPrice\n"; cout<<"====\t===========\t=====\n"; while(g!= NULL) { cout<<g->code<<"\t" <<g->description<<"\t\t" <<g->price<<endl; } cout<<"End of the list"<<endl; } system("pause"); } This code give me problem. When I show 1st time is ok. After 1st time I add something or delete … | |
here is a question which some would consider silly but i would still love to ask. what are the chances of C# or java replacing c++ as the gaming language? more and more books are being written about game design in C#. c++ has the advantages of being fast and … | |
![]() | Hey everyone, I've been pulling my hair out with this one, but maybe someone can be my angel! Alright here's the question: "Let T be a binary tree with n nodes. Define a Roman node to be a node v in T, such that the number of descendents in v’s … ![]() |
Hi, im currently trying to write a program which counts the characters in an input file. I need it to count the total characters, the non-blank characters and the alphabetic characters. And then show the statistics of each. I have both the total characters and alphabetic characters working correctly but … | |
I want to develop a database application for the DS. Which is the best C++ package to use? When I was last involved with programming, Microsoft and another development company that I cant even remember now had the top two products. My current research has made me realize that there … | |
Hello. I've recently started to explore the world of Java ME, and now ther's only one problem. Compiling. I've installed Java adk 1.6, Sony Ericsson SDK and even some tool I found under Suns Java ME section but the compiler still doesn't find the ME packages. Hope somone could post … | |
Hello, all-- Our ASP.NET 2003 app's primary screen uses a datagrid with clickable headers for sorting by column. There is a "user control" with two list boxes from which the user filters the datagrid rows. I added a textbox in the user control -- changed nothing else* -- and now … | |
Hi, I have displayed firstname, lastname and city fields in the datagrid. In these, first two are bound columns and the city is template column which has dropdown list control. When i click "Add new row" button, i need to add one dynamic row which has two textbox and one … | |
I have this assignment in school that says i should connect my asp.net website to my database and i'm finding it difficult, could you help pls? thanx i basically need the codes,i created my database using sql. | |
New to programming my user name sums it all up!!! trying to creat a DLL for a calculator (in C#) I'm told this code below will do the trick, but it doesn't build!! can anybody out there tell me why? [code] using System; using System.Collections.Generic; using System.Text; namespace neilsuperDLL { … |
The End.