132,726 Archived Topics
Remove Filter ![]() | |
Hi... thru trial & error.. I managed to get my homework program to compile. However I'm pretty sure I did it the long way :-| . **Can someone give me a direction to make it easier?** Brand new to C++ so bear with me. I have enough to make the … | |
the assignment i am working on ask to write a function that uses a loop to find the sum of the squares of all integers between 1 and n. then asks "what is the order of your functions?" my question, which may be obvious is what is n? and what … Software Development c++ | |
I would like to write an application that would search a site like "minitorrents.com" and automatically download torrent files of tv shows I like. I am thinking urllib.py might be able to do something like this. I need to be able to use the search feature of "minitorrents.com", then recursivley … Software Development python | |
Hello, I’m trying to increment numbers in a file – for instance, I would like to change the below 3 lines in a file by incrementing the numbers by 2 (or whatever the user gives). Mikef<20:40> JoeyS<23> Samt<14:39> So the end results should look like this: Mikef<22:42> JoeyS<25> Samt<16:41> I … Software Development file-system perl | |
i'm supposed to use nested for loops to estimate the value of e and display the estimation through each run. this is what i got so far, but i found out im not supposed to use setprecision so i've done it wrong but don't know what to do to fix … | |
Hi ive had to write an emulator for a specific MIPS program in C, but i also need to either single step through the emulator one instruction at a time or simply let it run, at the moment its running, but im not sure how i can step through it … Software Development c | |
although this question is basically related to a data structure, still I think that a good progrmmer should be able to answer it. My question is that [B]"is it possible to determine the order in which some ( numbers or characters etc ) are arrived for insertion into a min … Software Development c data-structure | |
I am very new to python and I have this code that I wrote... I am trying to make it so the turtle will bounce if it touches any of the box.. but somehow the turtle does not fuction the way it suppose.. I wonder can anyone give me a … Software Development python | |
program does not return the value entered #include <iostream> using namespace std; class testClass { public: int sum(); void print() const; testClass(); testClass(int a, int b); private: int x; int y; }; int testClass::sum() { int c; c = x + y; return c; } void testClass::print() const { cout … Software Development c++ | |
why does everyone gets so heated up..when it comes to turbo C++ compiler...can someone give me reasons Software Development c++ | |
I have scoured the I-net and cant find how to read MpEG-4 i finnally got it to read mp3's. Now i must move on to add mp4. Any ideas? -T Software Development | |
What are the ways to find substring in string in Python? Which way is most effiecient? Software Development python | |
hi I have a problem working a project for my school assignment but I keep getting this error and I have no idea what the problem is. Can anyone tell me what is wrong with it? the erroe messeges are Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at SearchGui.showResults(SearchGui.java:46) at SearchGui.invokeSearch(SearchGui.java:76) at … Software Development java java-swing | |
i need in c++ for running in a compiler this 1 12 123 1234 12345 123456 and another c++ file 654321 54321 4321 321 21 1 everyone can help me i need a code for running in c++.net i need exactly in the output Software Development c++ | |
[FONT=Comic Sans MS]Hello evreryone, I want to start by saying I did use the search function and I did read the fstream tutorial. But I didn't see the answer I need. I have been given a text file for which I need to read input from. Here is a partial … Software Development c++ file-system | |
I want to insert datetime into the database.I want to insert date as a dd/MMMM/yyyy format SqlDateTime x; if((TextBox1.Text).Length==0) { x=SqlDateTime.Null; } else { x=DateTime.Parse(TextBox1.Text); } command=sqlConnection.CreateCommand(); command.CommandText="insert into Table2 values('"+x+"')"; sqlConnection.Open(); command.ExecuteNonQuery(); Response.Write("Save"); when I add this type of dates ex.25/02/2005 it occur error, how can I solve this. Software Development | |
Hello, This is my first go at implementing an interface for a connection, reader, ect.. and it is also my first go at a three tier design,Although i have been studing this for some time now tring to put all of these pieces togeather. I feel like i am getting … Software Development database-design open-source vb.net web-design | |
What is the best way to sort a list of words with the case insensitive? Software Development python | |
Write a program that prompts the user to input a length expressed in centimeters. The program should then convert the length to inches and output the length expressed in yards, feet, and inches, in that order. For example suppose the input for centimeters is 312. To the nearest inch, 312 … | |
Hello. I'm pretty new to the world of C++. I'm trying to write a program that shows the pay of different levels of employees: managers -code 1- are on salary hourlies -code 2- get str8time for 40 hours, then time & a half commission -code 3- base of $250 + … Software Development c++ | |
:rolleyes: Hi. I'm new to this forum and well I'm also new to the programming languages. :) and im taking some programming classes c++) i need help with a program that im working on... I have tried for about two days to see what is the problem but i just … | |
A few of my friends from computer science, led by me, are developing a MUD game. I plan to run the server from home, and we plan to write the game in two source files. (Yes, we are determined to do this from scratch, without Lima or Mudscript.) The first … Software Development c++ client-server data-science | |
I am trying to construct a JTree to show the following data. The program should he able to read any data in this format. [B]ChildNode[/B]--------[B]Parent Node[/B] Employee--------Root Visitors----------Root Staff------------Employee Students--------Employee Graduates-------Students Undergrads------Students Interns----------Employee,Visitors I have this two columns of info stored in two linked list. LinkedList A and LinkedList B. … Software Development java linked-list | |
Greetings, I'm a former hardware guy (embedded C & C++ experience mainly) trying to get up to speed with Java and Perl for a set of graduate courses. I've written up a Perl script that simulates a scheduling algorithm, the script consists of two primary loops the first to parse … Software Development algorithm first-post perl queue unix | |
[code] #include <stdlib.h> #include <stdio.h> #define SIZE 15 int main() { int *a, i; a = (int*) malloc(SIZE*sizeof(int)); for (i=0; i<SIZE; i++) *(a + i) = i * i; for (i=0; i<SIZE; i++) printf("%d\n", *a++); free(a); return 0; } [/code] Why Is My Program Crashing?? Software Development c | |
Hi I m a final yr comp Engg student. I m working on .NET,i m usin mssql with ASP.NET,VB.NET for creatin online banking site.I hv a problem: Hw i can [B]record the transaction made [/B]by client for report generation. shal i use database for [B]report generation[/B]?if yes then hw? otherwise … | |
Could someone help me with this. I need to know how to write this in code for C. "if hashValue(variable) has a non-zero bit in the 4 leftmost (highest) bits" It has to do with bitwise shifting and is basically just an if statement's condition. Thanks Software Development c | |
I'm having type problems... if anyone could help that'd be great. Also, I haven't coded in c++ for 2 years.. very rusty :) Ok, I have the following dynamic char array and code [CODE] char* term1; term1 = "f(x)"; //i really have a loop here... if ( term1[1] == "(" … Software Development c++ | |
Greetings: I developed a simple application for text encryption, i managed to register the new extension, my question is how to open this files from outside the program?(when you double click on them), i know that you need to pass some parameters to the main method but im not sure … Software Development encryption first-post | |
I have attached my current source code to this message. It is in .java format. Here is a brief description of my problem: I have a program which accepts input for a Purchase Price, an Amount Tendered, and then displays the Change Due. Also, it must display the number of … | |
Here I have put together a small program compiled from the ideas of other members on this forum. It allow all DOS programs to work again on Windows XP including QBasic!!! Here Is the Link! [url]http://www.winxpdos.tk/[/url] Just Download DosWINXP - Fix and follow the instructions during the setup. Software Development qbasic windows-xp | |
Hi! [code] for (year = 1; year <= 15; year++) { cost = (interest_cost + monthly_instalment); totalCost+=cost; //after how many years the totalCost > price if(totalCost>price) printf(" %d ", year); } [/code] question:after how many years the totalCost > price? my problem: if the price is equal to 10 $ … | |
I need to write a program in C++ that will compute numeric grades for a course. The course records are in a file that will serve as the input file.Each line will have a last name, first name, ten quizes all on one line... you should calculate the average and … | |
Hey, I don't know if am wrong but I think a new idea has just striked me. We can all see that almost every program that we can imagine of has been created, thus making it difficult for us to think of new ideas or programs. But all these programs … | |
I just downloaded Dev-C++ and tried typing code. My first test was #include <iostream> using namespace std; int main() { cout << "Enter height in centimeters: "; int centimeters; cin >> centimeters; cout << "Your height in feet " << centimeters << endl; return 0; } But I have discovered … Software Development c++ | |
Note:- There are three files that will work by combining in a project. Most of the code for the Tokenizer class is already provided. You are to complete the routine Tokenizer::getTokens. The routine currently handles single entry, single range start and single range end. Your job is to the put … Software Development c++ | |
Anyone know how to put colored text on the screen in a bash script? Software Development shell-scripting | |
Hi, so I've got this program("main") that fork executes another ("user"). These programs communicate through fifos. One communication is a spawn call, where user passes an executable, main forks and executes it. So, I'm keeping track of all my processes using a task table. After the fork (for the spawn … Software Development c | |
Hello, I'm very new to python script and I am attempting to understand a part of a program developed at my work place because the have the most computer knowledge here, though still very little and the person who developed the program is no longer accesible. Here's the problem i'm … Software Development python | |
Greetings, I was just curious as to where I can find any good Assembly Language compilers on the net or elsewhere. Thanks in advance, DeFrog777 Software Development assembly | |
I have a string that is retrieved from a socket. I display this string as the text of a button. Some strings contains a '' which doesn't get printed because it's an escape character. So, I want to find all '' and replace it with a "\\" so it will … | |
I was wondering if anyone could help me with some things, im planning on making a little security program that comes up after logon to windows through the logon screen, reads a password from a file specified (for example 'E:\password.txt', and asks you to put in your password, if its … Software Development c | |
I'm almost done with my project, due in great part to the support and well-reasoned criticism here at Daniweb. But there's one last little problem that's only hitting me in release mode. In debug, the following function works fine to set information from a user-entered string to the CString/CString Map. … Software Development c | |
Hi, I am new to java.Can u Plz help me.I have a JcomboBox. I want to display all the ItemId from the database in that JComboBox. I don't know how to do that.Its Displaying only 1 item.ie.first record.Can any one plz help me. The code is:- public String selectItemID(){ String … | |
hi im using VS .net, MS Access and c# language. basically i tried to do an update command using oleDbDataAdapter and commandbuilder. i also searched for tutorials but i still cant get things going. could someone please tell me how come i couldnt generate update and delete commands using oleDbDataAdapter? … Software Development ide | |
I know how to use C++ to recieve input via [CODE]cin >> x;[/CODE] But now I want a way to constantly check for input without pressing enter. To my knowledge with cin you must press enter to assign whatever they typed to a variable. How could I make it so … Software Development c++ | |
Hi, I am finishing up an application in VB.NET at the moment, and am working on making the interfaces perfect, however I don't know how to go about setting the properties for the items on the interface so that if the window is resized, or the user has a larger … Software Development user-interface vb.net | |
i have this program and i need to count how many times each number is repeated and then delete the repeated i dont how to count them and then delete them can someone help?? [code]#include <iostream> using namespace std; struct node { int item; node *next; }; struct node *push_front … Software Development c++ | |
if i have a node that had a different number everytime and i want to delete only the nodes that are repeated(which has random numbers in them) and how would i count them to see how many of each i would have. can i use if statements to count the … Software Development c++ | |
ok, so i have been working on a program that i call "Sharppad" any ways it is a text editor. it has all teh basic functions. but it can also speak teh text you type. and convert text to .wav files. so you can listen to what you type. it … Software Development |
The End.