199,114 Archived Topics
Remove Filter ![]() | |
I'm trying to write a program that uses a DIMACS Graph input, and do several diffent things with it. I've got most of the methods working except one: An all-pairs shortest path that uses Floyd's Algorithm. I've written it a couple times, and it works sometimes, throws and exception sometimes, … | |
Respected Sir/madam, Could you help me in understanding the dynamic memory allocation for a 3D matrix. I have attached the file.I am allocating memory dynamically for the 3D matrix,which i am using in my project. As per the concept when new is unable to allocate the specified memory it will … | |
Hi, i'm trying to write a function that enlarges a given two dimensional array horizontaly and Verticaly by different numbers. So far i have got this code. Bu it doesnt really work at the moment. Please help. Code: void BitMap::enlarge(int horiz, int vert) { bool temp[MaxSize][MaxSize]; temp[0][0]=true; int m, k; … | |
Hi, Im trying to make a multiply table from 1 to 10. Im trying to do this with array's. This is the code i have till now: [code] #include "conio.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <cmath> #define arraylen = 10 main() { int x[11], *a; int … | |
hey alll i reciceve this error, does anyone knows the solution. [B]Error while trying to run project: Unable to start debugging. Unable to start program 'display some funny characters' The system cannot find the file specified.[/B] thanks in advance | |
Hello all! I'm hoping that you might be able to provide a little help. I've been working on this project for my class, and so far I've been doing okay, but I've reached a point where I'm completely stuck. I have to print a sorted array, and I'm just not … | |
i have 3 errors that i cant figure out y they are appearing i thought everything was fine [CODE] template <class TYPE> class Darray{ protected: TYPE DEPTH; TYPE ROW; TYPE COL; Cell *** array; public: Darray(); //constructor Darray(TYPE depth, TYPE row, TYPE col); //overloaded constructor ~Darray(); //destructor Darray(const Darray& darray); … | |
Hello folks my fstream system appears to have failed! it all worked until i split the file up into *.H and *.CPP. // header file [code] #include <string> #include <fstream> #ifndef SCANNER_H #define SCANNER_H void openfile(void); bool check(string token); bool testing(char sym); string getsym(void); #endif [/code] the .cpp file: [code] … | |
hi everyone, I was wondering does the eclipse ide support debugging. For example in netbeans if you have a bit of code you can go through it line by line and if you have an error say in line 5 the debugging stops at that point :lol: thank you | |
This is my first time dealing with file I/O and need help figuring out the best way to read in data and store it for further manipulation. I have a file that contains an individual's salary, and 3 product ratings on each line, such as: 75000 01 05 09 What … | |
My problem is that I have to pass two dimensional array into member function and fill it. I've tried solve it on few ways but only success is without class in main fuction create object and fill array in that object, but that isn't what I need. I've read in … | |
simple problem....but I have no clue why its not working..... [code] if (w[0] > m[1]): temp = ((w[0]-m[1])/w[0])*100 print temp [/code] For some reason temp is always 0.........I want a double percentage difference between the two values.... Please guys..help me out here......after 500 lines of code ...I am stuck here......my … | |
I am trying to delete the first node in the singly link list but cant seem to do so? My Code is below... Could someone please suggest something. thanks. This program has an enqueue function which works. `*p` is a pointer to a node which has been allocated using malloc. … | |
Hi! I have a class called anItem which is defined something like this : [CODE] class anItem { CString string1; CString string2; long bla1; long bla2; }[/CODE] ok should be enough. Constructor/Destructor are empty. At another place I use this class as a template for a std::list. [CODE]std::list<anItem> list;[/CODE] I … | |
I can't seem to make the map template work for me. [CODE]//#include "PrecedenceXY.h" #include <map> #include <string> using namespace std; map<string, int> normalXPrecedence; map<string, int> normalYPrecedence; normalXPrecedence["x"] = 1; normalXPrecedence["x^2"] = 2; normalXPrecedence["x^3"] = 3; normalXPrecedence["x^4"] = 4; normalXPrecedence["x^5"] = 5; normalXPrecedence["x^6"] = 6; ect, filling up both X and … | |
I am (as you will quickly discover) a novice javascript coder. Here is my issue. I am using a radio button, and it works fine. Then when I change some other element on the page, or hit refresh, the radio button does not remain set. You can see it in … | |
Hello, I am in an entry level C++ course. We have a homework problem that requires us to prompt the user to enter five sets of three numbers (type double) and store the numbers in a 5 x 3 array called `Data[5][3]`. Then, pass the matrix `Data[5 ][3 ]` from … | |
Hi all, what exactly is segmentation fault or access violation and exactly when does it occur? Why does the following program work correctly : [code] #include <stdio.h> #include <conio.h> int main( ) { int a[5]; a[20] = 20; a[-20] = 30; printf("%d %d", a[20], a[-20] ); getch( ); return 0; … | |
VC++ 8 I have created a form class with a combo box. I want to populate the combo box with data calculated from the form. This I can do. But I want to tie the string data in the combo box to numeric (double) value. Select the string and get … | |
Dear Colleague, I have some experience with turbo c++, but now I have an assignment to be done using Dev C++. Is there anyone who can give me an idea about this Dev C++. It Good if it is supported with some sample program that use some classes and files. … ![]() | |
What is the O-notation for the following code? [code] cin >> N; for (int count = 1; count <= N; count++) { for (int count2 = 1; count2 <= count; count2++) } [/code] a) O (log N) b) O (N) c) O (N^2) d) O (N^3) outer loop is O(N) … | |
Hello, I know I am new to the Board but I need help. I have these programes to designand I need to know how to code in them in Pascal. All I ask, if it is possible, is for a sample answer if it is possible. I am not that … | |
If I have a swing app where I have 3 JPanels inside the content pane. By default, it makes it so that all 3 panels take up 33% of the overall size of the app. I would like to make it so that the first panel takes up a smaller … | |
This program is working fine except it is suppose to give me the total of all the money inputted when option 4 is selected. It is only giving me the last amount that was inputted when option 4 is selected. Can someone give me a clue about what I am … | |
Hey all, I’ve created a register form that includes some Dreamweaver generated code and code of my own. What I did was within the main query that handles the insert of the userID I added another query within the <cfif> to see if the userID already exists. The problem is … | |
How do you implement a binary number to convert into an equivalent decimal number using stack in C++.I am having a headache here.I have been thinking the past 2 days but without much knowledge in C++ i am partially dead. Tried reading books but still can't figure it out and … | |
Hello everyone, I'm at a loss. I've been trying to add a couple of images to my mortgage loan program for class. Everything I try either doesn't work or blanks out the screen. Any help would be appreciated: /* * Author: Diana Salisbury * Week: 4 * Date: March 20, … | |
Dear Colleague, I have some experience with turbo c++, but now I have an assignment to be done using Dev C++. Is there anyone who can give me an idea about this Dev C++. It is Good if it is supported with some sample program that use classes and files. … | |
How do you declare an array of records in MC++? And have a ptr point to it? Thanks. | |
Yesterday, I posted a similar problem (involving numbers) which was solved by Clinton Portis (Thanks by the way) which involved several if statements. This time I got one with a string :rolleyes: If there's some kind of space saving technique please let me know :mrgreen: [CODE]#include <stdio.h> #define SIZE 5 … | |
I want to put about 7 different RSS news feeds in a page. Rather than make an indivdiual page for each I was hoping to have links at the top that as such: World News, US News, Sports, Etc. Those will act as links so when they click on them … | |
Hey all. Im currently studying C++ and im having a little bit of trouble figuring out how to count spaces in a string. The program is to enter a full name with any amount of names and print the initials of the first name and print the last name. Im … ![]() | |
Hi freinds, I need your help regarding the following piece of code. public unsafe struct GUID { public int Data1; public System.UInt16 Data2; public System.UInt16 Data3; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] public byte[] Data4; } When I build the code, I get the following error:- Usafe code may only appear if … | |
İ dont know anything about file IO.if you have any idea how can write a c++ program to my hw pls share your ideas.homework is in the attchement. | |
I just started to have experience of making web sites. I know html and flash and things like that. I had some experience with javascript. What is the use of php? also, what is the use of css and javascript? which one should i learn first? which is the most … | |
I have no clue what the answer is. Which of the following dynamically allocates an object of type ourClass? a) ourClass ourPtr; ourPtr = new ourClass; b) ourClass ourClassObj = new ourClass; c) typedef ourClass* ourClassPtrType; ourClassPtrType ourClassPtr; ourClassPtr = new ourClassPtrType; d) typedef ourClass* ourClassPtrType; ourClassPtrType ourClassPtr; ourClassPtr = … | |
[COLOR=DarkRed]Write an interactive C++ program that prompts the user for ten (10) real numbers and calculate the sum, average, and prints the result. Hint: you may use an array to store the data. Program requirements: - The program must contain a class in which all the required private and public … ![]() | |
I have a homework assignment that l started, but l ran into problems. Could you please look at my code and help me. The topic is as follow: In this exercise, you will study the effect of several parameters used with RR scheduling. To solve the exercise, you will need … | |
Please help me. Kindly tell me how to open image file in windows from C programming Many Thanks, Shahnaz | |
Hi, My company charge me to make an application to convert any file type to pdf. I have acrobat 7.0 professional and acrobat distiller. I've not find any solution with adobe COM element and try to make it with comand line using distiller. The problem is that distiller only accept … | |
This is not my code, I have gotten it from a book and am trying to figure out how to get it to run. It has 5 sections (or 6) and I either get some error with external _main or unexpected end. Here are the pieces [code] //--------------------------------- // Blizzard … | |
What's wrong with this? I know i must have missed out something. But what's that i'm missing? [CODE]Dim ds As DataSet = New DataSet Dim da As SqlDataAdapter = New SqlDataAdapter("SELECT * FROM Member WHERE MemberUserName = @MemberUserName", Conn) da.SelectCommand.Parameters.Add("@MemberUserName", SqlDbType.VarChar) da.SelectCommand.Parameters("@MemberUserName").Value = Session("Username") ' Fill DataSet with the data … | |
OK I wrote this dice program up and it works really well. Just curious though if there was a way to reduce the number of "if" statements. [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> #define SIZE 11 #define TOTAL 36000 int main(void) { int cnt = 0; int die1, die2, sum; … | |
Hello all. Pretty much finished my project for school, everything works, you can add and delete files, can't crash the program e.t.c. but I can't find out how to list these in order of date. [img]http://img300.imageshack.us/img300/4570/visualbasichelp5ck.png[/img] Currently I have the sorted property of the list box equalling true. As you … | |
I'm a complete amateur at websites but our golf club delegated the job to me to build their website which I published about a year ago. The problem is; the site is built in a frame (Left Hand Contents) so the left hand navigation bar remains visible. When found in … | |
I'm not a C++ programmer in the real sense of it, but my project involves gathering some data, store the data in memory with time stamp and later upload to the PC where a C++ algorithm will be used to manipulate it and then produce a graph of the manipulated … | |
C:\Documents and Settings\Andy M. Moore\My Documents\Visual Studio Projects\caller\trunk\OfflineRegistry\OfflineRegistry.cs(203,15): warning CS1591: Missing XML comment for publicly visible type or member 'SecondSec.SERC.Common.ContainerObjectModel.RegKeyContainer' What does this mean? | |
my problems not that huge...for example,, if i use inheritence... i create static newstudent current; in public class EnterSP and i write public class Backstroke extends EnterSP does current work in the Backstroke class? coz...ive got null pointer exception... i need help ASAP... or maybe if anyone could have a … |
The End.