199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sukhraj.buttar

i need ur help sir i m asked to develop a small educational software package using c++ package must be a set of 5 multiple choice questions answers to which will be correct nearly correct wrong obviously wrong on completion of the test core must be displayed.... plz help me …

Member Avatar for sukhraj.buttar
0
141
Member Avatar for ConCon

Hi all. I've been having this problem and I was hoping someone could catch something I didn't. So here it goes: I have developed a registration system using PHP and mySQL, with usernames and passwords being encrypted by salt and md5 (and display names getting no encryption) on PHP's end …

Member Avatar for colweb
0
96
Member Avatar for kohkohkoh

#include <iostream> using namespace std; int main() { int age; for (int i=0;i<5;i++) { cout << "Enter :"; cin >> age; } int *sum=&age; for ( i=0;i<5;i++) { cout <<*(sum+i) << endl; } return 0; } here is one of my program that i wrote. i do not know whats …

Member Avatar for peter_budo
0
147
Member Avatar for iZander

I've been having problems with my form program while trying to call data entered into a text field and displaying in a GUI after pressing a button. Here's my code. [CODE]import java.awt.*; import java.awt.event.*; public class ProjectForm { public static void main(String[] args) { Frame frm=new Frame("Personal Information Form"); frm.setSize(350,200); …

Member Avatar for javaAddict
0
95
Member Avatar for smoothe19

Here is the code I have but it refuses to remove non letters,digits being read from a file line by line then each word in a line still what is wrong with it? [CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> #include <algorithm> #include <cctype> #include <functional> #include "BST.h" using …

Member Avatar for mitrmkar
0
5K
Member Avatar for lagvino_els

I have a Date class. In this class :(Date.h) [code]class Date { ... public: static Date creatDate (char *stringDate) .... };[/code] Date.cpp: I want to creat an array like this: [icode]stringDate[2][12] = {{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {31, 29, 31, 30, 31, 30, …

Member Avatar for tkud
0
254
Member Avatar for dawn.visp
Member Avatar for suchithrac

I am trying to establish TCP/IP communication between DSP(that runs Code Composer Studio, an IDE to compile and run C code) and Host PC(that runs VC++ application). While i am sending the data from CCS to VC++, "Retransmission timeout" occurs, and at another instance "Persist timeout" occurs which stops the …

Member Avatar for suchithrac
0
166
Member Avatar for nats01282

Hi all, I am after creating a small basic CMS sytem that will allow me to Change things after i have uploaded my site, How would i do this? I would like to change descriptions and add photos to the site?

Member Avatar for samarudge
0
122
Member Avatar for Jeun

/*None of the buttons except create and clear work can someone help please , can anyone help me with the parts i have missing , the account and date test class work fine i just need the bank account GUI to work properly , here is a detailed explanation of …

0
153
Member Avatar for JoeyG7

I've been altering code back and forth for an hour or so to get my form to send data to a mysql database if a radio button is checked. Right now it is not filling the table. other tables are getting populated. Here is the part of the html of …

Member Avatar for saiprem
0
153
Member Avatar for ndhamecha

hi would you please help me in retrieving values related to user select a country then its automatically shows the states name of that country in next dropdownlist and after that it will automatically display the city names respected to that country.. please do the needful.its really very urgent thank …

Member Avatar for Ramesh S
0
96
Member Avatar for ahmed hefnawy

[CODE]#include"stdio.h" #include"string.h" #include"math.h" #include"stdlib.h" void convlute(char s1[20],char s2[20]) { int i,p=0,t=0; char s3[20]; for(i=0;i<20;i++) { if(s1[i]!='+'&&s1[i]!='-'&&s1[i]!='*'&&s1[i]!='/'&&s1[i]!='('&&s1[i]!=')') { s2[p]=s1[i]; p++; } else if(s1[i]='(') { t++; } else if(s1[i]=='+'||s1[i]=='-') { if(s3[t]=='*'||s3[t]=='/') { s2[p]=s3[t]; s3[t]=s1[i]; t++; p++; } else { s3[t]=s1[i]; t++; } } else if(s1[i]=='*'||s1[i]=='/') { s2[p]=s1[i]; p++; } else if(s1[i]==')') { …

Member Avatar for abhimanipal
0
203
Member Avatar for complete

Declaring an array of linked list in C# How do I declare an array of some class in C#? I wonder if it is even allowed or possible. I got the compile error message "Array size cannot be specified in a variable declaration (try initializing with a 'new' expression)" when …

Member Avatar for RicardoE
0
682
Member Avatar for extemer

i got a problem wana display my String but it doesnt work here is my code i dont understand why it doesnt print me anything..... [code]class StringDemo { public static void main(String[] args) { String s1,s2,s3,output; s1=new String("hello"); s2=new String("hello guys"); s3=new String("happy birthday"); output="s1 = " +s1+ "\ns2 = …

Member Avatar for extemer
0
112
Member Avatar for Duki
Member Avatar for jonsca
0
102
Member Avatar for jockfaire

Hi, I have an Add Order form called frmAddOrder with a customer combobox. I am using a DataReader object in a DataAccessObject class with a getAllCustomers() method to retrieve the list of customers from the database. In the frmAddOrder i have a method called fillCustomerComboBox() to populate the combo box …

Member Avatar for tonymuilenburg
0
141
Member Avatar for ppllmmnn

[CODE]import java.io.*; import java.util.*; public class UMUC { public static void main(String[] args) throws Exception { String s1 = "input.txt"; String s2 = "output.txt"; try { FileReader fr = new FileReader(s1); BufferedReader br = new BufferedReader(fr); String lineRead = br.readLine(); while(lineRead != null){ s2 = s2 + "\n" + lineRead; …

0
36
Member Avatar for tbohon

All: I am trying, without much success, to append files in a C#.Net application. The code below shows my most recent attempt, unfortunately it doesn't work (this is iteration 5296.5 - approximately). Coming into this case statement there are two arguments, tokens[0] and tokens[1], which I have read and parsed …

Member Avatar for tonymuilenburg
0
322
Member Avatar for bondgirl21

Hi, I am having problems counting the number of words in a text file that i created (it has 130) and printing that finding (number) into another text file (output)....Any help is welcomed. I have this, but it doesn't print anything out yet...am stuck. [CODE]import java.io.*; public class FileIO{ public …

Member Avatar for bondgirl21
0
185
Member Avatar for stacyann

Hi I am working on a project for my course. I am creating a library system. However I am getting a lot of errors right now. Whenever it adds the record it does not add it to the database. Whenever it updates the record I got this message [B]Syntax error …

Member Avatar for SolutionExpert
0
340
Member Avatar for mariosbikos

hi i want to know how exactly can i use time.h and rand() if i want to print every time a pair of numbers but the same pair will be printed only once for example: 2 2 2 3 1 4 3 5 2 2<----- not to happen(instead get a …

Member Avatar for Adak
0
118
Member Avatar for MJaske

Hey guys. I have a two part homework assignment. It involves reading a text file, creating a structure, and writing the results into a new text file. I have completed the first program and according to my TA it is 100%. My issue is I ran into a mental block …

Member Avatar for MJaske
0
163
Member Avatar for swbuko

I have to write this program that opens a file then sorts all these numbers in different ways. I plan on using the insertion method cause its one of the fastest, so that shouldn't be too difficult. But when you look at the text file its got spaces and numbers …

Member Avatar for msnata2001
0
224
Member Avatar for simonsayz27

I don't know what in the world I'm doing wrong but I'm sick of staring at my screen and debugging over and over again. It's been a while since I've used C++ so I'm a bit rusty. I'm working on a database project that is supposed to implement a hash …

Member Avatar for abhimanipal
0
141
Member Avatar for Joonhwa Yang

i got errors hello.cpp:27: error: expected primary-expression before ??token hello.cpp:29: error: expected primary-expression before ??token hello.cpp:31: error: expected primary-expression before ??token what's wrong!? help me!![code]#include <iostream> #include <iomanip> #include <cmath> #include <fstream> using namespace std; void minMax(const double [], int, double&, double&); void numMeasures(const double [], int, double&, double&); void …

Member Avatar for thousandpimps
0
4K
Member Avatar for Griff0527

I'm new to C Programming ( 6th week of an 8 week course ) and I am working on user defined structures. I have created a structure to store data received from a file and three of the four sub functions planned: open the file, store the data in the …

Member Avatar for Griff0527
0
9K
Member Avatar for code zombie

Anyway It seems to work fine it allocates space for everything.. But it does not put the value in. I have tested the value one statement before it is passed as an argument to the function and yet when I test it afterwards all the values are zero. So I …

Member Avatar for code zombie
0
143
Member Avatar for vmirz

I'm trying to write a function that accepts two type double parameters. The function is suppose to be calculate and return a base number raised to an exponent (using recursion), but I can't use the pow() function itself. I've got it working fine without using decimal format numbers, but i'm …

Member Avatar for nezachem
0
97
Member Avatar for zippee

Hi, I managed to use the full-text search on a single table (product) and would like to search two tables (product and article) simultaneously, when user enter a keyword. Can anyone help? Thanks

Member Avatar for jsalis
0
246
Member Avatar for ElegantElephant

I don't know if it's obvious but I'm not entirely sure how to delete joined table records? For example. I have a project which also has associated contracts, files etc in other tables. They are all linked using the project foreign key. How do I construct a query to that …

Member Avatar for sandimcp
0
125
Member Avatar for rlhh

I'm trying to print an array of 3x3 and placing random numbers within them that has no repetition. I think what I did was right but there just isn't any output. I know I can easily get the answer somewhere but I would like to know what is wrong with …

Member Avatar for abhimanipal
0
138
Member Avatar for nunos

I started learning about backtracking in college and was asked to solve the famous 8 queens problem. I know there are many solutions out there for this, but I would like to get there by myself. However, I am kind of stuck and in need for some guidance here. The …

Member Avatar for 0x69
0
128
Member Avatar for manutd4life

here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * here's my work: [code=c]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int numOfStars = 0; int count = …

Member Avatar for manutd4life
0
172
Member Avatar for Aleksandor51

Beginner here with VB 2008 Express. Thanks to this forum, I have one problem solved, properly converting text to numbers. Now I want to use that conversion as a selection parameter in a FillBy statement. Here's what I'm trying to do: I have two comboboxes linked to an Access 2007 …

Member Avatar for Aleksandor51
0
389
Member Avatar for lionaneesh

Sir/Maam, I am a newbie programmer in C and learning C since 6 months and am looking forward to learn Socket programming in C . I have some knowledge about TCP/IP and OSI model. Please suggest me some simple links and ebooks . Thanks.

Member Avatar for jephthah
0
147
Member Avatar for kacete

I'm trying to program a simple traffic light control using a 8051 micro-controller and assembly language. I use the Multisim application for simulation purposes. I'm having a problem with the timers. I want the red and green lights to be on for 10 seconds and the yellow ones for 2 …

Member Avatar for kacete
0
3K
Member Avatar for restrictment

Hello, I have been having a problem with the following code: [code] #include<iostream> #include<time.h> #include<iomanip> using namespace std; int main() { float average; setprecision(5); fixed; average = 100-((25/(130-(50-(130/3))))*100); cout << average << "\n\n"; } [/code] I cannot seem to get the 'average' variable to come out to exactly 79.73 like …

Member Avatar for restrictment
0
92
Member Avatar for SMHouston

I'm having a little trouble understanding saving state data properly. What I have is 3 forms, which go into a summary, and then the user can click on register and register for the seminars. The data is then submitted to a database. Each form has a next and back button. …

Member Avatar for SMHouston
0
174
Member Avatar for idlackage

The number I'm looking for is valid when it's positive, and nine digits. I used ( (value >= 100000000) && (value <= 999999999) ) first, which worked okay, but did not account for leading zeroes. How do I validate a nine digit number, using only math and no functions, with …

Member Avatar for jephthah
0
139
Member Avatar for dpreznik

Dear experts, I have a GridView with an invisible CancelEdit button. I want to use this button to get out of Edit mode. When I make this button visible for testing purposes and press it with the mouse, it works fine, getting me out of Edit mode. But I need …

Member Avatar for dpreznik
0
101
Member Avatar for slider212

Hi, Although I have done a reasonable amount of coding I have very little training (self taught) so apologies if this is a stupid question. I have written a basic Defect Management app which allows developers to create a release and assign defects to it. The release object has the …

Member Avatar for Antenka
0
196
Member Avatar for help_please

Hey guys, Im having trouble adding an imported string file to a linked list (the purpose of the assignment is to find the most frequently used word) here's my code: (my problems in the mostFrequent class so you dont really have to look at the other classes. i just provided …

Member Avatar for JamesCherrill
0
140
Member Avatar for Arianna

I'm coding a simple forum, for a user system that I'm making. By simple I mean very simple - viewing categories, threads, and topics, as well as posting, editing, and reporting to a moderator. Moderators can also delete, sticky, or lock threads, or delete posts. Now, I'm doing quite well …

Member Avatar for Arianna
0
193
Member Avatar for ceyesuma

hi. I can't figure out why other properties are found but this one is not. [code] the key: strCreateAdminTable Exception in thread "main" java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key strCreateAdminTable at java.util.ResourceBundle.getObject(ResourceBundle.java:384) at java.util.ResourceBundle.getString(ResourceBundle.java:344) at model.ModelUtils.getResource(ModelUtils.java:48) at model.dao.DerbyDAO.createTables(DerbyDAO.java:185) [/code] can I build a table with this one? or …

Member Avatar for ceyesuma
0
116
Member Avatar for fugnut

What stupid basic thing am I missing? we are to read in from a file that contains 10 lines.....name, age, etc....I can read in the file ok and print out the first line....I am having problems printing subsequent lines....HELP!! lol [CODE]//Acme Personel Report //by PAtrick Nealey #include <iostream> #include <iomanip> …

Member Avatar for fugnut
0
180
Member Avatar for dre-logics

I use Visual studio 8.0 My question is, if a row is clicked in datagridview I want that image appears in the [COLOR="Red"]headercell [/COLOR]of the row If I use following code goes well: [COLOR="Green"]DataGridView1.Rows(i).HeaderCell.Value = "selected"[/COLOR] Then the text [COLOR="Green"]"selected"[/COLOR] appear in the [COLOR="red"]headercell[/COLOR] of the row that is selected. …

Member Avatar for dre-logics
0
1K
Member Avatar for addilla

hye there..,i am using Visual Studio 2008 and VB.NET 2008 and SQL Server 2005 as the database. I just finished designing & writing codes for a customer's contract information and , however after it has been connected to the database only one of the datetimepicker can be click, (i put …

Member Avatar for addilla
0
158
Member Avatar for ctyler

Hello all. Am new to the forums and this is my first post and I am in need of a little help. I am in the planning stages of building a pretty involved web application. This question needs some background info first. This is for a direct mail company (a …

Member Avatar for darkagn
0
120
Member Avatar for k2k

i would really like to automate something like ... login to mysql cmd followed by creating a database following by creating tables... with one bat script here is my try: [code] mysql -u root password password; [/code] however it returned me this: [code] C:\Documents and Settings\lih>mysql -u root password root …

Member Avatar for k2k
0
270

The End.