132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 . . … | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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 … | |
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 | |
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 | |
[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 … | |
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 | |
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 | |
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++ | |
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++ | |
I want Twice binding datagrid but get following error: Cannot bind to the property or column users on the DataSource Software Development | |
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++ | |
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++ | |
hi guys! plz help with the code in C which can calculate the fectorial of 500. Software Development c | |
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 | |
Hi! Dear Friends.. Can you please help me to answer : Can mutation testing be successfully used in an industrial environment? Thanks! Software Development java | |
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++ | |
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++ | |
please tell me the reason for the error.[code]new Double("25D"); // Ok new Long("25L"); // Error[/code] Software Development java |
The End.