132,726 Archived Topics
Remove Filter ![]() | |
Here i have to define a function which will reverse a c-styled string. I have made 2 functions one using dynamic memory and the other not using dynamic memory. I would like to know of any improvements that can be made in the code. I would also like you to … Software Development c++ | |
hey...! we were given this assignment to make a game in c++ using pointer, classes, structures etc! we were also asked to introduce graphics in the game to get bonus marks! i've coded the game but the problem is that i have no cluee watsoever how to introduce graphics in … Software Development c++ | |
I have been working on this code for some time now. It is a basic graphics package. When the user clicks the draw button I need to create a chape based upon the user's input and put the shape into an array of shape references (up to 10). I attempted … Software Development gui java java-swing | |
I am just starting to work with Visual C++ Express 2008 and have run into a situtation I could use help with. To add a new data source to a project I am told to start the data source configuration wizard, this I can do. Next I am to select … Software Development c++ visual-studio web-server | |
I take one look at this project, define my structure.....and my brain goes numb. I don't know where to star..... ///////project/////// Write a program that dynamically allocates an array large enough to hold a user defined number of structures (string name and three double tests). Using a function, the user … Software Development c++ | |
I want a user to be able to select an audio file to play but am unable to figure out how to create a file open dialog box in Win32 API. I could create one from scratch but am hoping that there is an easier way than manually creating it. … | |
Hi. I am working on a little program that will be able to open files and read them. The problem is that i CANNOT tell the user to manually type the directory and the name of the file ! It would be madness. So i need to use GetOpenFileName dialog... … Software Development c++ | |
int sum=0, a=0, b=0; for (a=1;a<3;a++) for (b=1;b<5;b++) sum+=b; cout <<"sum =" <<sum; The answer is 20, sure, but I have'nt got my head around how it actually works. Could someone explain it step by step please? Software Development c++ | |
I get this error: [quote] error C2785: 'std::ostream &operator <<(std::ostream &,const Outsider<T>::Nested &)' and '<Unknown>' have different return types [/quote] When trying to compile the following code with VS2008: [CODE=cplusplus] #include <iostream> using namespace std; template <class T> class Outsider { private: class Nested { private: T myData; public: Nested(const … Software Development c++ | |
Hello guys, I am new to this website. It's nice to see these friendly people, anyways.... I have been trying to learn Java for a little bit now, I know the basics and some of the advanced things. But I came across a problem that is intriguing me so much. … Software Development java | |
How do you write: [CODE]x = [1,2,3] for i in x: print i[/CODE] in matlab? Software Development python | |
Good day. I have a problem with matrices / arrays, i cannot resolve. I have no idea how to start... I have two 2D matrices and i want to overlap (mix?) one over the other, no matter what dimensions they have. For example : a = [ (1,2,3,4,5), (9,7), (0,0,0,0,0), … Software Development algorithm c++ mathematics | |
I want to do a multithreading program in c++. How to create thread in C++. I made a class with methods start() , run() etc for this purpose. But how to give delays. Am not able to implement multithreading. Can anyone tell me how to do that Software Development c++ multithreading | |
I have a client /server file operation program.It works properly when i run the client and server program in the same system.but when i try to run the client in one system and server in another system i am getting an error in the cleint machine as "ERROR:Connection refused". Plz … Software Development c client-server | |
HI , Is it possible to get the window size in Java ,if so cld any 1 guide me....and also i need to fix the windows in a particular position ..how cld i do ds in Java. Software Development java | |
Hi, i am having trouble with an assignment. i need to create an array, store numbers in the array... sqaure, cube and square root those numbers individually using different methods. display the resuts with a dialog box. after that i need to find the sum of the numbers in the … Software Development java java-swing | |
Hi, I'm using GNU MP to get very precise square roots of numbers. I have three questions about my code below. [Code] #include <stdio.h> #include <stdlib.h> #include <gmp.h> int main(int argc, char *argv[]) { mpf_t num, sqrt; FILE *out; mpf_init2(num, 1000000); mpf_init2(sqrt, 1000000); printf("Enter a number to get its square … Software Development c | |
Hello friends, I'm working on a program that takes a number input from the user and recursively sums the number 'n' to one. For example, inputting a 5 would sum 1/5 + 1/4 + 1/3+ 1/2 + 1/1. I have sucessfully gotten the fraction sequence to display but I am … Software Development c++ | |
Thank you for your help earlier, I am just about there. I got the below code to work as I wanted below. Basically it imports the int's from a file (earlier help thank you) , then I find the min, then I sort by polar angle (all counter clock wise … Software Development java | |
Hello all, I need to update a field in a table with a value that contains dashes it. (e.g. 10-5-2). the field type is Text The problem is that the field gets updated with "3" which is the result of the mathematical expression 10-5-3. And that's not what I want … Software Development | |
[code=language] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char **arr,int size) { int unique = 0; /* The length of dst after removing duplicates */ int n=size; char *dst[n]; /* The … Software Development c file-system | |
ok i have 2 series of p... the user give which one was want... and then give the iterations that he/she want this is the series 4. P= sqrt(8*(1+ (1/9)+(1/25)+(1/49)+... )) 5. P= sqrt(24*((1/4)+(1/16)+(1/36)+(1/64)+...)) code:: first for series 4..... [code] int i; double: serieValue=0,pi=0; cout<<"Iterations"; cin>>i; for (long int n … | |
Hello! I want to find the position of objects on my sensor field. I have uploaded the diagram of sensor field attached In the figure S1-S8 are the laser sensor pointing into the field. While red and yellow are the balls [B] Case 1:[/B] if there is only one ball, … | |
I have attached my question. I am having some problems with the attached question. Well here is my code: Dim Name As String Name = TextBox1.Text If Name = TextBox1.Text And radLT20.Checked = True Then txtDisplay.Text = "Name is aged below 20" ElseIf Name = TextBox1.Text And rad20To40.Checked = True … Software Development vb.net | |
how can i compute a code if i enter numbers then if i press any key its stops and computes the inputs of all no. Software Development c++ | |
i couldnt figure out this any help anyone????? it should checked [TEX]if there an Appointment on the same Date and Time![/TEX] but its not. i can still put more then 1 record on the same date and time???? [CODE]void addAppRecords( ) { int number; system("cls"); //clear screen cout<<"\nHow many Appointments … Software Development c++ | |
Hi,all I am implementing the required assignment and face compiler error which i do not understand. Here is my class: [CODE=c++] class fooPlayer { public: fooPlayerfunc(){}//doing something here char askYesNo(std::string question); }; class fooPlayerFactory { public: virtual std::auto_ptr<fooPlayer> MakePlayerX() const; virtual std::auto_ptr<fooPlayer> MakePlayerO() const; private: std::auto_ptr<fooPlayer> MakePlayer(char letter) const; std::auto_ptr<fooPlayer> … Software Development c++ | |
Hello Java Experts, Suppose I visit 10 web sites , some of them open pop up window even when I have blocked them in IE , then I get say 5 additional pop up window , is there an easy way to write java program to close all such pop … Software Development java | |
I have SQL Server Express 2008 installed in my computer. I need to create a Login to this using C# code. That is, I need to implement the same functionality that is performed when you create a Login to SQL Server using the wizard. Also I need the program to … | |
Hey One and All, My teacher gave us a set of practice problems which are ones with addresses and she wants us to do the math out long hand and give her the answer by writing it out. On the test we will not be able to run it to … Software Development c++ | |
I am trying to use an action listener to fill an array, however I want to fill ONE array from two different sources: ComboBox Selection & JList selection. so I am trying to create an Array that will look similar to this format(each line is representing a different subscript) ComboBoxData … Software Development java | |
i want to add the value in map to a float value what should i do?s Software Development java | |
Any one know where I can find the pygame code to create a screen where you can draw simple lines by click and dragging the mouse? I know how to create lines with the pygame.draw.line(screen, (0,0, 0), (3,200), (9, 200)) script (using that as an example), but am looking for … Software Development python | |
Hi, this time I've borrowed a book called "Windows Game Programming for Dummies", albeit old it is still useful! However, I came across a problem writing a simple code the author made, namely the TextOut() The error it gives me at build time is as follows: [CODE]1>c:\users\shadow\documents\visual studio 2008\projects\g_app\g_app\main.cpp(75) : … Software Development c++ visual-studio | |
Hi, I have developed a windows database application in vb.net 2008 express and sql express 2008. Is there a way to create reports in the application? Thanks Software Development vb.net | |
Hello, I am having a hard time with understanding arrays and most importantly implementing them in methods and etc. Does anyone know a good source to learn about arrays from a to z? I really need to nail down these guys. Any help will be appreciated Thank you Software Development java | |
Did a search but found nothing that answers my question. Was assigned the game Hangman as a test and I haven't been able to do anything myself and it's due tomorrow. I've looked on tons of sites for help, but so far haven't found any. The test says [quote]You need … Software Development vb.net | |
Hi, I have done a search so please don't tell me to! :D I have this in a text box: [ICODE]<MenuItem version="1.0"> <item_text> <TEXT default_lang="en" str=""></TEXT> </item_text> <item_help> </item_help> <item_icon> <RIGHT str="softkey1.png" /> </item_icon> <item_action> <ACTION type="JAVA" suite_name="" suite_vendor="" entry_point=""></ACTION> </item_action> </MenuItem> �PNG IHDR F �1�e bKGD � … Software Development vb.net | |
Hi there, Ive been following a pygame tutorial from devshed ([url="http://www.devshed.com/c/a/Python/A-PyGame-Working-Example-Starting-a-Game/"]here[/url] and [url="http://www.devshed.com/c/a/Python/A-PyGame-Working-Example-continued/"]here[/url]) on making a small game to helpme get to grips with using pygame unfortunately ive ran into a little snag :< I've checked and re checked the code to make sure its as given but every time … Software Development python | |
Guten Tag, What we need to do is to call a variable (numbersToEnterInteger) from the main method to the total_average method. Also how do we pass the entire array to this method, rather than a single array element. Thanks in advance. Oh and also heres the code. [code] /** * … Software Development java java-swing | |
Hi, I am getting the following error in my code. [ICODE] malloc: *** error for object 0x3b0fe80: double free *** set a breakpoint in malloc_error_break to debug[/ICODE] When i debug it and do a backtrace i get the following [ICODE] #0 0x90c994a9 in malloc_error_break () #1 0x90c94497 in szone_error () … Software Development c++ | |
Hi, I am having trouble with a C++ problem for school. Im writing a program that takes input for the highest and lowest temperatures of each month, and stores them in a 2 dimensional array. I then wrote 2 fuctions to find the average high and low temps. Part of … Software Development c++ | |
[code]#include<iostream> #include<fstream> using namespace std; int main() { dnode<double> *listA = new dnode<double>; dnode<double> *listB = new dnode<double>; int val1; //first set of integers int val2; //second set of integers ifstream inFile; //declares the inFile //Read in a file to build the two lists inFile.open("lnkList.in"); //Open the input file //statement … Software Development c++ file-system linked-list | |
i have 3 tables student table roll no name sub table roll no subid subname markstable roll no subid marks 1)select name,subname,marks whose having marks less than 40 2)select sub name,marks whose having avg above 60% 3)select rank of each student can any one tell me the query for that Software Development sql | |
Hi, Below is my code. Hopefully it is in the correct format. I would like to know how to ask the user the dir and file name of certain file formats (they are red in the code) and have the program take those answers and put them into the program, … Software Development file-system python user-interface | |
Hello, I am having a hard time with understanding arrays and most importantly implementing them in methods and etc. Does anyone know a good source to learn about arrays from a to z? I m looking for things like book, website or some other media. I do know about Sun … Software Development java | |
Hi, I've got some c++ code(which i don't have much experience in). I'm trying to write the same code again in python but i'm not having much luck. The c++ code creates an array of x,y co-ordinates: [code=c++] for (double ix = 0; ix < nlat; ix++) { for (double … | |
im doing this code and it needs the absolute value of something here is what i have so far. the formula it gives you is x = absolute value of the square root of radius squared minus the y-intercept squared. this is the bit of code i have so far … Software Development python | |
[code] import java.util.Scanner; public class encryption { public static void main (string[] args) { int temp, first,second, third, fourth,encryped; int a = first,b = second,c = third, d = fourth; int a = c,c = a; int b = d,d = b; System.out.println("After swapping a = " + a + … Software Development encryption java |
The End.