132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Cosa

I am writing a program which reads in a database of albums into an array of structs, the data can then be deleted, modified etc. The problem i am having is that when i try to modify a specific record using a search term and then strcmp to the album …

Software Development c++
Member Avatar for Cosa
0
101
Member Avatar for Naween

In my java code I get this error. Enyone fix it for me Plz? cannot find symbol `:method getSelectedItem()` This is my code. import java.awt.*; import java.awt.event.*; import java.applet.*; public class soda extends Applet implements ActionListener, ItemListener { Label lblhead,lblfoot,lblsize,lbltype,lblamt,lblbal,lblavilability; Button b1,b2,b3,b4,b5,b6,b7,btnref; Choice choice1; Checkbox ch1,ch2,ch3,ch4,ch5; float num,money,change; CheckboxGroup cbg,cbg1; …

Software Development java
Member Avatar for sciwizeh
0
105
Member Avatar for aalhamad

I have a line to pharse like this: 1.2 2 3 4 5 2.4 2.4 2.6 3.5 5.6 3.7 3.4 4.7 3.4 56 I need to sort them in a map of string and vector<double> The problem I'm having is I'm trying to get each colum and store it in …

Software Development algorithm c++
Member Avatar for ArkM
0
92
Member Avatar for mksakeesh

[code] #include<fstream.h> #include<string.h> using namespace std; class emp { public: char *per; void write() { ofstream out("ss.txt",ios::app | ios::binary); cout<<"Enter some character ....\n"; cin>>*per; //out.write(per,sizeof(per)); out.write(per,strlen(per)); } }; void main() { emp e; e.write(); } [/code] Why this is not working?

Software Development c++ ios
Member Avatar for Clockowl
0
162
Member Avatar for nimloman

Example: There are literally hundreds of programming languages. The number of nonblank characters is : 48 So far i have come up with: for (cin.get(inputLetter); inputLetter != '\n'; cin.get(inputLetter)) { if ((inputLetter >= 'A' || 'a') && (inputLetter <= 'Z' || 'z')) numUpper++; }

Software Development c++
Member Avatar for ArkM
0
114
Member Avatar for coveredinflies

Hi, I have got to the section on command line arguments on my online textbook. All the information I can find on it seems to assume that I know how to put command lines into my program but I don't have a clue :$ Can anyone help?

Software Development c++
Member Avatar for coveredinflies
0
107
Member Avatar for atish00

#include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> class array { private: int A[20]; int ele; public: void input(); void display(); void bub_sort(); void insert(); void del(); }; void array :: input() { int i;char ch[20]; for(i=0; ch[0]!='x'; i++,ele++) { gets(ch); A= atoi(ch); } ch[0]=0; ele=(ele-1); return; } //======================================================================== void array :: display() { …

Software Development c++
Member Avatar for atish00
0
103
Member Avatar for brittaink

Hi, I am using Microsoft Infopath to try and create a front end for a access database. I have a data source which stores an id number for the customer. This id number relates to a secondary data source called tblUsers. the id field then relates to the users forename, …

Software Development display microsoft-access xml
Member Avatar for brittaink
0
224
Member Avatar for Cosa

I have a problem where i want to compare strings, however the comparison cant be case sensitive. I have tried to use stricmp strnicmp strcmpi They do not seem to be part of the <string> or <cstring> libraries on my compiler. I am using the GNU compiler. Is there a …

Software Development c++
Member Avatar for Cosa
0
91
Member Avatar for ulquiorra

Hello all, I am in need of some assistence. So if anyone could help that would make my day;). This is a piece of my code [code] for( int i = 0; i <= 13; i++ ) { cout << "SLOT : " << slotNumber; fprintf( HashTable, "\t%i slot : …

Software Development c++
Member Avatar for ulquiorra
0
305
Member Avatar for dinilkarun

Hi, I am using the following syntax in VB 6.0 to copy distinct values from strTableName to TableName strOpen = "Select distinct * into" & " " & strDupTableName & " from " & strTableName rst.Open strOpen, db, adOpenDynamic, adLockOptimistic But I am getting a runtime error "-2147217833". I have …

Software Development visual-basic
Member Avatar for dinilkarun
0
458
Member Avatar for manzoor

[CODE]#include <iostream> #include <vector> using namespace std; // global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' '; const char TIE = 'T'; const char NO_ONE = 'N'; // game function's prototypes void displayBoard(const vector<char>& board); // function that displays the game …

Software Development c++ legal
Member Avatar for Ancient Dragon
0
122
Member Avatar for hny_lyn

hello to all!!! i really don't have any problem this time, but there's something i wanna learn more about! we are discussing classes and inheritance now!! my professor have given us quite examples of it....but it wasn't that clear!! can i ask for a simple codes that implements a class …

Software Development java oop
Member Avatar for javaAddict
0
196
Member Avatar for tomii

Hi All, I am using VB6 with mysql database recently. But I am having problem with showing the text type of mysql field value in a Msflexgrid. Msflexgrid1.TextMatrix(i, 3) = "" & rdoRS.rdoColumns("products_publisher").Value This line gives error message. Anybody could help me? Many thanks. Tomii

Software Development mysql visual-basic
Member Avatar for tomii
0
86
Member Avatar for oali

hi everyone i really need help with my problem, i have created a full online tutorial using applets however one of my html pages containing this particular applet will not show the applet when viewed in any broswer. The applet contains an image and without the image the browser shows …

Software Development java java-swing
Member Avatar for madhavipoudala
0
100
Member Avatar for ocreds

I'm new in java programming but somehow I understand little especially basic because I have a background in Vb6 I find it difficult because it has lot of java keyword that I dont understand. Now, I need your help to defend this program in our class. Help me please. If …

Software Development java java-swing
Member Avatar for javaAddict
0
219
Member Avatar for dav555

I have a file containing different tags and datas like: VERSION: 1.1.1 NAME: xxx VALUE: 1.5 START_IMAGE ‰PNG.... END_IMAGE i can't change this file....it is not mine... But i need to read the png image between the START_IMAGE and END_IMAGE tags. I don't know the length of the image-data. How …

Software Development image java
Member Avatar for dav555
0
106
Member Avatar for Naween

Does java has toString function? eg : txtamt.setText(toString(num)); But it doesn't work. Plz give me the right method.

Software Development java
Member Avatar for Miyuki Suzuki
0
79
Member Avatar for m_banerjeein

Hi All Guys few quick questions on C.. 1. What does "static void <function_name>(argument1,argument2)" means.. 2. Whether this would give a compilation error if i write this piece of code... int a =1 , b=2,c=3 ; (a=b)=c;

Software Development c
Member Avatar for jephthah
0
129
Member Avatar for jorgeflorencio

[QUOTE]Hello everyone I have the code that allows me to colect values acording if its Fail or Passed[/QUOTE] [CODE]package spimonitoring; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.lang.reflect.Array; public class InspectionResults44{ public static final byte HEIGHT_AVG_RESULT = 6, HEIGHT_RANGE_RESULT = 11, AREA_AVG_RESULT = 16, AREA_RANGE_RESULT = 22, VOLUME_AVG_RESULT = 29, …

Software Development java
0
128
Member Avatar for StayElla

Is there a substring code to find out only the first letter of a word? I know that sr.ReadLine.ToUpper will read all the letters capital, but can it read just the first letter?

Software Development visual-basic
Member Avatar for QVeen72
0
115
Member Avatar for masterjiraya

[code=cplusplus] #include <iostream> #include <string> #include <stack> #include <cctype> //alnum #include <cassert> //assert using namespace std; #include <sstream> string infixTOposfix(string); int evaluarRPN(string); int main () { // main began string infix, posfixWspaces, dummy; double result; char repeat; do { cout << "\nPlease enter the expression in INFIX: "; getline(cin,infix); posfixWspaces …

Software Development c++
Member Avatar for WaltP
0
130
Member Avatar for manzoor

[CODE]#include <iostream> #include <vector> using namespace std; // global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' '; const char TIE = 'T'; const char NO_ONE = 'N'; // game function's prototypes void displayBoard(const vector<char>& board); // function that displays the game …

Software Development c++ legal
Member Avatar for WaltP
0
125
Member Avatar for pipisumthin

Right now I am learning how to use C++ programming on Linux. I just learned how to copy a file, now the question is, how can you tell if a file has been copied or not? I think I need a command or a function that allows me to check …

Software Development c++ file-system
Member Avatar for WaltP
0
258
Member Avatar for me_roy

Dear All, I got difficulties here related with extracting max and min value from every column in array. So far i just can extract max-min value at a time by changing column index, stupid approach..eeeh, but i do it just for testing that code could extract right max and min …

Software Development c
Member Avatar for WaltP
0
435
Member Avatar for jonabie

Hey could someone help me bout my problem.... can someone tell me how to make an asterisk frame using for loop statement in C++ and also 1 thing.... how can i display an input letters into an asterisk... eg.. username: bulbulito password: ********

Software Development c++
Member Avatar for jonabie
0
268
Member Avatar for blrjohn

Hello guys, I m very much new on C. Need all of your help to improve. Right now I m getting one problem. I m writing the very basic program.. [code] #include <stdio.h> int main() { printf("Hello World!\n"); return 0; } [/code] When I complie it is showing success. But …

Software Development c flash
Member Avatar for Aia
0
121
Member Avatar for abu taher

I make a project with a access file with back up. But I want to create same file from my project. I mean when I need i make the same file from my project. help me

Software Development visual-basic
Member Avatar for abu taher
0
109
Member Avatar for nixon623

Hi,im new to c++, i use Dev-C++ to compile my programs i have little problem with ofstream function,i think you guys can help me What program does? Lets say my Computer name is nixon-pc. Program displays text in cmd: "File nixon-pc.html has been created" and than create file C:\nixon-pc.html . …

Software Development c++
Member Avatar for VernonDozier
0
145
Member Avatar for HLA91

Hi all I copied the source code for a simple text editor from [URL="http://www.leepoint.net/notes-java/examples/components/editor/nutpad.html"]http://www.leepoint.net/notes-java/examples/components/editor/nutpad.html[/URL] I tried to modify it slightly by adding a help column to the menu bar so you would click Help> then a drop down list would appear with About and you click that and a frame …

Software Development java java-swing open-source
Member Avatar for HLA91
0
164
Member Avatar for loimarie

hi to everyone!i need help for my assignment in our numerical analysis.our instructor asked us to solve a linear equation using turbo c language.Can anyone help me with this problem,a simple sample code will do.Ex.f(x)=2x^3+x^2

Software Development c
Member Avatar for jephthah
0
525
Member Avatar for scatterjoy

I have a FileSystemWatcher in my code, and the event it's linked to isn't triggering when a file is changed. I watched it in Debug, and the path, notify filter and EnableRaisingEvents are all being set correctly. I've looked at several code examples for FileSystemWatcher and I'm not seeing what …

Software Development
Member Avatar for dickersonka
0
157
Member Avatar for flecture

i created a header file named "pop.h" and saved in tc->include folder.......the codes included in header file is shown below [code]#include<stdio.h> #include<conio.h> int ssipower(int,int); void main() { clrscr(); printf("power=%d",ssipower(3,3)); getch(); } int ssipower(int a, int b) { int i,c=1; for(i=1;i<=b;i++) { c=a*c; return c; } [/code] when i tried to …

Software Development c
Member Avatar for jephthah
0
83
Member Avatar for cellus205

Im having trouble trying to pass a parameter to a SQL query that I am trying to run on a DataTable, that Im using to Dynamically populate a treeview. Im not having any trouble filling the first nodes, but to fill the second nodes, I have to use a query …

Software Development sql vb.net
0
304
Member Avatar for MaestroRage

I am trying to get the main to read in a number, and use that number to do a mod calculation. However my best efforts are giving me garbage values. I am sure I am not using the pointer correctly, yet my efforts have gone unrewarded. How can I get …

Software Development c
Member Avatar for jephthah
0
214
Member Avatar for _tim

Hi All - Unfortunately I don't have code to paste for you, but I'm hoping perhaps someone will be able to narrow my focus a bit on this one... I developed a windows forms app that has a very strong data dependency. When deployed, it works as expected if the …

Software Development
Member Avatar for dickersonka
0
77
Member Avatar for lil_panda

How do I convert a char* or an unsigned char* to an unsigned int?

Software Development c++
Member Avatar for Radical Edward
0
632
Member Avatar for atish00

Guyz I Don't want to write another array function using VOID I wanna do it using pointers for the extra grades...... can ny one give me a clude or just6 a sample code snippet on how to return a 2-D array ?? I have to fing sum of upper half …

Software Development c++
Member Avatar for atish00
0
272
Member Avatar for Alex Edwards

I'm having some trouble on deciding to purchase Scott Meyer's Effective/More Effective C++ books or Herb Sutter's Exceptional/More Exceptional C++. I'm assuming both cover the same concepts, but I could be wrong. Opinions/Votes please from C++ programmers that found the one they read useful. There's also an option for both …

Software Development c++
Member Avatar for Alex Edwards
0
270
Member Avatar for raj416

I have a string variable .. i need to append some value in front of this string ... i tried pad left function.. but it was not working for example string s= "sample" now in want to insert "daniweb " , so my output of string s will be "daniweb …

Software Development
Member Avatar for nvmobius
0
678
Member Avatar for Saddi

I wanna make a program for a little shop the progs idea is to calculate the daily amount and the items and monthly report but I don't know where to start please help me :) :)

Software Development vb.net
Member Avatar for Saddi
0
85
Member Avatar for y_itay

Hey guys, I was trying to find some way to filter and sort data in a Generic Collection of List<> Type but couldn't find any way to do this. I have Tried to use [B]BindingSource [/B]which didn't really filter any of the data in my collection. Anyone have any idea …

Software Development
Member Avatar for y_itay
0
636
Member Avatar for STUDENT#101

I wish to create a program that will be a quiz game (multiple choice) questions I need to be able to display it and the options and allow the user to use the mouse to click to the option which he thinks is the correct answer. My answers will be …

Software Development c++
Member Avatar for STUDENT#101
0
141
Member Avatar for tan4ik

Hi everyone, I need to create an image scroller in my .NET application. I've found a way to do it using html (with the marquee tag) but the problem is the pictures displayed are static. Meaning I have to define them in the code. I need the image scroller to …

Software Development image javascript
Member Avatar for nvmobius
0
150
Member Avatar for kaloon

Hi every body I have project is like book electronic . any words in this book I can translate it into more than one language . The idea behind this project is imagine page of any a book . assume this book wrote by English language , the page's consist …

Software Development perl
Member Avatar for nvmobius
0
130
Member Avatar for Wiizl

I'm trying to make basic windows service that should write into application event log some text once every minute. So I'm using a timer. But the Tick event doesn't fire.. I've tried all kinds of timer1.start() or timer1.enabled=true ... but nothing works. Everything with service itself is ok- I mean …

Software Development visual-basic visual-studio
Member Avatar for nvmobius
0
557
Member Avatar for pejy69

Hi My name is PJ. I am a adult student. I have read the rules regarding homework for those who are not willing to help themselves and i agree, but i have tried for the last few days to work this out and cant understand what i am doing wrong, …

Software Development
Member Avatar for nvmobius
0
109
Member Avatar for Sundarararjan

Also do tel me what is the process of creating functions in seperate files and referencing them under a single file. I use a dev-C++ for my coding

Software Development c c# c++
Member Avatar for Salem
0
78
Member Avatar for Naween

I created a java Applet. It has an error. The error is applet not initialized. I need urgent help for this error. I created the interface using netbeings & coppied the code to the Jcreater. :(

Software Development java
Member Avatar for Ezzaral
0
92
Member Avatar for dumbokia

i need help on this question. any kind souls can help me? with great thanks. ive already done some part of it but still cant get it working [code=cplusplus] #include <iostream> #include <string> using namespace std; class court { protected: string name, ic, telephone, fn, day; int time; public: court(){}; …

Software Development c++
Member Avatar for William Hemsworth
0
105

The End.