49,756 Topics

Member Avatar for
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
239
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
348
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
135
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
165
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
149
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
165
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
305
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
43
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
234
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
77
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
607
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
100
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
Member Avatar for eskimo456

Hi there I am building a 3D game in C++ and openGl I came to do a full test of my game the collision detection and things are finally approaching working fully. When I run it it becomes very memory hungry and eats a few Gb of Ram and crashes …

Member Avatar for eskimo456
0
166
Member Avatar for twinb

I"m having trouble with this code can any help? I am trying to find the average, mean, standard deviation #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; void Fill_Array(int Size[], int& count); void Print_Array(int Size[], int count); double Calc_Average(int Size[], double average); void Sort(int Size[], int numbers_used); …

Member Avatar for frogboy77
0
118
Member Avatar for SoulReaper1680

Hey, I was just wondering whether it is possible to do multiple tasks in a console application at the same time. Like lets say if a program reads user's input and displays output at the same time, can the program carry on displaying output while it waits for user's input …

Member Avatar for SoulReaper1680
0
169
Member Avatar for lasl0w

Hello, I'm doing a full traversal of a binary search tree structure looking for a node by a field that is not the sort key. If the node i'm looking for is the root node, no problem. If it's any other node then the function has a Seg Fault. Anyone …

Member Avatar for lasl0w
0
197
Member Avatar for aquario20

// Exercise 09 // Final grade calculation for a class ============================================================================ #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; const int MAX_NAME_SIZE = 25; // Structure to hold StudentInfo struct StudentInfo { int studentID; char name[MAX_NAME_SIZE]; int *progExercises; // a pointer to an array of prog exercise scores int …

Member Avatar for Fbody
-3
131
Member Avatar for Stefano Mtangoo

I need to make inspection of my code to Optimise it. Which profiler do you use and recommend? I use CodeLite IDE with GCC Compile (MinGW on windows) and wxWidgets for all GUI stuffs Thanks

Member Avatar for daviddoria
0
83
Member Avatar for cameclifton

[code]Write an application namedCollegeList that declares an array of four "regular" CollegeEmployees, three Falulty, and seven Students. Prompt the user to specify which type of person's data will be entered('C'F'S') or allow user to quit('Q') . While user chooses to continue accept data entry for approate type of Person. If …

Member Avatar for daviddoria
-1
94

The End.