48,985 Topics

Member Avatar for
Member Avatar for hao90

sorry that i don't know i post on a correct place or not..=D my question is: How can i use the adjacency matrix like A B A 0 1 B 1 0 and write it to form of adjacency list like A -> B B -> A Hope you all …

Member Avatar for hao90
0
94
Member Avatar for Anarionist

I'm trying my best to learn linked lists but am having a difficult time understanding them exactly any way debugger returns SIGSEGV Debug Info: [code] Registered new type: STL String Registered new type: STL Vector Setting breakpoints Debugger name and version: GNU gdb 6.7.50.20071127 Child process PID: 1572 Program received …

Member Avatar for Anarionist
0
84
Member Avatar for ankit894u

[CODE]#include <cstdlib> #include <iostream> #include <string> #include <fstream> #include <sstream> #include <cstring> using namespace std; int main(int argc, char *argv[]) { fstream filestr; for (int i=1; i<=17771;i++) filestr.open ("mv_0000001.txt", fstream::in | fstream::out | fstream::app); filestr.close(); system("PAUSE"); return EXIT_SUCCESS; }[/CODE] guys i m trying to create multiple text files to the …

Member Avatar for ankit894u
0
265
Member Avatar for rickster11

If anyone can take a second to view my code, I would really appreciate it. I've been working on this for days. I think I am so so close. Its the Knights Tour (Knight must move to every spot on board without moving to one spot twice). It breaks when …

Member Avatar for rickster11
0
174
Member Avatar for acos.carlos

Hi. So i have to do the program where we read from a file a certain amount of numbers(not more than 100), and then perform either a bubble or selection sort and a linear or binary search. I wrote the thing down and it read fine, but I can't get …

Member Avatar for WaltP
0
118
Member Avatar for jprogram

Ok, so I have some code from my HugeInteger problem again. Like the title says this is totally backwards. I keep getting the exact wrong result than what should be given. I could probably sneek by the graders with it, but now it is really got me wondering. When I …

Member Avatar for WaltP
0
88
Member Avatar for sportsguy90

Hey all. I'm having trouble developing an order program. Basically I have to compare two files, and validate that one equals the other. I have figured out how to determine whether the order data is valid or not, but i'm unsure how to go about writing out which pieces of …

Member Avatar for WaltP
0
129
Member Avatar for mommie

Trying to come up with a code that will give you your circumference value by taking the measurements of your waist and hips and subtracting the measurement of your neck but I'm getting several very weird errors. Most of them in regards to !=. Can someone please take a look …

Member Avatar for WaltP
0
92
Member Avatar for crodriguez08

Hey, I'm having trouble of making my program work. So far I managed it to read the file and display the numbers (just to verify that it is being read right), but I'm not sure if the storing is functioning well, as when I pick another option, well, it doesn't …

Member Avatar for crodriguez08
0
334
Member Avatar for tonymuilenburg

Hi, I'm trying to loop through multiple textboxes in a C++ form using visual studio.net 2008 to set the selection start for each. The code for a single textbox is easy: [CODE] textBox1->SelectionStart = 4; [/CODE] When I try to assign textBox1 to a Control variable, and assign selection start, …

Member Avatar for tonymuilenburg
0
172
Member Avatar for jprogram

I have writen some code for a HugeInteger class, but my input funtions will not work. It is suppose to check the array for negative numbers or 2 digit numbers. Since I randomize the numbers between 0 and 9 and checked them by not using the input funtion I know …

Member Avatar for Ancient Dragon
0
91
Member Avatar for fugnut

My first attempt at 2-dimensional arrays is not working out so well. We are to simply initialize an array and print out the results. My problem is that the data contains text and numbers.....column header is car color, row header is car make. I am getting error for lines 19 …

Member Avatar for u8sand
0
178
Member Avatar for sadsack

Hello, I am new to this forum and would like to say hi to every one. My name is renny. Now I hope someone can tell me what I am doing wrong. I dave devC++ and when i compile my code then run it, a window comes up and goes …

Member Avatar for Ancient Dragon
0
209
Member Avatar for hurricane123

1What are the advantages of using a constant for the array size? 2In addition to the array itself, why should you pass the array size to a function? 3.How are pointers and array names related?

Member Avatar for Ancient Dragon
0
70
Member Avatar for DawnDenise

I would like the output of this string to display each word in a column and ignore all punctuation. I have tried including an if statement that tells the string to start on a new line when a space is encountered but I haven't had any luck. Any hints are …

Member Avatar for DawnDenise
0
162
Member Avatar for Lukezzz

I was just talking to my hosting and they did say that it is possible to login to my account and read a file using a secure connection. So called SFTP (Secure FTP). For the moment I use some code that is for FTP connection with EnableSsl = true; wich …

Member Avatar for Lukezzz
0
97
Member Avatar for Lukezzz

Hi, I wonder how it will be possible to open a .DLL file for editing, to reach the Source code files. ? Thank you!

Member Avatar for hag++
0
72
Member Avatar for deanus

Does anyone know how to set the character background color? I tried using system("color ") etc. but this sets the background color of the whole screen... What I need is the c++ equivalent of the 'textbackground()' function used in pascal.... thanks

Member Avatar for deanus
0
66
Member Avatar for jeffcruz

I have an assignment a C++ assignment and here is my code so far; [CODE] #include <iostream.h> #include <stdlib.h> #include <cstring> #include <cctype> class Student { private: char Name[80]; long SSN ; public: Student (char, long); void setSSN (int SSN); void setName (int Name); int getSSN (long); int getName (char); …

Member Avatar for jeffcruz
0
137
Member Avatar for manutd4life

here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * any help? tips how can i start?? thanks

Member Avatar for deanus
0
83
Member Avatar for zoner7

So I'm currently using Lazy Foo's tutorials. Here's the link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php[/url] I followed all the instructions, but I'm having a couple issues. So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am …

Member Avatar for thriek
0
263
Member Avatar for thriek

hey i'm really not sure how to solve this, im making a simple "press enter to continue" function called wait(), defined it in a header file with extern keyword, and then in the main file prototyped it and from then on used it as wait(); But it still states that …

Member Avatar for thriek
0
205
Member Avatar for thriek

Hey everyone, needing a little hand... i'm using the SDL on windows and all the right libraries are installed correctly, I know this because all my other functions that need these libraries worked and still do, but my SDL_Surface* pFontSurface; variable my print text method creates a compile error. ~The …

Member Avatar for thriek
0
250
Member Avatar for shrutinr

Hi ... I m having question on vc++ floating value slider in CLR windows from... I want to have a slider which should have 0 to 1000 value and the values should be float values.. can anyone please help me how to resolve this problem.. here i included the code …

Member Avatar for shrutinr
0
98
Member Avatar for nats01282

Hello all im trying to work out whats wrong with this code, [CODE]#include <iostream> using namespace std; int player1score = 0; // global variable int add10 (int &score) // function that adds 10 to player1score variable by reference { return(score + 10); } int main () { cout << "Please …

Member Avatar for nats01282
0
90
Member Avatar for evilsithgirl

hello. I am writing a program that will solve a type of min. spanning tree problem. i have 2 different algorithms that I've gotten working in two separate .cpp files i've named kruskels.cpp and prims.cpp. my question is this: each file takes the following command line to run it . …

Member Avatar for Salem
0
91
Member Avatar for jello69

i get this error, while I think I included the .lib files correctly. here's a detailed description of my problem [url]http://www.gamedev.net/community/forums/topic.asp?topic_id=567099[/url]

0
55
Member Avatar for wafie

[CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> #include <stdio.h> using namespace std; int main () { // Declared Variables. int choice; ifstream inputFile; inputFile.open("C:\\temp\\RowPrices.txt"); if (!inputFile) { cout << "Error opening file.\n"; } inputFile.close(); // These are my details. cout << "******************************************************* \n" << endl; cout << "Name: Bhupendra …

Member Avatar for Salem
0
171
Member Avatar for ilyaz

I have a C++ console executable module build in VS2008. To run it requires some MS components to be installed, namely: -- Visual C++ 2005 Redistributable Package -- Window Media Encoder 9 Package The module runs fine on all XP machines I tried but fails to load on a Windows …

Member Avatar for ilyaz
0
106
Member Avatar for elexender

Hi, I seem to have a problem with an 2D arrray. I want to create an 2D AnsiString array (AnsiString array[][] ). I can compile it but i get an acces violation when i try to put value in the array. I changed the AnsiString to integers witch works fine …

Member Avatar for elexender
0
213

The End.