199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dubiousandrew

I have two tables, student and teacher. I have an email table because a student can have more than one email. But, so can a teacher. Should I include a foreign key of both student and teacher in my email table or create two separate tables, that is, a student_email …

Member Avatar for dubiousandrew
0
123
Member Avatar for Codethat

Hi, I want to use a php form textfield to change a value in my databas. Statement i want to send the databas: UPDATE people SET name='VALUE FROM TEXTFILED' WHERE id=1 How do i integrate this statement into a php form textfield?

Member Avatar for nav33n
0
72
Member Avatar for claritydigital

Hi, Im needing alil help with this, googled everywhere, but to no avail. I need to search several(the amount could be endless) words in a string, and replace each word with a link using the searched-for value as the text, and id in the link. To achieve this, I am …

Member Avatar for claritydigital
0
320
Member Avatar for rayda

[ICODE]public class fermi { private int[] guess; private int[] random; private int total; private int win; private int lose; public fermi(int[] gs, int[] rn) { guess=new int[gs.length]; for(int i=0;i<gs.length;i++) guess[i]=gs[i]; random=new int[rn.length]; for(int j=0;j<rn.length;j++) guess[j]=gs[j]; } public fermi() { total=0; win=0; lose=0; } public int totalPlay() { return total+=1; } …

Member Avatar for verruckt24
0
103
Member Avatar for mansi sharma

Hey frnds,I want to get files of Recycle Bin that are currently present in Recycle Bin.can somebody help me out.Cz i have no idea from where to start.

Member Avatar for Jx_Man
0
111
Member Avatar for aidy

[TEX]quick question, I can't figure out how to change the position doing it this way. It isn't changing position.[/TEX] [CODE] this->a1->Location.X = this->a1->Location.X + 20; this->a1->Location.Y = this->a1->Location.Y + 20; [/CODE]

Member Avatar for tux4life
0
85
Member Avatar for nitu_thakkar

i have to make one prg in c that accept only odd number (no) which is (4>no>30) & have to genrate the pertern which is given below when no=7 then given petern should be genrated for that i have do some coding but i can't get the exatly petern.. pls …

Member Avatar for nitu_thakkar
0
163
Member Avatar for rajeesh_rsn

Hi i had a php page and some mysql connections in that page. I need to show a image named loading.gif until the page loads completely.. I tried many but cant... Please any one give an idea... Please Thanks Rajeesh

Member Avatar for essential
0
53
Member Avatar for mrtsoftware

hello everyone,I must solve a problem which effect my c programming lesson grade...Here is the problem: Write a program to convert a time given seconds to hours,minutes and seconds format. Sample Run: Enter seconds: 8230 It is 2 hours, 17 minutes ,10 seconds… We learned only #include<stdio.h> not iostream or …

Member Avatar for mrtsoftware
0
96
Member Avatar for jeffc418

Hi all, Say there are two checkboxes on a page (test1 and test2), I want to write a JavaScript code that disables one if the other is checked. Here's what I wrote that didn't work: [CODE]<input type="checkbox" name="test1" <script language="Javascript">if (test2.checked = true){document.write('DISABLED');}</script>>[/CODE] Please help :D!!! Thanks a million! Jeff

Member Avatar for essential
0
3K
Member Avatar for bluebird

Hello I am writing a file program like that user has to input a string and that string was written to a file. From that file, that string was read to the another file changing lower case letters to upper case letters and upper case letters to lower case letters. …

Member Avatar for nucleon
0
117
Member Avatar for Emerald214

When creating a new object, i can't decide to use "static allocation" or "dynamic allocation". Ex: [CODE] class A {...}; int main() { // A theObject; // or A theObject = new A(); ? } [/CODE] In some more complex cases, i don't know what i should do. Ex: Use …

Member Avatar for nucleon
0
101
Member Avatar for cloud21

Hey guys. How may I implement a high/low card game using inheritance, any ideas out there? Sorry I am a bit of a newbie to all this stuff. Help very much appreciated !

Member Avatar for VernonDozier
0
209
Member Avatar for 88omar

well i have been trying to get this thing to store in a database i created in mircosoft db any help would be appreciated. Thank you in advance Private Sub cmdadd_Click() optftime.Value = False optptime.Value = False optict.Value = False optassessmentprogramme.Value = False optdbt.Value = False opttvet.Value = False optcarrerdev.Value …

Member Avatar for vb5prgrmr
0
126
Member Avatar for firoz.raj

Can anybody tell me .how should i print serialno of materialrequistiondetail table of matching requisition no.in descending order.here is the code what i have written. [code] Private Sub btPrint_Click() Dim sqlQuery As String sqlQuery = "SELECT MaterialRequisitionOrder.requsition_no, MaterialRequisitionOrder.job_no, " & _ "MaterialRequisitionOrder.delivery_point, MaterialRequisitionOrder.delivery_date, " & _ "MaterialRequisitionOrder.delivery_time, MaterialRequisitionOrder.suggested_supplierID, " & …

Member Avatar for vb5prgrmr
0
146
Member Avatar for Nanor

I'm learning Pascal in school. I've come across a run time error that's been eluding me these past few days. The error message I get is: [QUOTE]ERROR: line 86, access made to undefined variable[/QUOTE] I've been searching t'internet for a while trying to find out some help, alas Pascal as …

Member Avatar for Nanor
0
210
Member Avatar for senidaljeet

Hi there, My friend has got vista in his laptop , now when he tries to run a Graphics program in TurboC it doesnt show the output ( there's no coding problem, BGI header files all are ok) So i gave him Turboc 4.5 , now this TC hasnt got …

Member Avatar for ArkM
0
85
Member Avatar for nexocentric

I was making a dos based text game and needed user input. I looked through the forums and found the thread on safe user input, which would be using fgets() instead of gets(). The first problem I ran into was that stdin always had '\n' in the buffer, so it …

Member Avatar for Ancient Dragon
0
495
Member Avatar for blackcloud72

Please help I am stuck. I am trying to retrieved text from a file named "text.txt" and reversing the contents to another file named "output". Then i have to display the contents of "output" to the console. I am able to display the reversed text to console but only from …

Member Avatar for jasimp
0
114
Member Avatar for soulreaver20500

Hi, i have been working on trying to do this for a while now. I applied for a job in c++ and the person gave me a task to test my skill... needless to say that i didn't get the job but i am still working on it to figure …

Member Avatar for Ancient Dragon
0
104
Member Avatar for roshni79

I have three tables : 1. tblDiseases(diseaseId, diseaseName) where diseaseId is the primary key 2. tblSpecializations(specializationId, specializationName) where specializationId is the primary key 3. tblDiseaseSpecialization(diseaseSpecializationId, specializationId, diseaseId) where diseaseSpecializationId is the primary key All diseases need not have an associated specializationId. In the disease registration table with fields for person …

Member Avatar for roshni79
0
120
Member Avatar for tedobg

Hi guys.Im not exactly sure where I have to put this.But this place looked best as its a php forum and my problem is with phpBB.Again I don't really know If I'm posting this in the right place so correct me if I'm wrong. Anyway my trouble is creating a …

Member Avatar for tedobg
0
141
Member Avatar for Gerlan

Hey, I have a small problem. I need to convert a char into an int, except the char has 2 values inside it. For example [CODE=c++] char c = 'v0'; int i = c - '0'; cout << i << "\n"; [/CODE] All that does is removes '0' from the …

Member Avatar for Gerlan
0
208
Member Avatar for maru2

How can I use very long STL vectors? I need to write a code where I use the vector container to store a very large number of values, and I need to access the elements using [i]. I am currently using [i], where i is an integer. How can do …

Member Avatar for StuXYZ
0
216
Member Avatar for killhha

is it possible to end actions that are happening? example: [code=pascal] repeat writeln('example'); until c=1; {the c is an example. im asking if it would be possible to change c to something like 'until readkey'} [/code] readkey doesnt work. i hope you can understand what im tring to ask here. …

Member Avatar for FlamingClaw
0
253
Member Avatar for tksabin

hi friends, Im doing my project in C#. Now,I want to make a very nice UI for this one.. The UI which i created now is a simple one using visual studio 2008.. Is there any other software by which i can make a very nice UI.

Member Avatar for tksabin
0
90
Member Avatar for serkan sendur

i couldnt find the server explorer, where is it, i need to connect to sql express database.

0
64
Member Avatar for sawant_nitesh

I m having many dataobjects (*.java)(having getters and setters) My requirement is that, I want to write a generic Method, which will accept argument as Object and will call all getters of that Object. Basically I want to write a log file with all dataobjects which are going to be …

Member Avatar for masijade
0
114
Member Avatar for firoz.raj

i want when user clicks on save button I want to update the database and refresh the listview on the curren page. i have written a code but data is not instantly comming after save button .Here is the code what i have written.I simple Want when Press ok .addded …

Member Avatar for firoz.raj
0
169
Member Avatar for rayda

[ICODE]public class fermi { private int[] guess; private int[] random; private int total; public fermi(int[] gs, int[] rn) { guess=new int[gs.length]; for(int i=0;i<gs.length;i++) guess[i]=gs[i]; random=new int[rn.length]; for(int j=0;j<rn.length;j++) guess[j]=gs[j]; total=0; } public int totalPlay() { return total+=1; } } [/ICODE] [ICODE]import javax.swing.JOptionPane; import java.util.Random; public class playFermi { public static …

Member Avatar for verruckt24
0
126
Member Avatar for mandar2886

Hi I entered http:\\mandar\isqlplus on the address bar but I,m getting Invalid syntax error. mandar is my computer name. Pls help me out Is there any way to solve this error

Member Avatar for mir77
0
65
Member Avatar for cassie_sanford

I am writing a program that is supposed to calculate how much a person earns in a month if the salary is one penny for the first day, two pennies for the second day, four pennies for the third day, and so on with the daily pay doubling each day …

Member Avatar for VernonDozier
0
2K
Member Avatar for mahdiahmadirad

Hi Friends! I have started building my first professional project(actually a web portal). that is kind of business project. I need full membership features. now what you think? If SqlMembership Povider in asp.net is enough for a professional application or not. should i create a custom membership provider. which one …

Member Avatar for serkan sendur
0
111
Member Avatar for winrawr

What editor/compiler does everyone use, and, what is your syntax highlighting like? I'm using programmer's notepad 2, with a gcc win32 port... with a stylish green-identifier, gray-text, white-operator, blue-comment, red literal on black background.

Member Avatar for monkey_king
0
138
Member Avatar for gsingh2011

I had some code that worked fine, but then I decided to put it in a header file and now its not working. This is my first time using my own header files so I'm assuming I made a beginner mistake somewhere... [CODE]/* kernel.c */ #define SCRWIDTH 200 #define SCRHEIGHT …

Member Avatar for ArkM
0
92
Member Avatar for badbloodyeyez

Hi, I want to know can I set priority to my application such that the windows will close my application first when it shutsdown! Basically I want the window to ask my application to close itself before closing other programs when its shutting down. Thaks

Member Avatar for vb5prgrmr
0
80
Member Avatar for bondgirl21

i USED THIS CODE TO ASSIGN THE BRAND DBS TO A VALUE OF 200 [code]Private Sub xModelComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xModelComboBox.SelectedIndexChanged If xModelComboBox.Text = "DBS" Then xTotalPriceLabel.Text = "$200,000" End If[/code] AND THIS CODE TO CALCULATE THE FOLLOWING iNITIAL PRICE= is the default price for …

Member Avatar for bondgirl21
0
107
Member Avatar for sid78669

Hello everyone, I am having trouble with a part of my Assignment and think i am missing something here. I have a Field class as below: [CODE=C++] class Field{ char * fstr; int frow, fcol, len, fslen, foffset, fstart, fctype; bool fedt; static int finsert; public: Field(char * str, int …

Member Avatar for sid78669
0
455
Member Avatar for cguan_77

hi guys, how to code this vbscript in javascript? thanks.. [code] <script language=vbscript> <!-- Sub CallMenu(n,isHidden) document.all("menu" & n).style.visibility = isHidden End Sub //--> </script>[/code]

Member Avatar for cguan_77
0
90
Member Avatar for vegaseat

I recently bought the book "Beginning Python" Norton, Samuel, Aitel et al published by Wrox/Wiley in 2005. Has anybody else bought this book and actually found the source code at the website they list in the book? I don't want to sound vinegarish, but this has got to be the …

Member Avatar for vegaseat
0
217
Member Avatar for siri_lito

hi can anyone help me i have the code that checks the word entered a palindrome or not it works in visual c++ but when i run the same in unix it is giving me errors can anyone tell me how to run it unix plz..... #include <iostream> #include <string> …

Member Avatar for sophia77
0
329
Member Avatar for aagomez

I am currently having problems updating a public data member that is a vector of pointers. I have a class called node, that has a public data member called list. list is [icode]std::vector< node<T>*>[/icode] and should contain pointers to other [icode]node<T>[/icode] objects. I am trying to overload the assignment operator, …

0
57
Member Avatar for MegaDave

I've been checking forums alot lately, and it helped me in more than once while facing some C++ stuff. and my first time posting. Anyway, am having an assignment where i need to decode and encode a ZipCode, the input of the BarCode should be as a string. BarCode contains …

Member Avatar for Ancient Dragon
0
315
Member Avatar for The 1

Hi everyone, id firstly like to start off by saying i am new here and if i make any mistakes in anyway i am sorry in advance... I was wondering if anyone could "[B]HELP[/B]" me complete a project that i am doing, i basically have to create the card game …

Member Avatar for VernonDozier
0
193
Member Avatar for sbasaran

I used Visual Studio's tools for reporting memory leaks. Main program uses a dll. In main program it reports the file name and line number: [color=blue] d:\tmp\ali\ali\ali.cpp(47) : {200} client block at 0x003A84C0, subtype 0, 5000 bytes long. Data: < > CD CD CD CD CD CD CD CD CD …

Member Avatar for sbasaran
0
298
Member Avatar for ochien

Can any body know how to make secure download, thats only member that can download file, so they have me authenticate first. thanks.

Member Avatar for amanuensis
0
87
Member Avatar for ITech

hei, i want to make sure the user enters an email address in the correct format. eg:it shud contain a "@" , period "." and after period it shud make sure there is only 3 characters.. some one told me thet this could be done using regular expressions ..but i …

Member Avatar for ddanbe
0
78
Member Avatar for dubster

hi guys im new to the site im from south africa...im currently in my second year of electrical engineering and now my college has forced me to do software design and ive never had any experience with programing and the others have cause they had programming 1...so my problem now …

Member Avatar for tux4life
0
106
Member Avatar for serkan sendur

i need a third way to do it at compile time without command line but using visual studio editor. at : [url]http://www.csharphelp.com/archives/archive36.html[/url] two ways are as follows: 1.Define in your C# program 2.Define them at command line on compile time Here is example for first way: Example: [CODE]#define TEST using …

Member Avatar for Rashakil Fol
0
102
Member Avatar for kipl20

hi, i am new to opengl and graphics programming, basically i have loaded in a MD2 file and stored the model as an array. what i would like to know is how would i go about animating key frames. some information on how i set up the model. // declared …

Member Avatar for kipl20
0
208

The End.