49,757 Topics

Member Avatar for
Member Avatar for gerti13

Hello. I've spent many hours on this code and I cannot figure out why when I either declare "kot" - which will be in the code below or when I call blob_detect() which uses included .cpp with a "new" call (so to speak) I get an error allocating memory. If …

Member Avatar for jonsca
0
145
Member Avatar for Jetsetivan

Hi everyone, For practice I am trying to code a simplified version of the template "std::list" but have come accross the LNK1120 + LNK2001 errors. After looking in Visual Studio's documentation and some investigation, it seems the two most common causes are: 1) invalid calls in the code to things …

Member Avatar for Jetsetivan
0
236
Member Avatar for ge6a93

Hello, i have been developing a game-project in Visual C++ 6.0 but now i have an extremely bad problem. When i start my game, it gets a lot of CPU usage - like 60-70%. When i start debugger it gives me a several errors, but i have no idea how …

Member Avatar for bman214
-2
168
Member Avatar for sweetbony
Member Avatar for mvmalderen
-5
118
Member Avatar for dh_30

hi', could help me how to solv this problem: Write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree. Once the tree has been built, present the user with a menu that allows him or her to …

Member Avatar for Salem
-5
171
Member Avatar for jerim

I am working on a class assignment that doesn't meet for a few more days. The assignment is to open a text file, and parse the file one word at a time, reading each word into one of 26 arrays based on the first letter of the word. I can …

Member Avatar for jBat
0
495
Member Avatar for Pilot Boy

Well hello! I'm having problem with reading data from notepad.. So here is what I'm trying to do. etc.. I have notepad file "Doc" and in it there are few things: Level= 5 Cash= 100 And what I want from my program to do is to read Level and Cash …

Member Avatar for Pilot Boy
0
394
Member Avatar for kinnu

[B]how to display text on [U]right side of window in caption bar[/U] (titlebar) .Is there any function available to do this ?[/B] [B]plz help.[/B] [MFC]

Member Avatar for marco93
0
64
Member Avatar for FatimaRizwan

[CODE]// basic file operations #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char* pch; string line; fstream myfile; myfile.open ("Ahoo.txt"); if (myfile.is_open()) { while (!myfile.eof()) { getline (myfile,line); cout<<line<<endl; pch = strtok (line," ,.-"); while (pch != NULL) { cout<<pch; pch = strtok (NULL, " …

Member Avatar for jonsca
0
438
Member Avatar for popo_prince

i can't get this to run. my math functions at the end have messed up logic. and the superfluous function headers and such. i don't think the math output is linked to the desired output of the payment. [CODE] #include <iostream.h> #include <math.h> #include <cstdlib> #include <iomanip> //here i am …

Member Avatar for jBat
0
229
Member Avatar for makan007

"I am trying to display an array of digits using rand. My final result need to be: 1) Output all digits <=40 to the left side of array 2) Output digits > 40 to the right side of array Prob: The random digits does seems to change & result incorrect …

Member Avatar for kvprajapati
0
97
Member Avatar for abi.sakthi08
Member Avatar for kvprajapati
0
43
Member Avatar for torokun

[URL="http://img686.imageshack.us/img686/3380/hw1.jpg"]http://img686.imageshack.us/img686/3380/hw1.jpg[/URL] Okay so I got homework from my IT programming. I am completely oblivious in programming so I need a bit of help getting me into the right direction. Here is the question to understand my flowchart: Above is the link to my flowchart. Consider N students receiving the marks …

Member Avatar for tedroger
0
81
Member Avatar for haseeb1431

i have three integers per line in a text file but when i read a file it prints four integers Code: [code] #include<iostream.h> #include<conio.h> #include<fstream.h> void main() { int clas; ifstream inf; inf.open("kash.txt"); do { inf>>clas; cout<<clas; } while(!inf.eof()); } [/code] here is the file kash.txt (no enter after the …

Member Avatar for vmanes
0
149
Member Avatar for rkulp

This function is suppose to randomly chose 2 out of 16 dice, swap their positions, and then chose what side of the dice is facing up. The problem is, when I run the function (I loop it 250 times). It only changes a few dice and the board looks close …

Member Avatar for hag++
0
240
Member Avatar for trevorthecat

Hi, I have to create a program that takes 20 random numbers between 0 and 100 and sorts them in order from smallest to largest. Then, I have to used File I/O to output the list into a .txt file.My code is compiling, and I'm getting the random numbers, but …

Member Avatar for WaltP
0
124
Member Avatar for Grovespaz

Hi all, a friend told me to take a look at this board whenever I got in trouble coding. At the moment I'm studying a game, disassembling it, mapping out parts of the scripting engine, etc. I have a proxy dll which I use to hook certain functions (d3d8.dll), and …

Member Avatar for Grovespaz
0
66
Member Avatar for arva

Hey, I have a big problem. I want to do a program which will get a part of the screen of a program. After that It will show this small rectangle in Image component in BCB. But the problem is, it has to refresh it at least 10 times in …

Member Avatar for arva
0
184
Member Avatar for jonnybgood

Hi, I need your help. I'm searching for very tough C++ tests over the net. Can you send me links of such a tests. Thank you!!!

Member Avatar for Narue
0
116
Member Avatar for Excizted

Hello. I'm needing to store the IP adress as a variable in my application. I was then wondering, what the most efficient way of doing this would be? I would simply make 4 integers, and then in a setter function, read four arguments, and pass them into those four integers, …

Member Avatar for Excizted
0
201
Member Avatar for gamerchick

Hi, i have to create a algorithm called find2D, to find an element x in an n × n array A. The find2D function iterates over the rows of A, and it calls the algorithm findArray shown below, on each one, until x is found or it has searched all …

Member Avatar for abdelhakeem
0
126
Member Avatar for sehsa6

Hey frenzz I wanna make a Web content filter as my project. I have been looking for some help from past one month. I want ur help in making my project. Please help me explaining about its implementation or provide me with some links If u can. Any kind of …

Member Avatar for sehsa6
0
239
Member Avatar for Lukezzz

I wonder how the try, catch, finally function works. I know how try and catch works. What I wonder is if the try block is successful then I know that the catch block doesn´t execute. Is it true that the finally block doesn´t execute either ? [code] try { } …

Member Avatar for Lukezzz
0
128
Member Avatar for chaienbungbu

As I see in some code having something like "[b]ClassName[u]&[/u][/b]". For example: [code] // this demo // check if a parameter passed to a member function is the object itself #include <iostream> using namespace std; class CDummy { public : int isitme ([b]CDummy[u]&[/u] param[/b]); }; int CDummy :: isitme ([b]CDummy[u]&[/u] …

Member Avatar for jbennet
0
225
Member Avatar for Phil++

Hey, I'm to work on GUI interfaces with C++ but I have loads of classes that I want to use, will I have to re-code the whole classes or can I still use them? + Are they hard to implement and use? Thanks

Member Avatar for Ancient Dragon
0
93
Member Avatar for makan007

I would like to know how can the swapping function be implemented using pointers, void swap (int*, int*) [CODE] //function prototypes void swap(int& a, int& b); //function (passing by ref) void swap(int& a, int& b) { int t = a; a = b; b = t; }[/CODE] Is this correct? …

Member Avatar for problemkid
0
466
Member Avatar for Nikhar

Hey guys, I have got a C++ competition tomorrow and it is very important for me. Following are few of the questions from past years. Please, please, pleeeasse read them and guide me on how do I solve them so that I get some preparation for tomorrow [url]http://pastebin.com/m226a46ab[/url] [url]http://pastebin.com/m79b943db[/url]. [url]http://pastebin.com/m370be9ea[/url] …

Member Avatar for mvmalderen
-6
193
Member Avatar for Pradip_m14

Hi, Can you please let me know how can I use MS-Access in my C/C++ project.I m try to develop a project of ATM machine and I must have to use MS-Access in my project. Can you please help me ASAP. Pradip S. Mali

Member Avatar for CJesusSaves
0
57
Member Avatar for makan007

'a' was not declared in this scope. I can't spot the error. Pls advise. [CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int MAX = 10; void constructArray_2 (int*, int); int main () { srand (time (NULL)); constructArray_2 (a, MAX); } void constructArray_2 (int *a, int size) …

Member Avatar for makan007
0
235
Member Avatar for zakir123

i want programme in c++ a car stand 3hours in 2$ then another car stand 24hours in 10$

Member Avatar for adcodingmaster
0
129

The End.