199,114 Archived Topics
Remove Filter ![]() | |
I am working on a project using 2D arrays ( I have never really understood the use, I know how they work, just have always had problems implementing) that holds a 4x4 "magic square." Magic squares contain unique numbers whose rows, columns, and major diagonals add up to the magical … | |
I'm getting a whole bunch of null pointer exceptions when I run my program. Here's the info: My program takes a text file (myIn.txt), will keep individual totals of all the characters, then put them into an ordered linked list. Now I need to build a pseudo-Huffman binary tree, with … | |
Im making this program. But im having trouble calling certain functions. Im having trouble calling ShellExecute, RemoveDirectory, CreateDirectory, FindFirstFile, & DeleteFile. I get the following errors when trying to compile... [CODE] c:\documents and settings\george\my documents\visual studio 2005\projects\mmpc v1.0\mmpc v1.0\prog.cpp(42) : error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const … | |
Hi, Despite triple checking my code for duplication and checking that the headers include #ifndef I still can't trace what is causing this error message: drawscr.o(.bss+0x0):drawscr.cpp: multiple definition of `massage' main.o(.bss+0x0):main.cpp: first defined here Ideally I'd create the pointer at struct definition time via a declarator. [CODE=C]// drawscr.cpp #include <iostream> … | |
Just starting to program, 1st assignment was to create lottery interface for randomize numbers 1- 54. displays 6 lottery numbers separate label control, Print button printing w/o command buttons showing, and an exit button. So far this is what I've done for coding what am I missing or doing wrong? … | |
Hello again everyone. This one is a project to help with understanding another project (aren't they all?)... At any rate, this was running up through main where I was attempting to call and get my grade computation function (which you'll see a bunch of stuff commented out). I fooled around … | |
Greetings! Im using this format to use and open database Set ac = New ADODB.Connection Set ar = New ADODB.Recordset strconek = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\record.mdb;Persist Security Info=False" i want to use variable value in my data source. my database is record.mdb. i want to make syntax for … | |
help me make this shorter.. i think this is too long.. i'm a newbie student.. #include <iostream.h> #include <conio.h> int main() { int x, n=0; clrscr(); for(x=1;x<=5;x++) cout << " " << x; if(++n==5) { cout << " " << endl; } n=0; for(x=2;x<=5;x++) cout << " " << x; … | |
Hi. I was wondering if someone could help me with this program.. the purpose of this program is to play tic tac toe, and I'm having difficulty getting it to compile. I have gone through it several times. I would most appericate it if anyone could look at it and … | |
Hi to all, just a small question? This is typed in the book. hInstance is used for things like loading resources and any other task which is performed on a per-module basis. What is pre-module basis. Google won't help. | |
I have one form that is doing a security check. if the serial number or whatever is found, then a button will appear to open the actual program. Welp, that isnt working out so well. How do I have a Tbutton open another form and close the first form? This … | |
i need a little help with the function, i created 9 buttons in VB6 at runtime. I set them to swap colors when each time the button is clicked. However, i want all the buttons to stop swaping colors when all 9 buttons are in the same color. so i … | |
I am working on a project in which i have to use Classes and do multiple things with different sorts of data. The basic question i have though is this: what am i doing wrong here in terms of this class declaration etc...i get ton of errors and cant seem … | |
Please...i ask helping from..all .... i want to write sound value from dinamic array,,to save in .wav type... i tried to write header .wav and result it i think is true... but i still confused how way to write sound value.. i put sound value in array, name is hasil_wav,,, … | |
Hi, I want to learn whether any components such as coloured bars whose heights are automatically changing in the two values which comes from one editbox. If I write 50 to editbox, The colour bar will be half of its height automatically. If I write 75 to editbox, The colour … | |
I'm having a lot of difficulty trying to figure out how to label headings in a 2D array using enum type. Here is the basic for-loops to read in and out the values of an array. (This is a 5x5 array). [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstring> … | |
#include<string> #include<iostream> #include<fstream> using namespace std; class fileHandleString { private: ifstream infile; ofstream outfile; public: fileHandleString() { infile.open("input.txt", ios::in); outfile.open("output.txt", ios::in); } ~fileHandleString() { infile.close(); } string getFromFile() { string str; getline (outfile, str); return (str); } }; The above code is what I am using but I keep getting … | |
I`m creating a desktop application which need s to store some data. I would probably store no more than 100rows with 10-15cells. Question is, should I use csv or an sql database; which one is accessed faster ? | |
I am getting an error i dont recognize and dont know what to do to fix it and input would be great. The error is: [CODE]prog4.cpp:23: error: no matching function for call to 'std::basic_istream<char, std::char_traits<char> >::get(char [500])'[/CODE] [CODE] #include <iostream> #include <ctype.h> #include <cstring> using namespace std; void encrypt(char ch, … | |
I am using a for loop to calculate the distance between the vertices of a polygon using for (i=0; i<N, i++) { j= (i-1) result = sqrt (sqr(X-X[j])+sqr(y-y[j])); } return result; This work fine however it doesn't and I cant calculate the distance between the last and first vertice e.g … | |
I am having a hard time getting this program (my homework assignment) to compile. I have looked it over a million times. The program is supose to read an inventory of an art gallery from "art.dat" into a struct (the Type and Place have to be enum types), and then … | |
Hello All: I have been thinking to learn develop a GUI using C++. Any suggestions on where to start? (Using which development kits and etc) Thank you | |
Hey suppose I have code like: <td id="something">I want to put stuff in here</td> How would I be able to put the value of a JavaScript array into the part where I want to put stuff. Say the value of the array at a position is hello, I would output … | |
I have this code: [code] void ShapeArr::publishStats() { double ap = 0.0; for (int i=0; i < currCount; i++) { Shape *s = arr[i]; ap += s->getAPRatio(); } cout << "Max APRatio = " << [COLOR="Red"][B]???[/B][/COLOR] << " Average APRatio = " << ap/currCount << endl; } [/code] What do … | |
Hello All, well this is my first post after a while of inactivity. I have run into a problem. I have an assignment for school, but when I debug my program using Dev C++(BloodShed) it give me a segmentation fault. I am reading from a file that looks like this: … | |
Hi I just started to learn Java and I woulkd like to make my life a little bit easier. I am looking for a good java compiler, something that works as good as Dev-c++ for c++. The application taht collor specific text of code and do the indentation. Thanks | |
i am new at programming basic.. i got this problem at school... i want to seek help from you!..its all about inserting and deleting arrays in c language!.. for example: given this output: Menu Operations: [1]Insert at beginning [2]Insert at middle [3]Insert at End [4]Show array elements [5]Delete array elements … | |
I am still a beginner, I recently started learning C++. However I am writing a program that converts currencies. For example Dollars to Euros. However when I have them pick the number of the currency they want to convert the number 2 doesnt work. Here it is: [CODE]#include <iostream> using … | |
Hello all, I have a problem and after searching for hours was hoping someone would have some information that would greatly help me out. I am developing a website locally on my development machine, (Mac OS X Tiger 10.4.11, Apache 1.3.33, and PHP 5.2.2). The site is based on a … | |
Hi all - I'm hoping someone here can help me with this as I have been trying to figure it out for the past 48 hours and have made little progress. I have two table in my database. The Primary Key (Serial) in tblTitles is the Foreign Key(Serial) in tblQuotes. … | |
Quick question here. I wanted a way to quickly change the URL of an image that is place on my page, so I came up with the following little script: [code=php] <?php echo "Status: $status"; if ($status == 'Online'){ rename('status.bmp', 'offline.bmp'); rename('online.bmp', 'status.bmp'); } elseif ($status == 'Offline'){ rename('status.bmp', 'online.bmp'); … | |
With my program, I have been trying to simulate the game of Roulette (at a casino) with a GUI, but I have a problem that I can't seem to figure out. For some reason, any kind of accumulator for "current funds" I place in the program doesn't seem to work … | |
I posted this in the html section but I am not sure if it will be that simple. I have a .php form that populates from info in a MySQL DB. Anyway, I want to have the ability to email the form(whatever happens to be displayed at the moment) to … | |
My tic tac toe board is done, but I need it to show up in the Dialog box, not the console, how would I do that? Here is my code: javax.swing.JOptionPane.showMessageDialog(null, "\n-------"); for (int i = 0; i < 3; i++) { System.out.print("| "); for (int j = 0; j … | |
I have this ArrayList that consist of list of structure and I would like to use the content of the ArrayList as the return type for the function bellow. Can anyone help please. [code] public struct DeviceSchedules { public string StartDate; public string EndDate; public string Interval; public string DeviceTimeZone; … | |
Hello I'm a newbie c++ student, I would like to ask how can I get this kind of program output by using c++: [B]10 10 10 10 10 10 10 10 10 10 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 … | |
I am a student and have to submit a Mail Program. I have been asked to do the program using [B]GridBagLayout[/B]. The program is working fine but for the Layout. I just am not able to manage the layout problems I am facing in this program. Could I get some … | |
I've been having some problems with a little piece of Javascript. I am completely new to the language, so bear with me. What the end goal is to have a few link on the left side of a table, when the user hovers over them, there will be a thumbnail … | |
Hi all, i'm new so not sure if this is the right place or not. But none the less i'm hoping someone can put me somewhere in the right direction! Basically i'm wanting to know is it possible to open ax existing exe? to create further add-ons to its existing … | |
I am trying to write a code to get IP of a computer. I have written the following code : <?php $ip=@$REMOTE_ADDR; echo "<font face='Verdana' size='3'><b>IP Address= $ip</b>"; ?> But the output I am getting is : IP Address= 127.0.0.1 i.e the common IP for all machines, what is the … | |
Hi All I am trying to write a perl script which will check some particular process is running in a machine or not. If the processes are running properly then its ok if the processes are not running then the script will start those processes and send a mail to … | |
I am trying to take the following code so that my bottom function first pulls out the first three scores of a text file and averages them, then pulls the last three scores out and averages them. I am using a known good text file that has 7 entries with … | |
Am trying to develop a front-end to Mysql database. I do not intend to use it for web purposes so I do not need PHP. which slanguage can I use? | |
I was wondering is there anyway to wrap the text in the columns? Also, is there a way to adjust the column width automatically? I know how to do it manually, just wondering if it would adjust on its own. :?: | |
hi ..... can any one help me how to change logger level of ACE framework loggers. wijitha | |
hi i am new to j2me. can any body say how an http connection could be done in j2me | |
Im having arrayoutofbounds error on my code. [code] import java.io.*; class s{ public static void main(String args[]) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String[] a = {"X","C","O","M","P","U","T","E","R","S"}; System.out.println("Enter Price: "); String b = in.readLine(); for(int i=0;i<b.length();i++){ System.out.print(a[b.charAt(i)]); } } } [/code] what am i doing wrong here? The output should … | |
hi i am not able to update my table.plz do tell me the bug in my code..... when update link is clicked in the first page..the table should get updated [B][COLOR="Green"]page 1[/COLOR][/B] $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $x = $_GET['name']; $result=mysql_query("SELECT * FROM table1 where name='$x'") or … | |
Hi I am programming in Unix. My task is really simple, but I don't know and where to debug this problem. My C program opens up the "ls" manual and makes an exact copy to a new file. However my program stops/freezes in the middle of read. (It works fine … | |
Hey guys, I wanted to know how can I code the game ball lines in Yahoo. It is a game very easy to understand and similar to tic tac toe but I just cant figure out anything as to how to start. Please help!! u can mail me on [email]chandanagrawal17@hotmail.com[/email] … |
The End.