132,726 Archived Topics
Remove Filter ![]() | |
I am working on an assignment for class and cannot for the life of me figure out how to use letters to choose a case for a switch statement. Here is my code [CODE=CPP]#include <iostream> #include <cctype> #include <cstdlib> using namespace std; // prototypes void showMenu(); int getVowels(char*, int*, int); … Software Development c++ | |
I am attempting to read a text file. [CODE] ifstream indata; indata.open(filename); if(!indata) { // file couldn't be opened } else { // file opened } // keep reading until end-of-file string data; while (getline(indata, data)) { //this is where i want to store values } indata.close();[/CODE] I want to … Software Development c++ file-system | |
Hi, I've got a method that returns 'null' for a linked list [CODE] public LinkedList<names> Relate(names Student) { return null; [/CODE] How can i get it to return an empty List, so that I dont get a null pointer exception? Thanks in advance, Software Development java linked-list | |
Hey there, I'm quite new to C# but have an extensive background in Java so I know all the basics and perhaps more. But I've found i'm struggling with C#'s answer to dynamic binding at runtime. Whilst Java can take a namespace entry from an interface and turn it into … Software Development | |
Hello all, Please review these two piece of code and see why the latter doesnt resize as desired. When I add panel I find result becomes very strange. How can I resize widgets in a panel without such problem? Below are the two codes for simple editor PROBLEMATIC CODE [CODE] … Software Development python | |
I'm making a program that uses several forms, some are maximized some are not. My problem is when I try to run my program on other pc's that are using resolutions lower than 1280x800 the form now is to big for the monitor. Is there a way that the forms … Software Development visual-basic | |
i need to write a program that is acting as a simple personal address book with the record of name,email and phone numbers. The range of function should have: searching existing records. adding new records. deleting existing records. i need to include the last update date and time of the … Software Development c | |
someone help me make a program about this triangle....... * * * * * _ * * * * _ _ * * * _ _ _ * * _ _ _ _ * can someone show me the code for this program using "FOR LOOPS" please..... thanks..... Software Development c++ | |
Hey I been messing around with a web browser appliation. I didn't want to use the IE renderer but I wanted to use Gecko. (mozilla) after some research I came across: Mozilla Control 1.5. It was ideal as it added the renderer as a COM component. Well Supposed to! It … Software Development vb.net visual-studio web-browser | |
Hi all! I'm a complete pyhthon n00b and I'm trying to execute an external command from within my python script. For this I use the subprocess module. Here is all the relevant code: [code]class PipeThread(threading.Thread): def __init__(self, fin): self.fin = fin self.sout = "" threading.Thread.__init__(self) def run(self): self.sout = self.fin.read() … Software Development python | |
I almost completed the system but i'm having problem with reading/writing to text file Bcoz i can't login nor add details as its not reading from the the txt file Pls do help me Thanks In Advance Software Development c++ | |
I am supposed to rewrite the code below to "compute the number of digits to any base(such as base 2, base 16, base 8)." Just wondering if any of you can provide any explanation or pseudocode on how to go about doing this? Thanks for any help you can give … Software Development c | |
I am working on a code which opens a file (infile), copies it to an output file (outfile) and then asks the user for a string and searches for that string in the outfile and replaces every occurence of that string with & symbol. Here's an example: Contents of infile: … Software Development c file-system ![]() | |
Hi, I want to Access the device manager of remote machine through python program. The actions which I want to do with the program is Update Driver, Disable, Uninstall So please help me with in this regard if possible. Software Development python | |
is it possible to make python executable files that can be run on any platform?(without python.like c++) thanks Software Development python | |
Hi, Suppose I have a char*, which holds a string value. Now I want to print the address of that char*, not the string value. Pls help me in this problem. Amit Software Development c++ | |
Hi, Here's my situation.I'm reading a file that consists of characters including white space.Once I read them I'm counting the occurrences of each character.This means I need to count occurrences of white space as well.If I use ifstream I skip the white spaces and I dunno the filesize so I … Software Development c++ | |
I'm a IT newbie...one day a CST student asked me whether there is any way to write something at a particular location or not.....so am forwarding it to you all. Please guys help me.. Software Development c | |
I had gotten my code all working, and everything is capable of doing what it's supposed to do. The next step for me was to organize it a little better; re-allocating my definitions to different source code files and that such...and there the problem starts. After declaring three dyanamic link … Software Development c data-structure open-source | |
Hi everybody :) here is my problem: I have a Linux cluster I have to run tests on it by using scheduler PBS and I have installed the MPI libraries. What I have done so far is writing down with the help of vi editor a simple C programs using … Software Development c++ | |
Hello friends, Is there any problem with "Zero-Length-String" in C/C++. Pls mention if there is any type of problem in standard string library-functions like strcpy, strcat, memcpy, etc. Thanx, Amit Software Development c++ | |
Hello. I wonder if anyone can help me. I have the Following XML file, where I load multiple SQL database connection details: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ConnectionDetails> <ConnectionName ID="1">DAWS</ConnectionName> <ServerName>LOLLIE</ServerName> <DbName>DAWS</DbName> <UserName>sa</UserName> <Password>sa</Password> <Network>TCP/IP</Network> <ConnectionDetails> <ConnectionName ID="2">FreightEquipe</ConnectionName> <ServerName>FREIGHTFOCUS2</ServerName> <DbName>FE</DbName> <UserName>sa</UserName> <Password>sa</Password> <Network>TCP/IP</Network> </ConnectionDetails> <ConnectionDetails> <ConnectionName ID ="3">Media Express</ConnectionName> <ServerName>FREIGHTFOCUS2</ServerName> <DbName>ME</DbName> … Software Development vb.net visual-basic xml | |
Hi all :) , I am working on video plug-in in C++.NET. I have a video file. Its size is not fixed. It can be in MBs or GBs. I have calculated sample size and sample count of video file and now I want to prepend (insert in the beginning … Software Development c++ file-system video | |
Hi all - hope someone can help me with this because I've been trawling the web looking for an answer to no avail :-( I'm trying to compile a big project (300+ files) and I seem to have no syntax errors in the code, but I get the following when … Software Development c++ | |
Hello all. I am working on a programming 2 lab and am unsure how to code the input and output for this assignment. Here is what the lab sheet says: "Your program will be expected to read input from the first file specified on the command line and to write … Software Development c++ | |
Hi, I'm doing a low-mem implementation of a matrix, than can contain values from 0-4, this is fine for my program. I input 4 values (each 2bit) into 1 char(8bit). I'm using bitpatterns and shifting to extract values. But this is of cause hidden from the user. I've done everything … Software Development c++ user-interface | |
can someone help me understand what i'm doing wrong here. attempted to run, program builds but no output is generated and the compiler does'nt generate an error message. thank you all. [ICODE]import java.util.Scanner; import java.io.*; import java.util.ArrayList; public class arrayManipulator { public static void main(String[] args) throws IOException { ArrayList<Integer> … Software Development java | |
i have an assignment I've completed except for copying a queue into another queue. According to the book the code for copying is almost the same for a stack, but when I tell my program that copy = original, it's blank. Here is the code I have so far. BTW … | |
Hi, I develop the VPN accelerater card by using the C++ program. According to the explain of MSND, The function of 'CryptDestroyKey' can destroy the public key hanle and free the memory at the same time. But I got the false result when I use the function. So I wanna … Software Development c++ | |
I am a beginner and I would like to know whats wrong with my code why it is not working. I am trying to create a login form [code=csharp] private void btnSignIn_Click(object sender, EventArgs e) { string ConString; ConString = "Data Source=.;Initial Catalog=docworx;UserID=sa"; SqlConnection DbCon = new SqlConnection(ConString); m_Login = … Software Development c c# c++ open-source | |
i need help on setting the timer control to close an animated form within a specific period of time. Software Development vb.net | |
I need to design a function to find within a string a match to what is being searched and then replace that string with another. For example I need to search the string "baseball" with the string "base" and replace it with "basket". The code I have so far does … Software Development c++ | |
[QUOTE]In Visual Basic 6.0, control arrays could be used to specify a group of controls that shared a set of events. The controls had to be of the same type, and they had to have the same name. In Visual Basic .NET, control arrays are no longer supported. Changes to … Software Development oop vb.net visual-basic | |
Hello all, I am creating a program, and I am currently stuck. I need someone to guide me on track on what I am doing wrong. My main goal is to get the program to run. I can't even do that. My C++ code is provided below. Thanks for all … Software Development c++ | |
Hi, this is my first post on this forum. I am attempting to learn how to work with DirectX and make a game (Visual Studio 2005, C#). I found an extensive tutorial on DirectX games, but I can't find a necessary reference. Here is a link to the tutorial: [url]http://blogs.msdn.com/coding4fun/archive/2006/11/02/938703.aspx[/url] … Software Development assembly c# visual-studio | |
I'm doing a assignment for a class at my school and have written this code that follows with little help from DaniWeb users but I have one final touch problem. The problem is that if I run my strcpy function it always fills out the pzsDestination array to fill out … Software Development c++ | |
Hi guys I have been making a program over the last few days that grabs an image and re-paints it in paint in 256 colour. The main thing this program is for is so you can watch it getting painted in paint. It works perfectly on my computer but i … Software Development python | |
its supposed to search string a for string b and once string a matches the requirments it should be printed alongside string b. anyway it does that but the output isnt c c c c c c what it should be but it shows double that for whatever reasons: [code=cplusplus] … Software Development c++ | |
This is my resource file for a program: [CODE=cplusplus] #include "resource.h" // IDR_MYMENU MENU BEGIN POPUP "&File" //<=error is here BEGIN MENUITEM "&Refresh", ID_PROG_REFRESH MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Edit" BEGIN MENUITEM "&Options", ID_PROG_OPTIONS END POPUP "&About" BEGIN MENUITEM "A&bout AC", ID_PROG_ABOUT END END [/CODE] I've Checked the above over … Software Development c++ | |
I am administrator of a CMS system for publishing web content. Our editors send newsletters out in html format. Email clients that doesn't understand html display those newsletters as plain text. That means that all the the html tags are displayed as part of the content. I am working on … Software Development cms html-css publishing xml | |
I have a project that i need to do but i am having trouble with the code for a delphi application to auto find all the required files and database files that are required for the application to be able to function properly - meaning that if i move the … | |
Here's a funny program that simulates the matrix...waaay off topic... [CODE] #include <iostream> #include <ctime> using namespace std; const int NotUsed=system("color 02"); int main() { clock(); int n; double time; char matrixwords[]=" aijk FGHIJKlmnopqrs ABCDtuvELMNO PQRS bcde fghTUVWXYwxyzZ"; char matrix[]="01001100100101011110"; clock(); for(int o=1; o<=70; o++) { cout << "/"; } … Software Development c++ | |
Hi there i have some problem in this question . anyone help me on thaT? i don't know how to do the loop part. Thx. user has to enter 3 value and draws corresponding bar graphs using an ASCII character. For example, if the user entered 18,4,5, that program will … Software Development java | |
so far i already reach this line, but what make it pain in the ass is, i can't really seem to solve [B]how to make multiple operation in one execution[/B], i can only manage make it one operation in time, some say i have to [B]convert the operation like "1.22*3+2.1" … | |
Can anybody help me to do this program ? Problem is to write a program which will take another program as a input & it'll give a program flow chart. Ability of processing loops and if-else block would suffice. I can't understand where to start. Software Development c | |
![]() | I'm planning to connect a MIDI-keyboard(piano) to the external sound card (in the MIDI-port, duh), and program a program that will get the status from it. So my question is: How would I get the input signal from the keyboard(piano)? Which function/library would I use? (I only need ON/OFF signal, … Software Development c++ |
Hi again. I'm having two issues with this code, first of then strlen only counts the characters in the first word of the line I put into console. Then the second one is that the console takes the second word put into the console in to next "cin" and does … Software Development c++ | |
Hi, I'm pretty new to C++ and basically pretty new to all programming at all, have done something in java in school but never been programming something else than some scripts in work until now. My problem now is when I try to compile this code I have here then … Software Development c++ |
The End.