51,593 Topics

Member Avatar for
Member Avatar for Cainer

Hi, I'm not sure if this is right forum to ask, please don't kill me if it isn't. I'm using Visual Studio C++ Express 2010. I found that different setting in project properties can lead to big difference in performance of application. My app was running at 140 FPS, I …

Member Avatar for mike_2000_17
0
148
Member Avatar for darren2005

Hi, The was my application works is that my C++ .exe will create a .bat file, which will then in turn run the .bat file. [CODE]ofstream myfile ("tmp.bat"); if (myfile.is_open()) { myfile << "keytool –import –alias exe –file cert.cer –key example\n"; myfile.close(); system("tmp"); [/CODE] The batch file is created, however …

Member Avatar for metoohere
0
439
Member Avatar for SoFLy

For an assignment, I am writing a program in c++ that prompts the user for the day of the month, the weekday (numerically), the month, and the year. Then, based on that, I've got to have it output a calendar that is similar to the Unix 'cal' command. I've got …

0
86
Member Avatar for Jsplinter

I am trying to write a class which holds either a pointer to an object of class A(base) or class B(derived) depending on conditions at run time. The base class and derived class: [CODE] class A { protected: int x; }; class B : public A { public: int y, …

Member Avatar for gerard4143
0
154
Member Avatar for marirs07

Is it possible to find the offset value similar to offsetof() function when i know only the structure name and the address of the member of structure. For ex in offsetof , the structure name and the member name is given to find the offset. Similarly is it possible to …

0
107
Member Avatar for Frederick2

This is my first post! I can’t figure out how to modify/cast the return address obtained from the Windows Api function GetProcAddress() without using a typedef. I’m aware that using a typedef is the standard way to do this, but one should be able to do it without a typedef, …

Member Avatar for bitluni
0
5K
Member Avatar for cent91

i have a code that uploads a file to ftp. i want it to add an exception in firewall when it executes so that the firewall doesnot request the user for permissions. i know how to add a registry entry but i dont know how to add a firewall exception …

Member Avatar for Satyrn
0
468
Member Avatar for Panathinaikos22

Hello, I create a delayer for something but it dont work right, that i want is 1, Load Form 2, Draw a text in TabPage 3, Show a text in tabpage for 5 seconds 4, when delay end then add WebBrowser Control to TabPage PS: I forgot notice, when use …

Member Avatar for Mitja Bonca
0
177
Member Avatar for sumi1234

the aim of this program is to create a record of 20 members inputted by the user st the phone number is stored in 3 different parts e.g. 011-234-7891 where 011 is area code 234 is exchange and 7891 is numbr...every record must have a member id and member name …

Member Avatar for sumi1234
0
271
Member Avatar for GSLENK

I dont know how i did it before, but i dont quite remember how to get started on a win 32 console program for Microsoft Visual 2010 ultimate edition. could someone give a basic idea of where to start for a blank template? I did: New project, Win 32 console …

Member Avatar for dospy
0
178
Member Avatar for dospy

i've never knew how to use command line arguments since the first source code i used to edit(and from i learned basics of c++) was using a config file to 'read' user input data on program startup and not command line arguments. now my question, what's the difference between using …

Member Avatar for dospy
0
2K
Member Avatar for Merex

Hi everyone, I'm new here and I have been reading some books for a while on C++ software Development. I have a good idea of what I wan't to program at the present point in time, so I thought I would post a road map of what I'm going to …

Member Avatar for Merex
0
269
Member Avatar for lightdshadows

[CODE]#include <fstream> #include <iomanip> #include <string> using namespace std; const double PI = 3.1416; int main() { ifstream inFile; string fname, lname; int age, beginningBalance; double length, width, radius, interestRate; char ch1; inFile.open("inData.txt"); inFile >> length >> width >> radius >> fname >> lname >> age >> beginningBalance >> interestRate …

Member Avatar for lightdshadows
0
211
Member Avatar for carlpike

Hello everyone. I am having an issue with flash style connection So I start off by connecting to port 843 and requesting a <policy-file-request/> The server sends me this: <cross-domain-policy> <site-control permitted-cross-domain-policies="master-… /> <allow-access-from domain="*website.com" secure="false" /> <allow-access-from domain="*website.com" to-ports="443-49151"/> </cross-domain-policy> Since it is non secure, I try to connect …

Member Avatar for cherrymae.calma
0
455
Member Avatar for Macilath

Hello all, As part of a homework assignment, we're to take [URL="http://stroustrup.com/Programming/calculator08buggy.cpp"]a given buggy calculator[/URL] and correct the errors. Once that's done, the assignment is to add the sqrt() and pow() functions to said calculator. This is from Stroustrup's Programming, Principles and Practices using C++. I've been working on the …

Member Avatar for Zekorov
0
2K
Member Avatar for Manal.M.K

hi.. I'm a new user and I hope you be my new friends.. I have homework to do tic tac toe game allwo 2 player or one player with computer I did this program but I don't study any thing about GUI in C++ and it is order from me …

Member Avatar for jejemon
0
1K
Member Avatar for Labdabeta

Is it possible to use [URL="http://msdn.microsoft.com/en-us/library/45yd4tzz%28v=VS.80%29.aspx"]__asm blocks[/URL] with Code::Blocks IDE? And if so how??

Member Avatar for mike_2000_17
0
238
Member Avatar for Ravic85

[QUOTE]Write a program that uses a class named Rectangle. The class has floating point attributes length and width. It has member functions that calculate the perimeter and the area of the rectangle. It also has set and get functions for both length and width, The set functions verify that length …

Member Avatar for Ravic85
0
152
Member Avatar for sifuhall

I have not done development work for many years now but I decided to download the new (and free!) Visual Studio 2010 Express C#. I'm enjoying this, but for the life of me I cannot figure out how to data bind controls. Here is my setup: I have a SQL …

Member Avatar for sifuhall
0
111
Member Avatar for phorce

Hello, I have wrote a OO program and I have been able to compile ok when using Dev cpp however, I have moved to mac and now compiling through the terminal. For classes I use a main.cpp (the main script), Numbers.h (The header file for the class) and Numbers.cpp (all …

Member Avatar for phorce
0
154
Member Avatar for darelet

Hi all, I need a setup involving a client or front-end program that sends some tasks to a back-end process for processing and collects results for output. I know this involves socket programming, but one issue here is that the front-end is a windows program and the back-end is a …

Member Avatar for darelet
0
205
Member Avatar for leftovas17

Okay, first off, I know my code is atrocious. I am not a c++ programmer, but my OpenGL course requires it. My lack of c++ knowledge is most probably my biggest problem here. I am simply looking for quick fixes to my ignorant mistakes. I just need the algorithm to …

Member Avatar for leftovas17
0
268
Member Avatar for Epicurus

I'm trying to create my own linked list for handling bullets in my game. When the bullet has gone too far I want it to be removed but as soon as this is happening (when the bullet has travelled 11 steps) the game crashes. These are the functions used when …

Member Avatar for Epicurus
0
492
Member Avatar for falconmick

Now, I know the first thing I am going to be told is that I should add a balance function to my binary tree, well I have asked the group member who created our tree to do it, but he hasn't got back to me yet. So rather than wait …

Member Avatar for mike_2000_17
0
439
Member Avatar for swizzy

Watz wrong with this avl tree deletion code ?? Some nodes are getting deleted.. But then for other nodes the program stops working and terminates abruptly as such.. Getting some error report.. Cud someone help me out ?? Here is my c++ code for avl deletion.. [CODE]void remove(const comparable & …

0
65
Member Avatar for maria536

This is supposed to generate a password, but It is not displaying the way it is supposed to display, can someone please look at my code and let me know why it is not printing out Enter 5 character string: hapPy Password is: jAaRY Press any key to continue_ This …

Member Avatar for maria536
0
498
Member Avatar for pthom35

can someone help...here's the assignment and what i have thusfar...I'm confused with adding the addtl constructor. [CODE]//Create a class called Fraction with the following member variables and methods: //" Variables //1. numerator and denominator (Integer) // Methods //1. Accessor methods for member variables (could be inline functions) //2. Mutator methods …

Member Avatar for Fbody
0
176
Member Avatar for Xide

Hey, I am only leraning c++ at the moment so sorry if this sounds a stupid question or if the answer is really obvious but anyway... [U]How do you have a variable name itself?[/U] What I want the program to do is to take the input from the user and …

Member Avatar for mrnutty
0
167
Member Avatar for Phaelax

Can't seem to figure this out. [CODE] string *array; void addNodes(string names[]) { array = names; //how many elements in the array??? } [/CODE]

Member Avatar for Diego.Corso
0
27K
Member Avatar for peter20

Hi all, I am new in c++ programming and I would like to learn what is the difference between class cuboid : public shape1, private shape2 with class cuboid : public shape1, public shape2 Thanks a lot

Member Avatar for Fbody
0
337
Member Avatar for joon920721

I want to make a program that asks to enter number. The program will keep asking for entering number until the user enters -99. And when the program finishes, it will give the number of counts, max, 2nd max, min, and 2nd min. The program I made works for all …

Member Avatar for Fbody
0
3K
Member Avatar for TSaunders84

ok i having a little trouble adding a string to the new vector that i created i was wondering if i need this line [CODE]vector<string>* row = new vector<string>;[/CODE] and if i do i need to keep calling or is there a much better what to create a new row …

Member Avatar for Fbody
0
139
Member Avatar for meli123

[CODE]int m, n, pow; cout << "Enter m and n: "; cin >> m >> n; pow = 1; for (int i=1; i<=n; i++) pow = pow * m; cout << m << "^" << n << " = " << pow << endl; return 0; }[/CODE] I dont get …

Member Avatar for tkud
0
107
Member Avatar for MattJones

Hey Guys, I'm working on a C++ program for school. Basically the Program inputs a file of points and outputs an svg file that contains the Graph with the least number of edges. We need to implement this with the Kruskal and Prim algorithm, and the algorithm needs to be …

Member Avatar for Fbody
0
205
Member Avatar for stereomatching

I am learning concurrency programming, I try my best yet can't solve the problem [CODE] boost::mutex mut; std::vector<int> int_vector; boost::condition_variable int_cond; void data_preparation_thread() { while(int_vector.size() != 10) { std::cout<<"data preparation thread :: vector size = "<<int_vector.size()<<std::endl; boost::lock_guard<boost::mutex> lk(mut); int_vector.push_back(4); int_cond.notify_one(); } } void data_processing_thread() { while(1) { std::cout<<"front :: data …

Member Avatar for stereomatching
0
237
Member Avatar for Ravic85

Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing …

Member Avatar for Eagletalon
1
1K
Member Avatar for divyam_shukla

i have an existing database and i want to attach that database one time to sql server and when thee database is attached then it open that database

Member Avatar for kvprajapati
0
116
Member Avatar for awais.abdul

In this course we are going to develop software for “School System” that will computerize all the necessary school processes. This software will facilitate the school management in running and managing the school. We will mainly focus on these aspects, 1. Teacher and Student Record Keeping 2. Student Grading 3. …

Member Avatar for swathik
1
919
Member Avatar for meli123

BOOL is basically pretty intuitive.. my question: [CODE]#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { double cost, finalPrice; bool type; type=true; //taxable cout << "Enter price: "; cin >> cost; if (type) finalPrice = cost*1.07 ; else finalPrice = cost; cout << "Final price: " …

Member Avatar for mrnutty
0
96
Member Avatar for nerdygirl118

How do you grow a circular array? I have a front, I have a back, I have a current_size, I have a maximum_size, and of course I have the array. So, how do you grow a circular array? Thank you kindly!

Member Avatar for nerdygirl118
0
296
Member Avatar for crownedzero

OK, so I want to create a function getStrRegion(commented out at the bottom) to pass a str value N, S, E, W, C back to the main function so I can then drop it and regionSelect back into getNumAccidents. I'm not exactly sure how to pass a string of characters …

Member Avatar for mrnutty
0
111
Member Avatar for monkeybut

I am running into an issue trying to get the program to read in my data correctly. The program is supposed to take a data file and read in names, if the string is preceeded by "surname" or "lastname" then the string lastname is set to the next string, if …

Member Avatar for NathanOliver
0
161
Member Avatar for t2r

I'm searching for a good tutorial about object oriented analysis and design but can't find any short and clear tutorial which will has: 1. Explanation of oo concepts (very short) 2. CODE EXAMPLE (eg. if someone describe aggregation I wanna see how I can use this in my class) There …

Member Avatar for t2r
0
189
Member Avatar for mrrko

[I]Negotiating a consumer loan is not always straightforward. One form of loan is the discount installment loan, which works as follows. Suppose a loan has a face value of $1,000, the interest rate is 15%, and the duration is 18 months. The interest is computed by multiplying the face value …

Member Avatar for Bummpy 1
0
1K
Member Avatar for ghostile

Hey just a quick question with list <Object*> object; when i put an object in the container i use object.push_front(new thing(param1,param2,param3,param4,param5)); because i have used new how do i go about deleting this certain object in the list i figured somthing like this [CODE] while(p != object.end()) { if((*p)->exists(param)) { …

Member Avatar for dospy
0
231
Member Avatar for Rmaure

was just wondering if anyone can help me with some homework. I have been trying to figure this out for a couple hours now. I am sure it is probably simple but I can't get it to run. What I have to do is take user input that contains the …

Member Avatar for dospy
0
222
Member Avatar for OblibSystems

Basically the time old question of who would win. Just decided to put a very geeky twist to it. Just looking to see if people think C++ is better/worse then C :icon_lol:

Member Avatar for ddanbe
0
441
Member Avatar for manie
Member Avatar for sydsine

plz explain these function. how can w divide a number by 3 using only atoi function.

Member Avatar for cse.avinash
0
453
Member Avatar for iAMyours

Can anyone help me how to blink my introduction for my program? seriously i have no idea how to do it :( THANKS ! ;) here's my introduction: [CODE]cout <<" \n \t\t***WELCOME TO THE ALLOY INQUIRY PROGRAM!*** " <<endl;[/CODE]

Member Avatar for WaltP
0
91

The End.