199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tigerdude

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, …

Member Avatar for AstroNox
0
140
Member Avatar for srishekh

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for DashM

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; …

Member Avatar for AstroNox
0
100
Member Avatar for Yustme

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 …

Member Avatar for Yustme
0
136
Member Avatar for xgmx
Member Avatar for web_developer

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

Member Avatar for web_developer
0
66
Member Avatar for NiaSoul01

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 …

Member Avatar for NiaSoul01
0
111
Member Avatar for tyczj

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); …

Member Avatar for tyczj
0
88
Member Avatar for Acidburn

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] …

Member Avatar for Acidburn
0
111
Member Avatar for sam1

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

Member Avatar for AstroNox
0
132
Member Avatar for cazaletm

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 …

Member Avatar for AstroNox
0
101
Member Avatar for marioxp

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 …

Member Avatar for marioxp
0
165
Member Avatar for shafter111

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 …

Member Avatar for shafter111
0
110
Member Avatar for debugger

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. …

Member Avatar for debugger
0
85
Member Avatar for shlinky

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 …

Member Avatar for dwks
0
154
Member Avatar for nexes300

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 …

Member Avatar for nexes300
0
533
Member Avatar for davidpitts

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 …

Member Avatar for davidpitts
0
149
Member Avatar for kjones2k1

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 …

Member Avatar for kjones2k1
0
279
Member Avatar for vicky_dev

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; …

Member Avatar for Salem
0
74
Member Avatar for Podge

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 …

Member Avatar for Lerner
0
118
Member Avatar for benyam_dessu

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. …

Member Avatar for iamthwee
0
87
Member Avatar for jack223

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) …

Member Avatar for WolfPack
0
95
Member Avatar for Latent

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 …

Member Avatar for jwenting
0
162
Member Avatar for winbatch

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 …

Member Avatar for jwenting
0
257
Member Avatar for warriorone357

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 …

Member Avatar for jwenting
0
79
Member Avatar for Walyer

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 …

Member Avatar for paulbaylis
0
225
Member Avatar for web_developer

hey to u all this is my first thread here and hoping to benefit from it i am entering new domain, building cms i want any links to a free ebooks in building cms with asp.net or php 10x advance

Member Avatar for web_developer
0
87
Member Avatar for Kellaw

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 …

Member Avatar for web_developer
0
857
Member Avatar for ladyd33099

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, …

Member Avatar for server_crash
0
120
Member Avatar for benyam_dessu

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. …

Member Avatar for benyam_dessu
0
83
Member Avatar for DotNetUser
Member Avatar for Ancient Dragon
0
124
Member Avatar for degamer106

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 …

Member Avatar for degamer106
0
91
Member Avatar for kgonsalv

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 …

Member Avatar for Troy
0
137
Member Avatar for SiliconSpec

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 …

Member Avatar for iamthwee
0
1K
Member Avatar for Gody

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 …

Member Avatar for SergioGP
0
311
Member Avatar for c++34

İ 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.

Member Avatar for c++34
0
135
Member Avatar for bbb777b7

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 …

Member Avatar for bbb777b7
0
196
Member Avatar for jack223

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 = …

Member Avatar for jack223
0
184
Member Avatar for Tiffiney_v24

[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 …

Member Avatar for iamthwee
0
160
Member Avatar for favorlove

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 …

Member Avatar for favorlove
0
183
Member Avatar for shahnazurs

Please help me. Kindly tell me how to open image file in windows from C programming Many Thanks, Shahnaz

Member Avatar for shahnazurs
0
117
Member Avatar for lucasd

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 …

Member Avatar for lucasd
0
134
Member Avatar for Lothia

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 …

Member Avatar for WolfPack
0
210
Member Avatar for Naters_uk

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 …

Member Avatar for neerajtrivedi
0
347
Member Avatar for degamer106

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; …

Member Avatar for degamer106
0
115
Member Avatar for Nubbing

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 …

Member Avatar for Comatose
0
2K
Member Avatar for Edwardobrien

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 …

Member Avatar for Edwardobrien
0
89
Member Avatar for francis adepoju

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 …

Member Avatar for francis adepoju
0
94
Member Avatar for acezrwild817

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?

Member Avatar for SergioGP
0
158
Member Avatar for lync_yc

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 …

Member Avatar for lync_yc
0
199

The End.