49,761 Topics

Member Avatar for
Member Avatar for Isbella

Hi everyone....I just need some help...I m beginner in C++ Language. I have to submit a small project. In that project I have to make any small software, application or game. Please help me what should I do???

Member Avatar for StuXYZ
0
276
Member Avatar for LampOil

where would be a good place to learn how to use mfc40.dll & mfc42.dll in Gui C/C++ the things i need to learn about are activex controls to load them useing the ProgID ,ClsID & file name the type of apps i plan to make are to be compiled in …

Member Avatar for SgtMe
0
28
Member Avatar for sharifyboy7

I am working on this linked queue class program and it runs without any compiler errors but there is a break point in my dequeue function. It is pointing towards: "item = qFront-> info;" line 83 in the dequeue function and I am not sure how to fix this error. …

Member Avatar for Clinton Portis
0
147
Member Avatar for David_Omid

Hey guys, sorry if this is a silly question but I have a piece of code which contains something like this: [CODE] private: void button1_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button2_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button3_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ ) private: void button4_Click( Object^ …

Member Avatar for David_Omid
0
148
Member Avatar for packetpirate

This is for the numerous people I see constantly asking how to "pause" the console after their code runs. The explanation for how the code works is within the snippet in comments. Basically, the "cin.clear();" function will clear the input stream, getting rid of any newline characters that would have …

Member Avatar for MosaicFuneral
-1
2K
Member Avatar for mohd22

Write a function called nRandomNumbers( ) to perform the following tasks: 1. Generate N random integers between -250 and 250 (inclusive) and save them in a file called number.txt, (Use the function srand()). 2. Print all the generated integers. 3. Compute and return the average of all the negative integers, …

Member Avatar for alexchen
0
214
Member Avatar for alexchen

How can I read a random line from text file. After I get the word I need to count the letters. [CODE]bool word(char *Filename){ ifstream file; file.open(Filename); //add code. return true; }[/CODE]

Member Avatar for alexchen
0
1K
Member Avatar for cplus++

Hi, I am coding an application that requires the privileges of the logged in user. I have checked the application to run with administrator privileges and upon executing it asks me if I want to run this application with admin privileges. Despite granting access when my code executes it doesn’t …

Member Avatar for cplus++
0
240
Member Avatar for Bschober

I've been working on a side project of Tic Tac Toe, it works fine, but I'd like to change the winner function to be dynamic and work for any size board. For example, say I want a 4x3 or a 10x10 board how could I make the one function work …

Member Avatar for Bschober
0
349
Member Avatar for oosb

my default in my switch case statement doesn't seem to work, so if i type in a non integer, it will exit, and follow case 0. there are no signs of the default working.. how to solve, i've tried alot! :( bool isFinished = false; while(!isFinished) { ....... .... .... …

Member Avatar for daviddoria
0
87
Member Avatar for iCode@Night

Hi all. I need to code an offline crawler that acts like a web crawler on a set of given html pages. I know how to read the a=href tag and output those links to the screen. My plan is to modify my code to add more functionality. Instead of …

Member Avatar for ravenous
0
136
Member Avatar for Syrne

Hello! (Spelled polymorphism wrong in title, I know... it's late!) Now, I understand the concepts of both just fine, but implementing them is where I really run into trouble; this is especially when I'm given a specific problem to solve by using them (i.e. my current assignment). Okay so here's …

Member Avatar for Syrne
0
248
Member Avatar for Hayzam_#include

Hi i need a good vector video tutorial please give the link in the discription

Member Avatar for Hayzam_#include
0
79
Member Avatar for groedius

I have an C++ games project due in about 2 weeks i have no former knowledge of C++ and feel like ive leapt in at the deep end our lecturer just kinda put it on us and told us to do it as an self research task and gave us …

Member Avatar for groedius
0
145
Member Avatar for skorm909

I'm making a shop for my game, I opened a Fresh thing of code for this so this is the only code I'm running, I just want to get this to work before I put it into my actual game. anyway what the problem is, is that no matter what …

Member Avatar for Sodabread
0
166
Member Avatar for mayanktalwar

i dont have any experince of software making...i know c ,c++ and web designing lanuguages....how should i start it..to do what i have asked...i have to decide a project

Member Avatar for ravenous
0
150
Member Avatar for DAlexNagy

This is a request for some 'best practices' comments from experienced OOP practitioners. I have been in IT from the days of punched cards and have had considerable experience with legacy languages like 370 ASM, SAS, and REXX. For fun, I've taken a college class in C++ and am now …

Member Avatar for DAlexNagy
0
166
Member Avatar for MacImg

im creating dll in vs 2005 .i found the same two errors i tried to solve as u said in the previous discussion forum with same topic,, but there is only one main in my project too.. could u help me out ... --- mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already …

0
72
Member Avatar for sha11e

If I write 1 letter, I get the error message once. If I write 3 letters, I get the error message three times...... How can I fix this :S? [CODE] #include <iostream> #include <stdio.h> #include <math.h> #include <cmath> #include <stdlib.h> using namespace std; int main() { //vars char user_numberr; //int …

Member Avatar for jonsca
0
108
Member Avatar for sam33

here is the code ....plz help [code] IplImage *cur_frame = NULL; IplImage* background=NULL; IplImage*temp1=NULL; //IplImage*difference=NULL; cur_frame=cvCreateImage(cvSize(640,480),IPL_DEPTH_8U,1); background=cvCreateImage(cvSize(640,480),IPL_DEPTH_32F,1); temp1=cvCreateImage(cvSize(640,480),IPL_DEPTH_32F,1); cur_frame=cvLoadImage("C:\\Documents and Settings\\samia\\My Documents\\My Pictures\\frame.jpg",CV_LOAD_IMAGE_COLOR); background=cvLoadImage("C:\\Documents and Settings\\samia\\My Documents\\My Pictures\\background.jpg", CV_LOAD_IMAGE_COLOR); cvRunningAvg(cur_frame,background,0.005,NULL); cvConvertScale(background,cur_frame,1,0); cvNamedWindow("back",CV_WINDOW_AUTOSIZE); cvShowImage("back",background);[/code]

Member Avatar for jonsca
0
308
Member Avatar for BrianTurkish

[CODE]// 1. Find the frequencies of individual letters in a sample // text file. // 2. Display this information both numerically and graphically. // a) In A..Z sequence // b) In decreasing frequency sequence // Programming concepts and C++ Language elements used // a) vector of structs, b) sorting #include …

Member Avatar for ravenous
0
149
Member Avatar for hueynee84

I am very new in c++ programming and in self-learning process. I involve in a research on image processing and installed Borland C++ Builder 6 with LMD tools, SDL and Borland c++ compiler 5.5, like the rest of the researchers in our cluster. The project is to develop GUI for …

0
44
Member Avatar for kshaaban

Incase you wanted further information, I used a tutorial from here to try this method of lens correction out from here: [url]http://www.aishack.in/2010/07/calibrating-undistorting-with-opencv-in-c-oh-yeah/[/url] I seem to be getting this error when trying to build the code below. (it is all self contained so if you have openCV installed and linked etc …

Member Avatar for wmaiouiru
0
235
Member Avatar for keeda

Hi, I am trying to come up with an algorithm to generate different permutations possible for a string. like "String" -> "String" , "Strgni" etc.. I know this is a common question, but google did not help me much. I am looking for algorithms and data structures to generate different …

Member Avatar for jonsca
0
78
Member Avatar for TSaunders84

this is a quick sort function that receives a singly linked list and a function pointer that is called before it has to be done recursive function. this is what i have so far [CODE]template <typename T> void quicksort(SinglyLinkedList<T> & A, bool (* before)(T &, T &)) { typename SinglyLinkedList<T>::iterator …

Member Avatar for griswolf
0
110
Member Avatar for neemo6

This is for a final project that in which the project had to contain at least, 1 loop, a class, an array, and file. Im just looking for ideas has to how i could in corporate an array and a file. One idea i had for the array was to …

Member Avatar for jonsca
0
618
Member Avatar for gizmo7008

I'm trying to search a text file for any email addresses. I'm trying to get it to print the line that every @ sign appears in. However, it is only printing the @ sign instead of the whole line. And I don't understand why. [CODE] //gathering emails string Emails; int …

Member Avatar for jonsca
0
83
Member Avatar for aquario20

this is my homework , and i have some code but please can you help me to fixed my homework please.... The purpose of this exercise is to give you practice with abstract data types, namely structrures and arrays of structures. Write a program that simulates a soft drink machine. …

Member Avatar for ravenous
0
97
Member Avatar for qvyhnl

compute recursively the number of times that sub appears in the string, without the sub strings overlapping. str_count("catcowcat", "cat") returns 2 str_count("catcowcat", "cow") returns 1 str_count("catcowcat", "dog") returns 0 please give me some idea to solve this problem [CODE]int str_count(string str, string sub) { int len = str.length(); int s_len …

Member Avatar for Clinton Portis
0
101
Member Avatar for qvyhnl

compute recursively a new string where adjacent characters that are the same have been reduced to a single character. So "yyzzza" yields "yza". You must not use loops. Here are some more examples: string_clean("yyzzza") returns "yza" string_clean("abbbcdd") returns "abcd" string_clean("Hello") returns "Helo" please give me some suggestion.

Member Avatar for Clinton Portis
0
184

The End.