132,725 Archived Topics

Remove Filter
Member Avatar for
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 …

Software Development algorithm c++
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, …

Software Development c++
Member Avatar for tkud
0
254
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 …

Software Development c++ ide
Member Avatar for suchithrac
0
166
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 …

Software Development gui java java-swing
0
153
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]==')') { …

Software Development c
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 …

Software Development c# linked-list
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 = …

Software Development java
Member Avatar for extemer
0
112
Member Avatar for Duki

Does anyone know how to add custom .dll and .h files to projects in Visual C++ 2008?

Software Development c++
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 …

Software Development
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; …

Software Development java
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 …

Software Development c#
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 …

Software Development java
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 …

Software Development dataset open-source vb.net
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 …

Software Development c
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 …

Software Development c c# c++ ios
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 …

Software Development c++ file-system
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 …

Software Development algorithm c++ file-system
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 …

Software Development c++
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 …

Software Development c data-structure
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 …

Software Development c++
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 …

Software Development c++
Member Avatar for nezachem
0
97
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 …

Software Development c
Member Avatar for abhimanipal
0
138
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 = …

Software Development c
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 …

Software Development sql vb.net
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.

Software Development c socket-programming
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 …

Software Development assembly
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 …

Software Development c++
Member Avatar for restrictment
0
92
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 …

Software Development c
Member Avatar for jephthah
0
139
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 …

Software Development c c# c++
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 …

Software Development java linked-list
Member Avatar for JamesCherrill
0
140
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 …

Software Development java
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> …

Software Development c c# c++
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. …

Software Development image vb.net visual-studio
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 …

Software Development vb.net visual-studio
Member Avatar for addilla
0
158
Member Avatar for mtech91

/*Hello, I am to create a program that gets a character and if it is uppercase, convert it to lowercase, if it is numeric print an error. I wrote the following code but my problem is that when I ask the user if he/she would like to quit, and I …

Software Development c
Member Avatar for Fbody
0
260
Member Avatar for bondgirl21

Hi , I have created a submit button "sbutton" that should take all totals from 3 boxes and if that total is greater than 1, then it should be subtracted from 1 and the remainder is suppose to be displayed as change...this is what i have [CODE]public void actionPerformed(ActionEvent evt) …

Software Development java
Member Avatar for bondgirl21
0
122
Member Avatar for ryan8806

hi guys, i'm having a bit of a prolem with C++, i've been programming c# for quite a while now, so i am not a novice lol. problem -- i've created the following ofstream in my main method: [CODE]ofstream out1("array1.txt");[/CODE] however later on in the code i call [CODE]out1 << …

Software Development c++
Member Avatar for ryan8806
0
2K
Member Avatar for Joonhwa Yang

help me~~~ what's wrong with it?![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 getData(fstream&, double, int&); int main() { double count, min, max, mean, var; double data[400]; count = 25; /* how can I …

Software Development c++
Member Avatar for Fbody
0
288
Member Avatar for farsen

Hi. Quite a simple question I guess. I have this xml file: [CODE] <?xml version="1.0" encoding="utf-8" standalone="yes"?> <tasks> <subject> <id>123</id> <headline>a big headline</headline> <content>important stuff</content> </subject> <subject> <id>222</id> <headline>even bigger headline</headline> <content>important stuff 2</content> </subject> <subject> <id>333</id> <headline>a small one</headline> <content>important stuff333</content> </subject> </tasks> [/CODE] With C# I have loaded …

Software Development xml
Member Avatar for PierlucSS
0
3K
Member Avatar for summey

Add a third box to the calculation. Calculate length (L), width (W), and height (H) for the third box. Calculate the total volume for all three boxes in question. I have gotten this far but i am unable to fig out how the proper syntax should be for this. Here …

Software Development c++
Member Avatar for summey
0
425
Member Avatar for mckrm

i am tired of opening my java applications through IDE s i wouuld like to know all the possible ways of opening my applications without having to write any thing in command prompt i found two i can make a .jar file or a .bat file are there other ways …

Software Development ide java
Member Avatar for mckrm
0
82
Member Avatar for camigirl4k3

these are my instructions: [url]http://tinman.cs.gsu.edu/~raj/2010/sp10/lab6.html[/url] this is what I have so far: [CODE] from myro import * from random import * def moveCell(pic1,cell1,pic2,cell2): x1 = 240*((cell1-1)%3) y1 = 240*((cell1-1)/3) x2 = 240*((cell2-1)%3) y2 = 240*((cell2-1)/3) for i in range(240): for j in range(240): pix1 = getPixel(pic1,x1+i,y1+j) r,g,b = getRGB(pix1) color …

Software Development python
Member Avatar for jcao219
0
203
Member Avatar for VilePlecenta

[CODE]class C_Class { public: struct _Get { void foo( void ) { m_Var = 0; } }Get; struct _Set { }Set; long m_Var; };[/CODE] I like to organize my functions with get and set structures [CODE] Get.ThisThing(); Set.ThisThing();[/CODE] But my structure's functions cant access the classes members unless I make …

Software Development c++
Member Avatar for Banfa
0
132
Member Avatar for john10

Hi, I'm new to C++. I'm having trouble detecting space bar as an input. I'm unfamiliar with using the char data type. I've tried using ASCII decimal numbers but only detects the '.' . And I'm unsure how to go about this without using string or anything advanced. [CODE] char …

Software Development c++
Member Avatar for john10
0
2K
Member Avatar for NinjaLink

Hello, I am having a difficult time getting my Binary Search Tree class to compile. I added 2 functions "add" and "search". Before I added the 2 functions. It compiled successfully. If someone can help me in the right direction. I will definitely appreciate it! [B]2 Functions:[/B] [CODE=Java] public BTNode<E> …

Software Development java
Member Avatar for NinjaLink
0
118
Member Avatar for johankotze

I know that this topic, sending sms for MS Access, is very widely discussed and believe me for its very confusing. My question is the following. I use a MS Access Application and want to send sms messages directly from within MS Access to clients. I also use Outlook 2007 …

Software Development visual-basic
Member Avatar for AndreRet
0
602
Member Avatar for mariosbikos

[CODE]#include <stdlib.h> #include <stdio.h> #include <time.h> #define MAX_ROWS 10 #define MAX_COLS 10 void sin1(char *map); int main(void) { system("chcp 1253 >nul "); FILE *fileptr; char myColchar,apantisi,map[MAX_ROWS][MAX_COLS]; int apotelesma,myColnum=1,myrow=1,k,a,l,c,row, col; char r,fileRow[MAX_COLS + 2]; // account for newline and NULL printf("dose tin diataksi me ton arithmo pou epithymeis(1/2): \n"); scanf("%d",&k);//edo tha …

Software Development c os-x
Member Avatar for mariosbikos
0
269
Member Avatar for python.noob

Hello Friends, I'm using PyQt 4.9... I want to have an IDE with code completion to work with Python and PyQt (since we are storing both the codes in a single file with .py extension).. Once i've tested eclipse and pydev plugin.. It was pretty good to work with.. Shall …

Software Development ide python
Member Avatar for MikaelHalen
0
1K
Member Avatar for Stefano Mtangoo

How do I truncate double like 99.998765 to something like 99.99 instead of 100.00? If some printf("%.2f", myDouble); gives 100 That is not what I want. Any help is appreciated

Software Development c++
Member Avatar for Stefano Mtangoo
0
199
Member Avatar for jordanhagen

Hey I'm having trouble with this program, for some reason im stuck and dont know what to do. If you could help me out that woud be great. What i have to do it this. Using classes, arrays, sorting and searching write a java program to manage an online address …

Software Development java
Member Avatar for javaAddict
0
1K

The End.