132,726 Archived Topics
Remove Filter ![]() | |
problem was first posted [URL="http://www.daniweb.com/forums/post1174806.html"]here[/URL]. lionaneesh got a problem with this question. I tried to solve that question myself. He solved himself, but i failed. the questions is: This program/function will delete all those characters in the first string i.e str1[] that matches any character in the second string i.e … Software Development c | |
I'm working on my poker clock again now that I found the source, and I need some help with loops. I have a label that has the round number on it, and labels for the small and large blinds for the current round, and for the next round. I have … Software Development vb.net | |
Hello All, I have a problem regarding the grid view win C#.. i have a grid view called subGrid, i am using it to get the values sent by a Stored Procedure.. subGrid.DataSource = form.GetRegistrant(); Now this subGrid has the following values.. id name result 1 a Yes 2 b … Software Development c# | |
Hi all, I am a PHP programmer with no knowledge on VB, so I apologize for my intrusion :). What I need is to split a .doc file with N pages into N different documents, using the first word of each page as the name of the documents. In php … Software Development visual-basic | |
Hi to all, I was wandering if there is build-in method to search in a string, I'll explain my self: I have the following string(for example) this- is; text, example for the forum I need to search for a certain word(lets say example) and look the closer char(from a list … Software Development | |
Just a quick one- I'm writing code that asks the user for a filename and checks that it exists. If it does it has to print the file's contents, if not print a message. [CODE]import os fileName = raw_input("Enter the name of the file: ") if os.path.exists(fileName) == True: fileName.read() … Software Development python | |
Hello Everybody, Im a VB hobbyist, ive been learning for about a month or so now, ive created a few basic handy applications. Ive mainly been using web browser controls and am now experimenting with httpwebrequests. Im the treasurer of the Mont-Tremblant Rugby Club, now the season is starting again … Software Development api vb.net web-browser | |
Hi I really need help figuring this one out I have been working at it forever. I am trying to pass an array of 3 pointers, which are themselves arrays, and get the sum of the last two pointers and store it in the first pointer. The pointerarrays are filled … Software Development c++ | |
Error at line 56 and 68. Unable to resolve it. [code=c] #include<stdlib.h> #include<stdio.h> #include<ctype.h> #include<string.h> #include"stack.h" #include"queue.h" #include"calcstack.h" #define MAXSIZE 80 void intopost(stack *stackPtr, queue *queuePtr, char expression[]); void pushvalue(queue *queuePtr, char item); void pushop(stack *stackPtr,queue *queuePtr,char item); void noBracket(stack *stackPtr,queue *queuePtr,char item); void removeBracket(stack *stackPtr,queue *queuePtr,char item); int precendence(char … | |
I am trying to add a new record to a database using VB.net. I have used code for one table in the database which worked and then copied and pasted it and changed the column names to the ones in the other table and then I got an error saying … | |
plz help me in this code . its not giving the output plz correct my code [CODE]#include <stdio.h> int main() { double fahr , celsius; printf("Enter the temperature in degrees fahrenheit:"); scanf("%d",fahr); //convert to celsius celsius = (5.0 / 9.0) * (fahr - 32.0); printf("%if temperature in celsius",celsius); return 0; … Software Development c | |
The following is an excerpt from a complete program that runs without any errors. It has 2 file dependencies which it uses to access and store information. The program, in its entirety, displays a menu with 5 options the user can choose from. [LIST=1] [*]View Characters [*]View Items [*]Add Character … Software Development c++ file-system | |
I see this in KR C programming language. I really did not understand what it means. If it is line number of current source then we could use __LINE__. But what is the use of #line actually? Software Development c | |
Hi all, i am new to java, i am doing a grid computing project, anyone related to the fields please reply me. so that i can discuss my problems with u. regards Software Development java | |
what code can I use to make a fortune cookie program that will give a random result when you input bday, month and year? I'm new with this but this is what i typed first: [CODE]#include<conio.h> #include<stdio.h> main() { int dd,yy,mm; clrscr(); printf("Know your Fortune Cookie reading"); printf("input birth day") … Software Development c++ | |
Why do I have do use the Seekg()-function two times in a row to make it work? Code: [CODE] fbin.seekg(0); //jump to record at start of file fbin.seekg(0); //jump to record a second time (else it won't work) fbin.read(name, sizeof(name)); //read from data field 1 fbin.read(reinterpret_cast<char*>(&age), sizeof(int)); //read from data … Software Development c++ | |
can someone tell me what i am doing wrong #include<iostream> using namespace std; [CODE]void char play_again(char letter, char 'y', char 'n'); [/CODE] [CODE]void char play_again( char letter, char 'y', char 'n') { char 'y', 'n'; char letter ; cout << " Would you like to play agian?( press y or … Software Development c++ | |
i got errors and i cant find out what they meant i have went down the program line by line trying to figure them out and i am having no success. I am trying to use call by call values and parametrers n this program. (list of errors are below) … Software Development c++ | |
Hi, I need a charting API which can plot static Line Graph for 300 million points. API should support zooming and panning of axes comfortably after plotting 300 million points. I tried with JFreechart but the result is not good for even 100 million points. Does anybody have any Idea … | |
I had a hard drive crash and lost all my source code for my poker clock program, but still have the program. Are there any programs I can use to reverse engineer my program so I can get the code back? Software Development hard-drive vb.net | |
error: default argument for `int&ns1' has type `int'. i cant figure out why this error is popping up it says the error is on line 3, anyone know how to help? [CODE]#include<iostream> using namespace std; void score_num(int &ns1=0,int &ns2=2,int &ns3=3, int &ns4=4, int &ns5=5, int &n6=6, char gam_answ); void display_score(int … Software Development c++ | |
I have a program that will load a datagridview with data from a database via a dataset at form load. On this same form, I have a button named "count", that when pressed, I want it to show a message box indicating how many entries were loaded into the dataset. … | |
Hereby the code i have wrote about a small porgram to to find the maximum number from three numbers. Waiting your comments,,, GET AX; MOV BX,AS; GET AX; MOV CX, AX; GET AX; CMP AX,BX; CMP AX,CX Put AX End Software Development assembly | |
I'm going through my professors notes right now and he says in big bold print "Length does not include terminating null". I've looked at 2 different versions of this and in both cases it counts the terminating null. Can someone explain why this is happening. Case 1 [CODE]#include <stdio.h> #include … Software Development c | |
Hi, I dont understand why, but for some reason, the system does not recognize the buffered reader in the fileReverse method. Every time I try to invoke the readLine method on aBufferedReader, I get null as a result. Even my file reads: null null null null Can someone please help … Software Development java | |
I'm trying to get a SQLite3 DB to populate a wx.ListCrtl. I can get it to print to stdout/stderr without any problem. I just can't seem to figure out how to display the data in the DataWindow/DataList? I'm still learning programing/python so any advice would be appreciated. After two days … | |
I am a part time college student getting his butt kicked in C++. I dont know how to access the members of the class in this header file. How do I do it? And please use plain english. Thanks // Specification file for the Complex class // constructor included. #ifndef … Software Development c++ | |
I am a little fuzzy on how to post my code so everyone can see it. I am too dull witted to figure out the instructions given on the blank thread. Would any one be willing to help me out? thanks Software Development first-post vb.net | |
[CODE]#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #define TRUE 1 #define FALSE 0 void new_item(); void list_item(); void search_item(); void buy_item(); void list_buy_item(); struct item { float price; char item_name[20]; int n_item; struct item *ptrnext; }; struct item*headptr, *newptr, *currentptr,*previousptr,*headptr2, *newptr2, *currentptr2,*previousptr2; void main() { char ch; int choice=TRUE; … Software Development c | |
![]() | I have this code: [CODE]class Member: def __init__(self, name, typeOM, fee, yearJoin): self.name = name self.typeOM = typeOM self.fee = float(fee) self.yearJoin = yearJoin # Reader Methods def getName(self): return self.name def getTypeOM(self): return self.typeOM def getFee(self): return self.fee def getYearJoin(self): return self.yearJoin def getMemberTypeString(self): if self.typeOM == 'P' or … Software Development python ![]() |
Good day guys. Im just new in c++. I just want a little help/guide/sample code or steps on how to get files from a certain txt files(notepad) and display it on screen. Vice Versa. Thank you for giving time. God bless. Software Development c++ | |
Good Day, Im new to visual basic. i created a simple database form using microsoft access as my database. my question is how can i create a browse button or text box where i can change the database path at runtime. please help. Tony Software Development microsoft-access visual-basic | |
Hello, i need assistance with a mortgage calculator program. the requirements are : Program designed with GUI to Write the program in Java (with a graphical user interface) and have it calculate then display the mortgage payment amount from user input of the amount of the mortgage and the user's … Software Development gui java java-swing user-interface | |
[code]package inventory; // Product class import java.util.jar.Attributes.Name; // Creates Product Class, contains the inventory components public class Product { public static main(String[] args) {//begin main method Number number = new Number(001); Name name = new Name ("Highlighter"); Units units = new Units (6); Price price = new Price (2.50); //print … Software Development java | |
Hi there, I am having some trouble compiling what I believe to be unmanaged code (output from monodis) back into C# for analysis. What is the correct procedure or program to use for this? Thanks. PS. I don’t know whether it would help at all, but the output begins like … | |
I'm trying to figure out how to change the edit box colour when I click on the button. Btw, i'm using VC++ 6.0 (MFC). One way I can do is assign a colour variable. When I click the button, the colour variable changes. When the program call the OnDraw function, … Software Development c++ | |
I was wondering if anyone knew of a good library to use for making gui's in c++. You should know that i know of winprog but the problem is that its c. I don't want c because i haven't learned c. I would like to use something that you code … | |
Hi, I have serial data that can come in at irregular intervals from a hand held barcode scanner. The scanner continuously looks for a barcode (no button or trigger is ever pressed) and when the scanner captures a valid barcode it sends the code to the PC over serial. What … | |
[CODE]//A Fight #include <iostream> #include <cstdlib> #include <ctime> #include <string> using namespace std; using std::cout; using std::endl; using std::cin; using std::string; int main() { char again = 'y'; while (again == 'y') string yourweapon; cout << "Enter weapon: "; [B][U] cin >> yourweapon;[/U][/B] string yourname; cout << "Enter first name: … Software Development c++ | |
Hi, i have to write a program: user inputs a string of characters (letter, digits spaces etc any possible charachter) and then the program should calculate how many letter, digits, spaces, and other characters are there. I did this question using just a char array and then for loop with … Software Development c | |
So I've got a major issue in my program. I'm working on building something in OpenGL (using glut), the problem is that I changed my TexureLoader from being just a function, that takes the storagevariable as reference and the name, to a class, which just takes the name (and got … | |
Hi I'm trying to play a WAV file. I have used the following code... [CODE] PlaySound("C\Sounds\GAME_OVER.WAV",NULL,SND_ASYNCH); [/CODE] I get the following [CODE] Error 7 error C2065: 'SND_ASYNCH' : undeclared identifier c:\Users\Chris\Desktop\Pacman\v1.0\Pacman\Pacman.cpp 65[/CODE] I have also tried... [CODE] PlaySound (TEX("\\SOUNDS\\GAME_OVER.WAV"), NULL, SND_SYNC | SND_NODEFAULT); [/CODE] With this i get no sound … Software Development c++ | |
Okay. I have been seriously struggling with this lately. I've searched and searched forever. The closest I found was this thread here: [url]http://72.5.124.102/thread.jspa?messageID=1662301[/url] What I am trying to acheive: I want to give my interface grayscale images for icons(png), and have a filter class that can color the grayscale images … Software Development image java user-interface | |
Hello Everybody! first of all,i`m complete noob at software developing.I don`t even know what language i should write the program that i need.Basically, i want to create program that has sort of "sand box" environment for windows. The purpose of the program is to make the human who currently logged … Software Development c++ | |
Hi, my program don't work? Propgram stop on: this.textBox1.Text = "(New text)"; [CODE="C#"] Thread demoThread; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.demoThread = new Thread(new ThreadStart(this.ThreadProcUnsafe)); this.demoThread.Start(); textBox1.Text = "Written by the main thread."; } private void ThreadProcUnsafe() { while (true) { Thread.Sleep(2000); this.textBox1.Text … Software Development | |
Hey, How can I terminate a server after some number of connections (don't want it to keep on running forever). I've written in it C, using the select system call, and an array to store the connections made in.. [CODE] while (1) { FD_ZERO(&rdset); FD_SET(clients[fd], &rdset); ( select(max+1, &rdset, NULL, … Software Development c | |
I'm trying to code the game of Minesweeper. I haven't put in graphics just yet, only text labels on the buttons. Here is my create_widgets method: [code] def create_widgets(self): #Create the grid. self.square = [] self.isAMine = [] for i in range(self.y): row = [] mineRow = [] for j … Software Development python | |
Can someone please explain why this function will not compile. [CODE]#include <stdio.h> #include <string.h> #include <ctype.h> // This function determines if a string is a palindrome. /* This function reverses the characters in the string * passed by the caller. */ void is_palindrome (char* string) { int i; int length … Software Development c |
The End.