132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kevinpovec

I am writing a program to convert ints to roman numerals. this is the function that gets called when the user enters a number. it works just fine for number 1-99, but then it will either crash, or give bogus data for any numbers higher that 99. any pointers as …

Software Development c++
Member Avatar for WaltP
0
319
Member Avatar for Marauder_Pilot

I'm trying to go through an array of char where all the chars are numbers, convert them to int, add them together, and save them as char again. For example, char string1[10] ={'0','0','0','9','3','1','4','0','9','1'}; char string2[10] ={'0','0','0','4','1','7','4','2','6','5'}; should produce an end result of char string3[10] = {'0','0','1','3','4','8','8','3','5','6'}; However, it won't convert …

Software Development c
Member Avatar for Ancient Dragon
0
119
Member Avatar for Dean_X

Here is my problem. I have searched everywhere for help on this one. I haven't found any. So, I sat down and tried the best I could to write this code: Now I am stuck: Here is what I have so far: [code] #include <iostream> #include <iomanip> #include <fstream> using …

Software Development c++
Member Avatar for WaltP
0
178
Member Avatar for ceyesuma

Can any one tell my why the images[i] is not affective? [code] /* * TPanel.java * * Created on December 9, 2007, 7:42 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package keycards; /* * TPanel.java * …

Software Development java java-swing
Member Avatar for darkagn
0
179
Member Avatar for kamatatul

Hi. When i run a dephi 7 project the executable file is created with only 1.9mb size, actually it should have been around 7 mb. Can any one help me ?

Software Development pascal
Member Avatar for squidd
0
90
Member Avatar for rw0

I'm trying to get the CreateProcessA function to work, but it continues giving me trouble and more trouble. Here's the code: [CODE]#include <iostream> #include <string> #include <windows.h> // CreateFile(), CreateProcess(), OpenFile(), etc. and // STARTUPINFO, PROCESS_INFORMATION #include <ctime> // srand(), time(NULL) #include <cstdlib> // rand() using namespace std; string execute(const …

Software Development c++
Member Avatar for rw0
0
101
Member Avatar for osva

Is there any way to do a permutation program with conditions.. like enter "n" girls and "m" boys can stand in a line but without two girls standind together or something like that... is there any algorithm to do this.. Thanks in advance.

Software Development algorithm c++
Member Avatar for osva
0
240
Member Avatar for doublex

hi there, i try to map a file in memory, in linux, using mmap, so that what i write in memory will be written in the file as well. the piece of code looks like this [code=c] fd = open(argv[1], O_RDWR); if (fd == -1) { error_message(__FILE__, __LINE__, "'open' failed …

Software Development c file-system
Member Avatar for doublex
0
125
Member Avatar for twickywabbit

Could someone help me with this code, I have syntax errors it appears. Here is the compiler's output: root@bowser03:/usr/include# gcc ouija.c -o ouja ouija.c:430: error: expected declaration specifiers or '...' before 'fp' ouija.c:432: error: expected declaration specifiers or '...' before 'fprintf' ouija.c:435: error: expected declaration specifiers or '...' before 'while' …

Software Development c++
Member Avatar for Salem
0
152
Member Avatar for cs_tx_usa

Hi, I've been working on a program that reads two binary files, then each value of file1 is divided by each value of file2. My binary files are 8-bit grayscale image files that is each pixel has a value between 0 and 255. I read them into byte arrays. I …

Software Development vb.net
0
84
Member Avatar for hosanna

i am trying to write some vba code to copy 200 workbooks from 200 folders on a network. example i have a directory called F Within F i have staffstreamA within STAFFSTREAMA i have 200 folders named as forth A1,A2,A3 ETC TO A200 Within folders A1 is a folder called …

Software Development visual-basic
Member Avatar for hosanna
0
82
Member Avatar for Savage221

Hello everyone. I have to write a program that needs to use generics. I'm basically just hoping someone can guide me in the right direction here. Lets say I need a program that loads different crates onto a boat. I have to have a boat class (generic class), then other …

Software Development java
0
82
Member Avatar for drew.haley

Can anyone give me an idea of how to run a console app and a windows form at the same time? Basically it's a game I'm creating and I want the console window to be the main game screen and the form for the map/game options/shortcuts. Thanks in advance, Drew

Software Development vb.net
Member Avatar for drew.haley
0
71
Member Avatar for Lynxus

I don't know what the proper name is for it lol, but I have an assignment. I am fairly new to delphi. I understand the homework rules so I don't expect it all to be done I just need help in the understanding and feel free to help as much …

Software Development algorithm delphi pascal
Member Avatar for Duoas
0
126
Member Avatar for lemme_live

Hey i have to create a vector in order to store shapes,in specific circles. but i have no idea of how to do such a thing. if anyone is able to help lemme know. thanks in advance.

Software Development java
Member Avatar for lemme_live
0
72
Member Avatar for balla4eva33

If I have this main: [CODE] { Matrix m1(3,3), m2(3,6), m3; Matrix m4(2,3); m1 = m1 + m2; m1.print(); m3 = m1 * m2; m3.print(); } [/CODE] then how do I need to adjust this implementation file to work with it!?(Right now I'm just trying to get the '+' '=' …

Software Development c++
Member Avatar for balla4eva33
0
161
Member Avatar for mmonaco27

I'm writing a simple complex number class in c++ and we're supposed to overload the four arithmetic operators to work on complex+-/*complex, complex+-*/double, and double+-*/complex. This is easy enough, but I wanted to try and make it a little more generic and instead of coding for doubles, extending the functionality …

Software Development c++
Member Avatar for mmonaco27
0
87
Member Avatar for Acidburn

Hey guys, How do you tell which type of GUI should you use ? I'm making a swing application but everytime I look at a Java example / tutorial they tend to use different ones for each example. Is there a reason? I'm guessing so which leads me to which …

Software Development gui java java-swing
Member Avatar for enes
0
103
Member Avatar for Dha_King

when i use security trimming. i cant figure out whats wrong. Please help me =) secure/web.config its in a map called secure with admin.apx [code] <?xml version="1.0" encoding="utf-8"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <location path="Secure/Admin" allowOverride="false"/> <system.web> <authorization> <allow roles="Administrators" /> <deny users="*" /> </authorization> </system.web> </configuration> [/code] Web.sitemap [code] <?xml version="1.0" encoding="utf-8"?> …

Software Development asp asp.net caching visual-studio xml
Member Avatar for Dha_King
0
109
Member Avatar for Agentbob

I'm trying to change the font for the turtle graph. [code] def goto(x,y): turtle.up() turtle.goto(x,y) turtle.down import turtle turtle.tracer(False) turtle.width(3) goto(-270,270) turtle.right(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) goto(50,50)[B] turtle.write('testing')[/B] turtle.tracer(True) [/code] That's a box I created and I want to add text to it. I looked around the …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for people123

Here is my code, it is suppose to take the double num, round it, and return it using call by reference, but when i try to compile it gives me an ambiguity error at [inlinecode]round(i);[/inlinecode]. please help. [CODE=c++]#include <iostream> #include <cmath> using namespace std; void round(double &num); int main() { …

Software Development c++
Member Avatar for people123
0
110
Member Avatar for sartann

am a new in c+= and i hve to do those two functins : strcpy and atoi functin....if anyone can help plz reply thanx alot

Software Development c++
Member Avatar for Ancient Dragon
0
75
Member Avatar for ConfusedMuchMor

Can any boby explain to me in simple english why this I get this error "Compiler Error CS0118" I'm a beginner about to throw my machine out the window!!! Below is the code for my Calcultor & the code for the DLL i'm using!!!! using System; using System.Collections.Generic; using System.ComponentModel; …

Software Development
Member Avatar for JerryShaw
0
104
Member Avatar for shenmue232

Hi guys Ive been having problems with calculations on arrays. What i want to do is times two numbers in an array for example: 4 x 4 = 16 Here's what i'm trying to do double timeArray[3]; cin >> timeArray[0]; cint >> timeArray[1]; answer = timeArray [0] * timeArray[1]; the …

Software Development c++
Member Avatar for shenmue232
0
325
Member Avatar for EMUGOD

[CODE] private int[][] gameBoard; private int[][] scratchBoard; public Intboard(int[][] world) { gameBoard = world; scratchBoard = world; } public void updateBoard() { gameBoard = scratchBoard; } //...skipping a bunch of confirmed working methods... public void advanceOneGen() { for(int x = 1; x<gameBoard.length-1; x++) { for(int y = 1; y<gameBoard.length-1; y++) …

Software Development java
Member Avatar for Ezzaral
0
120
Member Avatar for controlsi

Ive been working on this program for a little while now. and i keep getting the error messages: proj6b.c:61: error: syntax error before '{' token proj6b.c:68: error: syntax error before '{' token ive looked over the code and cant seem to find were the problem is. I am also a …

Software Development c
Member Avatar for Ancient Dragon
0
118
Member Avatar for aggagier

I know you use printf to print to the screen. What would I use to send the file to a printer using C++

Software Development c++ printer
Member Avatar for ithelp
0
211
Member Avatar for atish00

I am making a quiz show in C++ I need help in storing the answers of a quiz in a array like [QUOTE]cout<<"Q.1 Who is Known as the lady with lamp ?"<<endl<<endl; cout<<"A. Sonia Gandhi "<<"B. Florence Nightngle"<<endl; cout<<"C. Mother Tersa "<<"D. Madame Rozario"<<endl<<endl<<endl;[/QUOTE] So how do I Input the …

Software Development c++
Member Avatar for ithelp
0
117
Member Avatar for ravi_forum

Hi Can any one help me what is the order of evaluation for the expressions in printf() function in C language..... I have sooo much confusion in the expression like a=10; printf("%d",a++ - a++); the output is -1 any one can help me how -1 is the output...... But when …

Software Development c
Member Avatar for Salem
0
922
Member Avatar for ilikecheese

I have an output in one format that I need to basically read line by line and reformat into another file. I was originally going to try do this in Java, but Java does not have a lot of good classes for text processing. Here is an example of my …

Software Development file-system shell-scripting
Member Avatar for radoulov
0
101
Member Avatar for ilikecheese

So I have text file that I need to reformat so I can import it into a spreadsheet. I was originally going to do this in Java, since I had a vague familiarity with it, but there are few good classes in Java that are useful for text processing, and …

Software Development vb.net
Member Avatar for iamthwee
0
192
Member Avatar for Jakiro

[B][/B] If the user input a equation something like 2 + 2 * 2 + ( 2 - 2) infix expression. how i collect the data to stack? using string? someone can give the algorithm. I don't have idea to get the input.

Software Development algorithm c++
Member Avatar for iamthwee
0
143
Member Avatar for Underdog67

Here's the code: [code] #include <iostream> #include <fstream> #include <iomanip> using namespace std; const int MAX_EMPLOYEE = 500; enum PayType{H, S}; struct EMPLOYEE { int idNumber; char name[21]; double payRate; short int numberDependents; enum PayType; }; int LoadMaster(EMPLOYEE& record); int main(){ int count; EMPLOYEE record; count = LoadMaster(record); cout << …

Software Development c++
Member Avatar for iamthwee
0
118
Member Avatar for cessna172

[code=c] #include<stdio.h> #include<stdlib.h> struct sales { int week; char name[20]; int units; int price; }; int main () { char data1[300]; int itemAmount = 0; char itemNumber[10]; int timeToFinish = 0; int elapsedMinutes = 0; int iLoop = 0; int readCounter = 0; int finishTime[20];//holds the finish items int counter …

Software Development c
Member Avatar for invisal
0
131
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

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

Software Development c++ queue
Member Avatar for Ancient Dragon
0
2K
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?

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

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

Software Development visual-basic
Member Avatar for hkdani
0
129
Member Avatar for sreenathvp

Eg: Calculator How to assign numbers in key board to corresponding buttons in the calculator?

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

Software Development c linked-list
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.

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

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

Software Development visual-basic
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 …

Software Development visual-basic
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 * …

Software Development c++
Member Avatar for sbenware
0
94
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> # …

Software Development c++
Member Avatar for Lerner
0
99
Member Avatar for sa-al

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

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

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

Software Development c linked-list
Member Avatar for InfiNate
0
147

The End.