199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for swiftdemise

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

Member Avatar for swiftdemise
0
139
Member Avatar for johnson7767

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 …

Member Avatar for hielo
0
130
Member Avatar for almost_done

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for hinzyk

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

0
135
Member Avatar for javan96

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 …

Member Avatar for javan96
0
127
Member Avatar for ConfusedMuchMor

Is there a way to carryout explicit data type convertions automatically? if the complier can see your errors why can't it correct them?

Member Avatar for alc6379
0
129
Member Avatar for Acidburn

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 …

Member Avatar for Acidburn
0
135
Member Avatar for locsin

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... …

Member Avatar for hkdani
0
129
Member Avatar for jay64

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 …

Member Avatar for jay64
0
390
Member Avatar for sreenathvp
Member Avatar for Jx_Man
0
132
Member Avatar for rabeb

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 …

Member Avatar for rabeb
0
180
Member Avatar for jinalh

hi, i am new beginner of the java & i want to create a application such using applet for create user - student & admin.

Member Avatar for jwenting
0
93
Member Avatar for sara_84

typedef struct node node struct { int when i run the C program, compiler give me an error which is , is expected, help me

Member Avatar for iamthwee
0
172
Member Avatar for Dell XPS

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 …

Member Avatar for Dell XPS
0
129
Member Avatar for kehar

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 …

Member Avatar for hkdani
0
155
Member Avatar for sbenware

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 * …

Member Avatar for sbenware
0
94
Member Avatar for jay64

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 …

Member Avatar for TopDogger
0
105
Member Avatar for k2k

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> # …

Member Avatar for Lerner
0
99
Member Avatar for ruman_eee

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 ??

Member Avatar for adorosh
0
112
Member Avatar for sa-al

i want to define a function that calculates the " integral" of a function

Member Avatar for Jishnu
0
85
Member Avatar for devilofangel

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 …

Member Avatar for Jishnu
0
142
Member Avatar for ashok1424

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 …

Member Avatar for InfiNate
0
147
Member Avatar for adiaforos

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) …

Member Avatar for Jishnu
0
117
Member Avatar for uber_noob

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 …

Member Avatar for Jishnu
0
97
Member Avatar for Barefootsanders

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 …

Member Avatar for Barefootsanders
0
131
Member Avatar for hotshayan

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 …

Member Avatar for Ancient Dragon
0
136
Member Avatar for jay64

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 …

Member Avatar for jay64
0
103
Member Avatar for roxanne14

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 …

Member Avatar for Tight_Coder_Ex
0
554
Member Avatar for mortalex

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 …

Member Avatar for Dani
0
159
Member Avatar for prateek_singh

//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); …

Member Avatar for Salem
0
184
Member Avatar for toddalan111

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 …

Member Avatar for alc6379
0
113
Member Avatar for greeny_1984

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 …

Member Avatar for alc6379
0
113
Member Avatar for Dennis_Phils

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 …

Member Avatar for hielo
0
503
Member Avatar for CloudSportRacer

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!

Member Avatar for CloudSportRacer
0
119
Member Avatar for PoovenM

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 …

Member Avatar for PoovenM
0
123
Member Avatar for kings

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) …

Member Avatar for hielo
0
103
Member Avatar for vardhani

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

Member Avatar for vardhani
0
144
Member Avatar for poonams

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.

Member Avatar for poonams
0
142
Member Avatar for shanewaj

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 …

Member Avatar for billnan
0
111
Member Avatar for kadeemdagreat

[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; …

Member Avatar for Ancient Dragon
0
134
Member Avatar for Jakiro

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 …

Member Avatar for Jakiro
0
76
Member Avatar for Ravenous Wolf

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 …

Member Avatar for maddog39
0
188
Member Avatar for chris53825

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 …

Member Avatar for chris53825
0
103
Member Avatar for Thunder2k4

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 …

Member Avatar for Thunder2k4
0
305
Member Avatar for ZORG

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 …

Member Avatar for jbennet
0
85
Member Avatar for Artmann

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 …

Member Avatar for peter_budo
0
155
Member Avatar for kingflux

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 …

Member Avatar for alc6379
0
135
Member Avatar for satees

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 …

Member Avatar for alc6379
0
1K
Member Avatar for bidemi

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.

Member Avatar for alc6379
0
95
Member Avatar for ConfusedMuchMor

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 { …

Member Avatar for alc6379
0
99

The End.