132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for samweb$

I have the following code which works on the .txt file The file content is as given below. ;* ;* { = LanguageIso LANGUAGE_ISO = "EN" } [CODE] xlong MyProg::Import(const char* buffer, xlong x) { try { while (1) { if ((bytesParsed = AddLine(tmpSrcBuffer)) == -1) return FALSE; tmpSrcBuffer += …

Software Development c++
Member Avatar for samweb$
0
117
Member Avatar for shashikanth

I have a time values in MS Access database 4:30 2:15 3:20 4:45 I want to sum the time using VB code .The sum of the time should be 14:50 hrs not 14:10 hrs. Please help

Software Development visual-basic
Member Avatar for debasisdas
0
2K
Member Avatar for FlowerGirl1027

I need to analyze a list of five cards as a poker hand. After printing the cards, the program needs to categorize accordingly. Royal Flush: 10, Jack, Queen, King, Ace all of the same suit. Straight Flush: Five ranks in a row, all of the same suit Four of a …

Software Development python
0
71
Member Avatar for Goalatio

Compile this with NASM16 (Must be compiled in .COM format!) It will display all 256 colors usable by the BIOS in a neat rectangle that contains 16 columns, 17 rows (Just counted, it may be different). KNOWN BUGS: If you enter FULLSCREEN or run this program from a DOS operating …

Software Development assembly operating-system
0
566
Member Avatar for RoflNinja

Hello again, got another Java question. I am trying to draw an oval from the Alien class to the Canvas in the Game class. Here is the code [CODE]import javax.swing.*; import java.awt.*; /** * The Evil Ovals! * * @author Eric Foertsch * @version Nov 2009(1.0.0a) */ public class Alien …

Software Development gui java java-swing
Member Avatar for adams161
0
565
Member Avatar for Nazere

Hey guys, im verymuch stuck on my assignments and its due today. i was wondering if someone could help write the program. Ive attached a zip file containing the detail of the assignments, there are three in total. I really would appreciate any help. thnx naz

Software Development python
Member Avatar for snippsat
0
72
Member Avatar for jigglymig1

for this function i need help with the email part. I am trying to string compare domain with 3 different string possibilities (.com,.org,.edu). void add(char firstName[][32],char number[][9],char email[][32],char lastName[][32],int count) { int i; int length; char domain[3]; cout << "enter their name\n"; cin >> firstName[count]; cin >> lastName[count]; cout << …

Software Development c++
Member Avatar for jigglymig1
0
95
Member Avatar for FancyShoes

why does this happen? I want it so that it does not display the text using an or statement and not using and or anything else. [CODE] if( 1 == (2 || 2 || 2)) { cout << "Should not display"; }[/CODE]

Software Development c++
Member Avatar for Dave Sinkula
0
101
Member Avatar for kako13

Hi, I want to edit a record inside a txt file. So first a search for the record inside the file and display the record to the user. But for example, if the user want to edit the name, how I can go to that position? [CODE] void editar_cliente() { …

Software Development c++ file-system ios
Member Avatar for Lerner
0
230
Member Avatar for Stefano Mtangoo

Hi all, to strengthen my C++ knowledge I want to code a DLL to record sound and write it to a file. So Far I want it to be windows based may be later Linuxed. So here is my first step, make simple program that does that. But I have …

Software Development c++
Member Avatar for Stefano Mtangoo
0
91
Member Avatar for rena0514

hello again....i'm in need of help. for my final program for my programming two class i have to write a program doing operations on sets. i wanted to know if someone could put me towards the right direction and give me an example of a program using friends of a …

Software Development c++
Member Avatar for rena0514
0
113
Member Avatar for infern0

Hi, I am having trouble getting the item and its calories to match. Could anyone tell me what is wrong with this bubble sort? Thanks [CODE]int main() { string food[100]; string search; int calories[100]; int x = -1; bool look = false; do { x++; cout << "Enter a menu …

Software Development c++
Member Avatar for infern0
0
110
Member Avatar for dwisely

Below is a sample of my text: 01"111111","2345678","7891090","M0000023" 02"111111","2345678","7891090","M0000023" 03"111111","2345678","7891090","M0000023" 01"111111","2345678", "7891090","M0000023" 02"111111","2345678",7891090","M0000023" 03"111111","2345678",7891090","M0000023" etc. Sometime the input file has lines that wrapped and sometimes it does not. I need to read the text file line by line and then if the line does not begin with "01" or "02" …

Software Development vb.net
Member Avatar for dwisely
0
164
Member Avatar for infern0
0
62
Member Avatar for hassedo

hi i am new to c/c++ i am making a program for a project in class i have only started the program it still has no content, only structures however when i compiled and run it in C the first printf wont display in the .exe there are no errors …

Software Development c display
Member Avatar for hassedo
0
94
Member Avatar for kele1

i'm trying to write a doubly linked list code but i'm having a lot of errors please help me identify what my problem it please thank you in advance[CODE] #include <stdio.h> #include <stdlib.h> struct listNode { char data; struct listNode *nextPtr; //struct listNode *prevPtr; }; typedef struct listNode LISTNODE; typedef …

Software Development c++ linked-list
Member Avatar for mrnutty
0
145
Member Avatar for tgreiner

I am having a problem with overloading an operator within a class structure. Below is the program that illustrates my problem. It defines a class Matrix, creates two matrices and multiplies them. I created to multiplication functions. The first is a straight function, the second uses the overloaded * operator. …

Software Development c++ matrix-multiplication
Member Avatar for Dave Sinkula
0
2K
Member Avatar for maverick405

I am working for this program all I want to display the users all attempted score and user gets only four chance to take quiz, the code below works fine the only problem is that 1. I dont want to display " Your Previous Score" for the first attempt, as …

Software Development c++ display visual-basic
Member Avatar for valtikz
0
157
Member Avatar for Judgment

I require a program that will remove all trailing whitespace (any spaces that occur at the end of a line) from a text file. It should do something like: Space Stripper Enter the name of the file to be stripped: news.txt Any help would be gladly appreciated. I'm also seeking …

Software Development python
Member Avatar for Namibnat
0
184
Member Avatar for simonfoley

Hi there Just started an IT course recently, and although flying with HTML and other disciplines, I'm having trouble with some C++ syntax. I have a problem with a short piece of code I have to write, which has to read input from the keyboard for 5 fictional employees, each …

Software Development c++ visual-studio
Member Avatar for simonfoley
0
234
Member Avatar for coolfriends

Hey everyone, I am working on this integer decomposition problem that I cant figure out. I would really apperciate your help on this. Here is the problem: It is known that every integer n greater than 17 may be written as the sum of three distinct integers, each greater than …

Software Development c
Member Avatar for ssharish2005
0
120
Member Avatar for jennwenn25

Hello, Been trying to work on this tic tac toe game and I can't seem to figure out how to post the moves to the board. Everything as I have it now seems ok with the compilier but I just need help with that part. Let me know . . …

Software Development c c# c++
Member Avatar for Clinton Portis
0
217
Member Avatar for Philip435

Hey I need some help with my java game Im making. I wont to have an menu with 4 options, startgame, highscore, option and quit. They quit button is easy I just setVisible(false) but when i click on the other buttons I wont to remove the buttons and include new …

Software Development java
Member Avatar for Ezzaral
0
116
Member Avatar for merse

If I want to define what is a double -> double function pointer I use: [CODE]typedef double (*double_fp1)(double);[/CODE] But what if I would like to distinguish const double -> double it is possible? And the above definition consists the const double -> duble function?

Software Development c++
Member Avatar for mrnutty
0
104
Member Avatar for PDB1982

Can anyone tell me why I am getting this message: "...error C2296: '%': illegal, left operand has type 'double' " here is my code: [code] double Q1median(ifstream& students, string studentid[60], string fname[60], string lname[60], int Q1[60], int Q2[60], int Q3[60], int MidTerm[60], int Q4[60], int Q5[60], int Q6[60], int Final[60],int …

Software Development c++
Member Avatar for DavidRead
0
120
Member Avatar for zobadof

does anyone know of any good sites, to start learning opengl?

Software Development c++ opengl
Member Avatar for mrnutty
0
97
Member Avatar for p3rsia

hi i tried to do this q but i stuck in the middle of writing codes Write a program that creates an array dynamically whose pointer must not change, initialize the array to random values between 0 and n (inclusive) using rand () where n is a value entered by …

Software Development c++
Member Avatar for Clinton Portis
0
164
Member Avatar for nerdthon123

To All Daniweb users, I have just started the programming trail of learning, i recently got courses from E learning center on how to use C++. The first Code (the hello world project) is where I'm having a problem. On Visual Basic 2010 Beta2 which is the only one that …

Software Development c++ microsoft visual-basic
Member Avatar for jonsca
0
127
Member Avatar for smoothe19

welll it is just a program that generates 2 random numbers for the user...the user inputs their answer and if it is correct it adds 1pt to their score. But then it is also supposed to generate a new problem, but I do not know how to code that in. …

Software Development java java-swing
Member Avatar for smoothe19
0
135
Member Avatar for trzypak

so i was supose to create a software for my class that converts the 24 hour notation to 12, but now i got really lost with it i used the A symbol to display am and the P symbol to display pm heres what i have so far but i …

Software Development c++
Member Avatar for jonsca
0
117
Member Avatar for discovery-power

Hi All, I recently made the move from Windows to Mandriva Linux 2010, in Windows I used an IDE to write my code then build my projects, in Linux I cant find a suitable IDE im really struggling to build my projects. Now I can write my projects in kwrite …

Software Development c++ ide unix
Member Avatar for discovery-power
0
118
Member Avatar for jlego

in vb.net 2008, i have no idea what this means error: the item "obj\debug\associateassist.frmdbsetup.resources" was specified more than once in the "resourceS" parameter. duplicate items are not support by the "resources" parameter. does anyone know what might cause this error / how to go about fixing it.

Software Development vb.net
Member Avatar for jlego
0
123
Member Avatar for RayvenHawk

Ok I have an assignment that requires me to create 3 macros to do 3 different function. I have the first one completed but the 2nd two are giving me some trouble. #2) Write a macro that takes in 2 32-bit integers and divides the first from the second and …

Software Development assembly
Member Avatar for RayvenHawk
0
132
Member Avatar for wingers1290

Hi, this is the final step of my program, so far I've set a button to change the default save location and now the last step is to be able to click on the serialized file and have it open in my form. The problem is I don't know how …

Software Development c c# c++
Member Avatar for wingers1290
0
201
Member Avatar for Puddles

I am attempting to write a program that interfaces with Command prompt (simple, bring up a tasklist, user enters the program they want to get rid of, and then the computer does the rest), I already have been able to interface and bring up a tasklist, the code compiles with …

Software Development c++ user-interface
Member Avatar for Puddles
0
236
Member Avatar for Ryveris

I know there have been posts in the past where some were asking about "how to make a zodiac calculator," and I kind of have the same question, but I've done the research and wrote most of the code out, so it's nothing like that. I didn't quite understand how …

Software Development vb.net
Member Avatar for Ryveris
0
151
Member Avatar for xavier666

[INDENT]Hello everybody, I just started learning C and decided to join this site. But as soon as I posted some of my code snippets here, immediately I got a stream of insults (thanks to [icode]conio.h[/icode]). But it's not my fault, I've grown on [icode]clrscr()[/icode] and [icode]getch()[/icode] (due to my experience …

Software Development c pdf
Member Avatar for xavier666
0
133
Member Avatar for andrewktmeikle

Hello, I'm having a slight problem with my code. The task is to create an indexing program, similar to the ones the google uses. The problem i'm having is that we have to remove the common ending from the words left after the removal of stop_words(which is a list variable …

Software Development python
Member Avatar for andrewktmeikle
0
2K
Member Avatar for tkud

Hey everyone, I'm having this problem with the aforementioned API. Here is the code to initialize the common controls i want to use..(commctrl.h is already included in my program) [CODE] INITCOMMONCONTROLSEX icex; icex.dwSize=sizeof(INITCOMMONCONTROLSEX); icex.dwICC=ICC_BAR_CLASSES; InitCommonControlsEx(&icex); [/CODE] However, when I try to build , it gives me this error: [I] 1>tkud.obj …

Software Development api c++ visual-studio
Member Avatar for tkud
0
3K
Member Avatar for zobadof

I have learnt: Hello World, Input, Operators, Square of a number, Making decisions and Repeated question. I don't know what would be best; either to revise on that, or move onto something else. I would like to know what would be the best idea for me next. Thanks, Zobadof

Software Development c++
Member Avatar for zobadof
0
53
Member Avatar for zobadof

Sorry in advance! I did solved thread before I checked if the code somebody said worked. It turned out they didn't help much. The problem is MattyRobot gave me code to open a new window. Now it opens with CMD to; I only wanted the window. I will give you …

Software Development c++
Member Avatar for zobadof
0
131
Member Avatar for jas2010

I want Twice binding datagrid but get following error: Cannot bind to the property or column users on the DataSource

Software Development
Member Avatar for jas2010
0
151
Member Avatar for C++ Beginner

When I run the program it only prints out the numbers entered into the array but it will not print out the name of the array. Can anyone assist me on why it is not working? Example: The amount each salsa sold are: 4 The amount each salsa sold are: …

Software Development c++
Member Avatar for zobadof
0
75
Member Avatar for merse

It is possible to restrict template parameter? [CODE]template <class T> class myclass { ... };[/CODE] For example I want that T might be int double or my own defined complex but nothing else!

Software Development c++
Member Avatar for mrnutty
0
246
Member Avatar for es cape85

hi guys! plz help with the code in C which can calculate the fectorial of 500.

Software Development c
Member Avatar for jephthah
0
98
Member Avatar for abhipro

I have a Windows Application which contains functions for Encrypt/Decrypt which is working fine when both the functions are put together as a single code. Now, I wanted to call encrypt and decrypt functions independently of each other, thus, I split the code temporarily in say, function1() and function2() for …

Software Development encryption
Member Avatar for gusano79
0
110
Member Avatar for smart.java6

Hi! Dear Friends.. Can you please help me to answer : Can mutation testing be successfully used in an industrial environment? Thanks!

Software Development java
Member Avatar for gusano79
0
78
Member Avatar for new programer

hello all I'm trying to do a concatenation function I do not want to you use the strings property where we can add strings, I need to add two strings and save them in one string without the use of addition "+" i have three variables title , first_name, last_name …

Software Development c++
Member Avatar for new programer
0
157
Member Avatar for merse

I have a very simple code and I don't understad it's result. I think, this have to print "OK" but does not! [CODE] #include<iostream> #include<math.h> class real { double value; double error; public: real(double,double); friend bool operator==(const real&,const double); }; real::real(double val, double err) : value(val), error(fabs(err)) {} bool operator==(const …

Software Development c++
Member Avatar for merse
0
101
Member Avatar for Nagarajan.M

please tell me the reason for the error.[code]new Double("25D"); // Ok new Long("25L"); // Error[/code]

Software Development java
Member Avatar for majestic0110
0
80

The End.