51,593 Topics

Member Avatar for
Member Avatar for kenji

Hey guys, its past midnite so I think the programming ghoulies have gotten to me but I am having a very strange problem with a constructor [icode] Account(char c[], char num[], int b); [/icode] Everything runs fine until I reach the for loop below, which for a very strange and …

Member Avatar for kenji
0
84
Member Avatar for msashley09

Hi everyone, I am a newbie here and I haven't read anything--I know I should. Sorry in advance if I break any rules in this posting. I am having a problem with this project I am working on. The assignment is to create an application that will give a user …

Member Avatar for Salem
0
127
Member Avatar for traza786

I have a written a program for Dijesktra algorithm; But I encounter the run time error when the code returns "lp" value ... Runtime check failure #2-Stack around the variable 'parent' is corrupted please see the code Could some one tell me that how to solve this prblem thanks [code=cplusplus] …

Member Avatar for traza786
0
213
Member Avatar for Ixeman

Well if you guys may help can you help with converting this to vb.net at this thread :D [url]http://www.daniweb.com/forums/post721914.html#post721914[/url]

Member Avatar for skatamatic
0
56
Member Avatar for m_arian

Hi This is my first DaniWeb post so I hope I get it right. My problem is homework. I have almost got it but I'm having trouble with the pointers. The entire program will output svg code but I've tried to leave out as much as I can to reduce …

Member Avatar for skatamatic
1
128
Member Avatar for Boudou

#include <stdio.h> #define SIZE 16 int* biggest(int *a, int count); int main(void) { int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 }; int *p; p = biggest(values, SIZE); printf("the biggest element in the array is %i\n", *p); return …

Member Avatar for skatamatic
-1
108
Member Avatar for shopnobhumi

This is the code: #include <iostream> using namespace std; int main() { int x; cout << "Enter a positive integer: "; cin >> x; if (x <= 0) { cout << "Illegal" << endl; exit(1); } if (x <= 100) { cout << x; } else { cout << x/100 …

Member Avatar for skatamatic
0
75
Member Avatar for uim_1977

Hello everyone!!! Whow know how to determinate which Field in DBGrid is active???

Member Avatar for uim_1977
0
264
Member Avatar for JackDurden

Im having trouble seeing this recursion function through. Say I have an 8 by 8 array how would I get the search function to "see" into the middle of the 8 by 8 array. Positions (4,4), (4,5),(5,4),(5,5). [CODE] #include <iostream> using namespace std; struct matrix { int size; int row; …

Member Avatar for skatamatic
0
68
Member Avatar for NinjaLink

Hello, I am trying to get the stock count to print for each of the toys: ps3, elmo, and wii. I don't have any clue on how to do it. To print the stockcount, i created the function getStock to try to do the job. Can someone help me get …

Member Avatar for NinjaLink
0
135
Member Avatar for Boudou

[code=cplusplus] #include <stdio.h> #define SIZE 3 void swaparrays(int* a, int* b); main () { int a[3][3]={{0, 2, 3}, {1, 5, 7}, {3, 9, 4}}; int b[3][3]={{2, 8, 5}, {4, 7, 1}, {3, 9, 2}}; } void swaparrays(int* , int* ); { //How I can impement swap arrays Function???// } [/code]

Member Avatar for uim_1977
0
118
Member Avatar for uim_1977

People what do i do wrong, i'm new to the forum, but for some reason i'm not gettig any ansfers to my questions, please tell me what do i do wrong???? Thank you.

Member Avatar for VernonDozier
0
92
Member Avatar for Boudou

//I have done Until.. But it seems to have many problem with compiler// #include <stdio.h> #define SIZE 3 void swaparrays(int* a, int* b); main () { int a[3][3]={{0, 2, 3}, {1, 5, 7}, {3, 9, 4}}; int b[3][3]={{2, 8, 5}, {4, 7, 1}, {3, 9, 2}}; void swaparrays(int* a, int* …

Member Avatar for Boudou
0
98
Member Avatar for Liszt

How could it be possible to synchronize the computertime to ex: GMT or any timeserver on the internet ?

Member Avatar for Liszt
0
166
Member Avatar for StephanJos

I have one *.cpp file but I cant it compile with MS VC++ ! How to compile signle .cpp file in VC++? Please help me!

Member Avatar for tonief
0
164
Member Avatar for jase728

I need help. How do you encrypt multiple lines of a text file? /********************* *Made by Jase Inc * *Made in 10/22/2008 * *Boolean Cryptography* *Using ^ operator * *********************/ #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string line; ifstream myfile ("text.txt"); char key[65]="jaf#$%skl%#ajlf^%dlkfhasjlk@#dsgsfsfrtw"; …

Member Avatar for dumparun
0
165
Member Avatar for f.ben.isaac

Hello, first of all i'm glad to be a member here. Nice to be with you! I wrote a simple dum port scanner. For practicing purposes. It worked fine under linux, i ported to windows, i linked it to winsock libraries. I keep getting errors, such as C:\Documents and Settings\Fahmi\Desktop\test\main.cpp|29|error …

Member Avatar for f.ben.isaac
1
497
Member Avatar for goodmuyis

Hello can anybody recommend a book for a lazy reader like me, I've try "Thinking in C++, Volume 1, 2nd Edition Bruce Eckel, President, MindView, Inc" but i find it difficut to understand the basic there. So can anybody recommend any simple book for lazy lad

Member Avatar for ddanbe
0
247
Member Avatar for ammenme

hi,please i downloaded text pad to use for c++ on my computer bt wen i go to the tool i cnt actually see the compile tool.please any knws what the problem is thanks

Member Avatar for Ancient Dragon
0
45
Member Avatar for saidrjdh

PLEASE SOLVE TO ME THIS PROGRAM Oman Telecommunications (OmanTel) company would like to create a simple application to compute charges for different phone calls and generate a summary report. You have been assigned to develop the application using C++ programming language. OmanTel charges its customers using the distance between two …

Member Avatar for ddanbe
-1
105
Member Avatar for uim_1977

I'm developming a programm thet will use a dll forms, the problem i'm getting i have several forms in each dll, some of them have to use functions from other forms. For example, i have a DLL "Customers" which includes Customers form, Customer Selection List, which is a a different …

1
268
Member Avatar for Niner710

Hi, I keep getting an error in Visual Studio C++. I am trying to create a copy constructor but keep getting this error. "Windows has triggered a breakpoint in test.exe. This may be due to a corruption of the heap, and indicates a bug in test.exe or any of the …

Member Avatar for skatamatic
0
171
Member Avatar for CollegeC++

The section, of my program, that has to do with the error extracts a description from an html file or site. We are to find it based on three criteria. I have two down and this third one is giving me problems. I tried to create a DescripChars object in …

Member Avatar for skatamatic
0
117
Member Avatar for jhonnyboy

Can it be done? cout<<"ENter name"<<endl; cin>>name; cout<<"Enter DOB"<<endl; cin>>dob; cout<<"Enter City of Birth"<<endl; cin>>city; when i try to enter "John Doe" as name the program skips and doesn't let me enter anything for dob and asks me the city input. Any help would be greatly appreciated. Thanks!

Member Avatar for Ancient Dragon
0
6K
Member Avatar for Liszt

I try to get the events working in the datagrid for this. With this code I change BackColor from black to MediumSeaGreen. [code] dataGridView1->Rows[3]->Cells[10]->Style->BackColor = Color::MediumSeaGreen; [/code] When the BackColor is changed, should´t this messagebox appear ? It doesn´t. I have also tried the event BackgroundColorChanged. [code] private: System::Void dataGridView1_CellStyleChanged(System::Object^ …

0
50
Member Avatar for robgeek

Hi guys, this 2D arrays is not making sense to me. Some how I am just too confused. What am trying to do is average the rows in 2D array and average the columns in the 2D array seperately. Here is the code snippet that I have trouble implementing. The …

Member Avatar for robgeek
0
5K
Member Avatar for Liszt

What is the way to change size in a cell in dataGridView to 8.25 This does not seem to work. [code] dataGridView1->Rows[b]->Cells[10]->Style->Font->Size = Font->Size(8.25F); [/code]

Member Avatar for Liszt
0
114
Member Avatar for StephanJos

What wrong with this code? #include <sstream> #include <string> using namespace std; int main() { string a = ":)"; string b = "John"; int c = 2; string d; stringstream str; str << a << " Hello " << b << " bye " << c; d = str.str(); printf("%d",d); …

Member Avatar for ivailosp
-1
133
Member Avatar for mrbiggbrain

OK im ok with some baisc codeing but i cose to go a little farther and write some more in detailed stuff so i started making a few fuctions. iv done this once before, but i cant remeber what i did diffrent. The function takes a file and reads each …

Member Avatar for Sci@phy
0
120
Member Avatar for Bhoot

Does CWnd::GetClientRect() include the toolbar region? Whenever i use InvalidateRect(), i pass the entire client region for repaint, inorder to retain the client window contents : [code] InvalidateRect(NULL); [/CODE] But this affects my toolbars ( my application has two toolbars. ) - they disappear. I think it is because of …

Member Avatar for Bhoot
0
199
Member Avatar for buddha527

I am writing some code just for fun and I have a question about class objects. Lets say I have [CODE] class Alpha with member functions getBeta getCharlie getDelta and so on now inside main when I want to make calls to these functions is it necessary to create an …

Member Avatar for buddha527
0
113
Member Avatar for sleign

I've been learning C++ in school for awhile now, and mainly using their version of C++. I decided to download Dev C++ so I could start making programs on my own. For the most part, they've been nothing short of cheezy and useless, tho fun (like a fortune teller that …

Member Avatar for Ancient Dragon
0
139
Member Avatar for royk76

Hi everyone, First, i'm very new in c++ and also in this forum. I'm using static data memers in my class and get this error: "missing storage-class or type specifiers". why is it so? Thx for any help. this is my code: [code=cplsplus] '================Class_FHF.h===============' #ifndef Class_FHF #define Class_FHF #include <iostream> …

Member Avatar for Ancient Dragon
0
113
Member Avatar for gregorynoob

heya... ok, so i was browsing the net to find out if there's a good text on this algorithm, but i don't seem to be able to find one. people are obviously using it, but, hey, there's no info on it. the part i get is the theory on how …

Member Avatar for Lerner
0
185
Member Avatar for cam875
Member Avatar for Liszt

I have to doublecheck if this is the case. When using the fileSystemWatcher in the application where an event is checking for Changes in a file. With just starting the application where no changes events is fired at all the processor (AMD double core) Peeks at 50 % constantly. Is …

Member Avatar for Liszt
0
154
Member Avatar for kahad

I'm working on a movie class for a project. I think I've got it reading in movies from a file. I want to test it using the overloaded subscript operator, but the Driver file will not let me enter a movie title to search for. I can't think of a …

Member Avatar for Evan M
0
124
Member Avatar for mammoth

Hello, Im trying to make some sort of reminder program that plays a wav every 30 seconds to remind me of what Im supposed to do. [code] #include <iostream.h> int main() { system("start alarm.wav"); } [/code] Thats what Ive got so far, now Im trying to figure out how to …

Member Avatar for Ancient Dragon
0
67
Member Avatar for JustLearning

yea I know I spelled destructor wrong what can I say my fingers got in the way of my typing I have scoured the internet and tried several different ways to implement the destructor on my link list queue. I highlighted the troulesome code like this //***************************************** code //***************************************** here …

Member Avatar for gangsta1903
0
156
Member Avatar for busnerrors

Hi I'm fairly new to vectors in C++ and I'm having some problems with them. I have a vector of vectors but I don't know why it is causing a segment fault in my program? [CODE] vector < vector<int> > grades; int temp; for(int i = 0; i < 30; …

Member Avatar for busnerrors
0
136
Member Avatar for dmanw100

Is there an easy way to open an fstream using a string? My code is as follows: [CODE]bool openArray(std::string *arrayFileName, int *width, int *height,int *myArray) { std::fstream BoardFile; BoardFile.open(*arrayFileName);[/CODE] I obviously cannot use this method since *arrayFileName is not char* but is there another way to do it?

Member Avatar for kux
0
147
Member Avatar for kevinlmf

I am doing my Final Year Project about Peer to Peer video streaming application. My instructor told me that the video file need to seperate into several segments and arrival to the client at the same time. After that, the video should be combined together at the client side. So, …

Member Avatar for Salem
0
33
Member Avatar for nimasafa

Hi I need to perogram the simple Calculatotr, Acceptable operators.' + : Add - : Subtract * : Multiply / : Divide ^ : Power ( raise left oprqnd to the power of the rifgt operand ) q or Q = Quit This is a progarm that I wrote : …

Member Avatar for WaltP
0
135
Member Avatar for Tayprogramming

I have 2 Questions and not found solution,can anyone help me: _what's conception of "word align of variable"? _Base on Visual Studio,which keyword do the that activity? _Which Library do we work perfectly with a big integer(at least hundreds of bit)? Thanks .

Member Avatar for Denniz
0
110
Member Avatar for Gagless

My program needs to print the mirror image of a letter that's input. All the letters will be input in uppercase. And the mirror image will be printed in uppercase. So if I input A it's mirror image would be Z if B, then Y if C then X if …

Member Avatar for Freaky_Chris
0
305
Member Avatar for nirav0190

Write a program counts in a given text the words that contain at least three different vowels (Vowels are a, e, i, o, and u). Words in the text are all lower case and are separated by at least 1 space, maybe more. The last word in the sentence ends …

Member Avatar for vmanes
0
93
Member Avatar for dmanw100

This code is giving me the error "expected primary-expression before ']' token." After googling and looking around Daniweb I still cannot find what this means. Can anyone enlighten me? [CODE]int board[*width][*height]; if(OpenBoard(boardName, width, height, board[][*height])) { } //... //function definition... bool OpenBoard(std::string *boardFileName, int *width, int *height, int board[][100])[/CODE]

Member Avatar for dmanw100
0
243
Member Avatar for dmanw100

Hello, I am trying to pass a multidimensional array to a function but I keep getting a "expected primary-expression before ']' token" error. I'm using Dev-Cpp and here's my code: [CODE]int array[*width][*height]; if(OpenArray(arrayName, width, height, array[][*height]))[/CODE] I suppose it could be because there is nothing actually stored in the array? …

Member Avatar for Salem
0
86
Member Avatar for bone7_7

Im a beginner at c++ and this program seem to be easy. Im tying to get this program to multiply numbers as there put in by the user and display the answer, but if the user inputs to consecitive negative numbers the program has to stop. What concept can I …

Member Avatar for Ancient Dragon
0
114
Member Avatar for imput1234

Hey, I'm new and am using Visual C++ 2005 Express Edition. How do I increase the size of the console screen, I just need to make it wider for my program. Yes, I have searched, but all the methods I have found require to me use #include <windows.h> I get …

Member Avatar for Ancient Dragon
0
81

The End.