51,593 Topics

Member Avatar for
Member Avatar for curt22

Could someone explain how to use a list view in the windows api (Like when your in windows explorer in details view). I read an article about it and searched google, but I'm still not sure how to use it could someone explain it to me. I want a simple …

Member Avatar for Ancient Dragon
-1
76
Member Avatar for Duki

Hey everyone. I need to write program that builds an object of Pizza class and then pass that object to Order class. here's my Pizza class: [code]class Pizza { public: void setCheeseToppings ( int ) ; void setPepperoniToppings ( int ) ; void setSize ( string ) ; void setType …

Member Avatar for Duki
0
189
Member Avatar for JC7

I've been learning the .NET framework in vC++ for a while and I'm thinking of going to C#. I'd like to here the opinions of others who have experience with both. Thanks.

Member Avatar for nicentral
0
194
Member Avatar for cutepoison

[code] #include<iostream.h> int functlargest(int, int, int); int functsmallest(); int functdifference(); int main() { int num1, num2, num3; cout<<"please enter 3 numbers: "; cin>> num1 >> num2 >> num3; functlargest(int); functsmallest(int); functdifference(int); return 0; } functlargest(int a,int b, int c) { if (num1> num2 && num1>num3) cout<<"The largest number is: "<<num1<<endl; …

Member Avatar for Narue
0
106
Member Avatar for m_meena

Hi all, I want to create a script file which builds my projects in VC++, C#, VB and .NET. When i build a component by command line it gives error for the dependent libraries. How can i give the option or specify path for the libraries and include files to …

Member Avatar for Narue
0
126
Member Avatar for DeathEvil

part of the code [CODE] string phone_book[11] = {"Becky Warren, 678-1223", "Joe Looney, 586-0097", "Geri Palmer, 223-8787", "Lynn Presnell, 887-1212", "Holly Gaddis, 223-8878", "Sam Wiggins, 486-0998", "Bob Kain, 586-8712", "Tim Haynes, 586-7676", "Warren Gaddis, 223-9037", "Jean James, 678-4939", "Ron Palmer, 486-2783"}; int x, index; char lookup[50], *strPtr = NULL; /********************************** …

Member Avatar for DeathEvil
0
161
Member Avatar for nate12457

The program is suppose to output all the prime numbers between 3 and 100. It acutally outputs all numbers between 3 and 100. My code is as follows: [code] #include <iostream> using namespace std; int main () { int number=3, count=2; while (number <= 100) { if ((number % count) …

Member Avatar for nate12457
0
80
Member Avatar for Brent.tc

I was wondering which would be better to use for the allocation of memory. The memory that is being allocated will almost certainly have to be reallocated several times. I am making a string class (how original :) and I am going to give it dynamic memory allocation (whether or …

Member Avatar for Narue
0
162
Member Avatar for Laiq Ahmed

Can any1 tell me about the tutorials and description regarding new c++ standard. specially the improvement in STL.

Member Avatar for vijayan121
0
108
Member Avatar for rjc

Hello all, this is my first post. My problem is with division and/or the way i am declaring variables. here's my code: [code=cplusplus] #include <iostream.h> int main () { int minutes; float hours; float minutes_late; cout << "How many minutes late are you? " ; cin >> minutes; hours = …

Member Avatar for WaltP
0
96
Member Avatar for conan19870619

How are an object’s data members initialized if a class has only an implicitly defined default constructor? And why a class might provide a "set" function and a "get" function for a data member? What is the purpose of the scope resolution operator?

Member Avatar for n.aggel
0
575
Member Avatar for jaepi

Hello there, I've been messing around with threads these days. Currently, I'm having problems with one of my variables of type [B]pthread_cond_t[/B] (let's call it variable [B]Z)[/B]. I made a class (let's say class [B]X[/B]) , and you guessed it right, [B]Z[/B] was declared in it with private access level. …

0
386
Member Avatar for ehrugo

The program I'm doing randomly generates 10 numbers per group. While there will always be 10 numbers in each group, how many groups are to be made is user-specified and is thus static. I can generate the numbers from the userinput just fine, I ran a test and had it …

0
65
Member Avatar for eranga262154

I've read 4 consecutive bytes from a binary file, and store the value as follows, [CODE] int main() { char next4[4] ; while(!fileopen.eof()) { fileopen.read (next4, 4 ) ; } } [/CODE] What I want to do is, that value in next4 want to convert into a decimal/int value. How …

Member Avatar for eranga262154
0
201
Member Avatar for eranga262154

I have a binary file, contain set of stream, and I want to find some information there. What I have done up to now is read the file, open it and count the number of streams three. I'm stuck now. Just consider one stream. I want to skip first 4 …

Member Avatar for eranga262154
0
2K
Member Avatar for annagraphicart

Okay, so i've gotten some help, however i'm still missing some things. In the code below, I have a Bowler's name, and their score. [code=cplusplus]#include <iostream> #include <string> using namespace std; int main() { string names[3] = {"John","Anne","Mary"}; int score[3] = {5,1,2}; //i.e //John's score = 5 //Anne's score = …

Member Avatar for Ancient Dragon
0
103
Member Avatar for curt22

How can I make this print the text in the edit box when you push the button instead of "You pushed a button." I have looked all over but I can't figure it out. [CODE] #include <windows.h> #include "resource.h" HWND hWndButton; HWND hWndEditBox; HFONT hFont; /* Declare Windows procedure */ …

Member Avatar for curt22
0
144
Member Avatar for neilyan

im trying to creat a class called Date that includes data members: a month, a day and a year (all type int). that have a constructor with three parameters to initialize the three data members. i have to use a set and a get function for each data member and …

Member Avatar for neilyan
0
170
Member Avatar for spankyg

[code] [COLOR=green]#include[/COLOR][COLOR=green]"stdafx.h"[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<cstdlib>[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<iostream>[/COLOR] [COLOR=green]using[/COLOR][COLOR=green]namespace[/COLOR][COLOR=green] std;[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] tmain([/COLOR][COLOR=green]int[/COLOR][COLOR=green] argc, _TCHAR* argv[])[/COLOR] { [COLOR=green]// Let's Declare Variables[/COLOR] [COLOR=green]int[/COLOR] Num_Pegs; [COLOR=green]// Total number of pegs to a side[/COLOR] [COLOR=green]int[/COLOR] Hold_Und; [COLOR=green]// Hold underscore location[/COLOR] [COLOR=green]// User Enters Number of Pegs[/COLOR] cout <<[COLOR=green]"Enter Number of Pegs:"[/COLOR]; cin >>Num_Pegs; [COLOR=green]// Array to create a …

Member Avatar for spankyg
0
138
Member Avatar for cwarn23

I am a complete newbie to c++ and I am trying to find some tutorials. What I am trying to do is use a variable (from external text file) to rotate a 3D object. Then for the program to take a picture of the position the 3D object is in. …

Member Avatar for Ancient Dragon
0
108
Member Avatar for therohanz

I got this requirement wherein i have to program the different cpu algorithm namely FCFS, SJF and Round Robin..but i dont know how to make a round robin.. please help me with it..i need it tommorow:( here's my requirement..Link: [url]http://www.4shared.com/file/24492109/a3069b64/ALGO.html[/url] if there is a problem with the link please contact …

Member Avatar for therohanz
0
107
Member Avatar for Xsaintx

I have an assignment due tomorrow, my professor hasn't taught the class much of anything other than what other careers there in the programming field and how other careers differ from programming. He hasn't been of much help at all and I'm at a total loss of how to start …

Member Avatar for Salem
0
98
Member Avatar for dumboo

Hello I need help in converting char * to TByteDynArray in Borland C++ Builder. Below code is suppose to work but it give me EAccess Voilation error. [code=c++] char *one = "test"; TByteDynArray two; two.set_length(sizeof(one)); Move((void *) one[0], (void *) two[0],sizeof(one)); [/code] This kind of code work in delphi and …

Member Avatar for Salem
0
1K
Member Avatar for Oblique

I am currently enrolled in a course doing OO with C++ at college. I have been assigned an assessment where using Visual Studio and DirectX, create a game of basically any sort of difficulty but I must use all aspects of OO. I have an idea of what game sort …

Member Avatar for MattEvans
0
117
Member Avatar for hisdudeness300

hey everyone, im new, and i have a simple question. im writing this basic code for my class to input six different check amounts, then give the total and average. so far i have it so it works perfect with whole number. the only problem is, the numbers i need …

Member Avatar for spankyg
0
76
Member Avatar for veronicak5678

i am new to programming and am trying to do a weird assignment. Here are my instructions: There is a drive-thru Car Wash that offers different services. 1) Regular Car Wash 2) Super Car Wash 3) Super Dooper Car Wash 4) Quit The fee for each one of these services …

Member Avatar for veronicak5678
0
108
Member Avatar for Geek-Master

I am running Ubuntu and compiling my C++ code using g++. For some reason I can't get it to compile my source code using VOID MAIN. It is always telling me that I must use INT instead. This isn't life threatening, but I was just wondering if g++ just doesn't …

Member Avatar for spankyg
0
191
Member Avatar for CrazyCoder

Hi All, The problem is that i have to read in a text file which is something like: ASt BSt BSt WSt BSt YeSt BSt KrSt MSt KrSt they are possible street intersections from ASt to MSt. I have to output the list of streets in order to reach MSt …

0
49
Member Avatar for starjsjwars

Hey can anyone tell me how to make a program that i can have a cmd in the cmd to exacute over and over waiting 1 minute each time?

Member Avatar for starjsjswars2
0
159
Member Avatar for nedwards

Hi, I'm working on this project and it requires to manually control a digital camera. I have the dll that is supplied by Cannon, but the dll is unmanaged the the demo project they have with it is in C++ or C. I've been doing a lot of research and …

Member Avatar for nedwards
0
193
Member Avatar for Robin_Dragon

How do you read values from a file you created, to print it in an array to create a frequency?

Member Avatar for Robin_Dragon
0
149
Member Avatar for Duki

Hey guys, I keep getting a link error in my code. It says this: [code]1>prob4.main.obj : error LNK2005: "private: static int HotDogStand::totalSales" (?totalSales@HotDogStand@@0HA) already defined in prob4.func.obj[/code] Here's my code, maybe someone can help me out. [code]#pragma once #include <iostream> using namespace std ; class HotDogStand { public: HotDogStand ( …

Member Avatar for Duki
0
92
Member Avatar for SurviBee

The assignment was to graph a line within 10 units of the origin after the user inputs the slope and y-intercept. Sounded much easier than it was, I gave it a shot but I can't get it to print correctly. To be honest I just dont know if im headed …

Member Avatar for iamthwee
0
80
Member Avatar for chris53825

Hey guys, I'm trying to make a linked list in C++ such that: it creates a node for each student in a classroom, AND that each student has it's own 4 nodes for their 4 test grades. I've created two structs - studentNode, and gradeNode studentNode containing "name" and "*next" …

Member Avatar for Narue
0
124
Member Avatar for random7

I did vector calculation like blow. Here I just use 2 vector addition C =A1+A2 But, now I want to add many vecters like A1+A2+...+A35 Is there any simple method beside ( I don't want to type continuously like A1,A2,A3,A4.....A35) ex) void sum(vector<long double>& C,const vector<long double>& A0,const vector<long double>& …

Member Avatar for vijayan121
0
134
Member Avatar for SurviBee

Was compiling homework problem with Dev-C++ and got ]Linker Error] undefined reference to determinant(float, float, float, float, float, float, float, float, float) Anyone know what this is? [code=cplusplus] #include <iostream> using namespace std; float determinant(float, float, float, float, float, float, float, float, float); int main() { float x1, x2, x3, …

Member Avatar for SurviBee
0
229
Member Avatar for ocean001

hi guys, i creating mobile interface using visual c++ 2005. After i creating few dialog, and it works. after i implementing into mobile device, then i realize that when i click my OK button top-right corner it does not close the program immediately, i have to press few time in …

0
61
Member Avatar for AllenN

Just finished going through C in easy steps and reading C in Jensens and now I am going on to C++ and as I am a slow learner and I need to understand before I can learn or do things, it suddenly hit me while reading and doing Schildt C++ …

Member Avatar for AllenN
0
209
Member Avatar for wicked357

First if I choose A it take the qty and the only number and shows it as the largest. I believe the smallest works correctly but not sure since I get a warning message about it. The warning messages I get are: [code] loop.cpp(67) : warning C4700: uninitialized local variable …

Member Avatar for Rashakil Fol
0
125
Member Avatar for mujahid_zfr

How to execute sound codes in C++ by using external speaker? Could someone please give example code for me(The basic one)

Member Avatar for Sturm
0
56
Member Avatar for wicked357

I have to take my current code which displays a menu and repeats until the option 'c' is chosen which quits the program. Now I have to modify that same code to include a function for both A and B. The function for A should have the quantity of numbers …

Member Avatar for wicked357
0
123
Member Avatar for annagraphicart

I really need to do this program, so I need ALOT of help. I want the program to output a question asking "Enter John Smith's Bowling Score: ", and that repeated abotu 20 times with Different names. (DO I need to store the names? if so, how?) What the user …

Member Avatar for Sturm
0
149
Member Avatar for sycc2172

Greetings. I'm currently doing a project on Traveling Salesman Problem. But I'm not asking for answers for the whole project. I just started my programming lessons so I hope can get some help from all of you. About this project: Initially you have to read 2 input files, Input1.txt and …

Member Avatar for iamthwee
0
944
Member Avatar for curt22

I have a single line text box, that is wide enough to hold 20 characters and I was wondering how do I make it so that you can keep typing even though it's got 20 characters in it without making it longer and without a vertical scrollbar? I'm sure it's …

Member Avatar for curt22
0
90
Member Avatar for yassar

I am trying to read source code of a webpage in C++. I haven't gone too much of a way. Can I read it as a text File??

Member Avatar for vijayan121
0
214
Member Avatar for nagramana

I am trying to call a [URL="http://www.daniweb.com/forums/post398239.html#"]C#[/URL] function which returns byte array from C++. Can anybody have some sample [URL="http://www.daniweb.com/forums/post398239.html#"]code[/URL]. Thanks njvr

Member Avatar for Ramy Mahrous
0
54
Member Avatar for curt22

I have a simple program with a button and an entry field, and I'm wondering how can I organize them (like they were in a table) so that they don't overlap? I'm using the windows api. I tried searching but I'm not sure what to call this.

Member Avatar for curt22
0
122
Member Avatar for leolima

Hey guys! CAn u tell me if my program is right? First, I need to get a Pkg and validate; Second,get month and validate; Third, determinate max hours; *If FEB; Fourth, get year and validate(1990-2020) check for leap yr. Fifth, get hours and validate against maxhours; and calculate the bill …

Member Avatar for iamthwee
0
118
Member Avatar for rdanda

Yes, this is homework, but I am trying. The problem is: Simulate coin tossing Program must print Heads or Tails. Toss 100 times and count the number of times each side of the coin appears. Call a function "flip" that takes no arguments and returns 0 for tails and 1 …

Member Avatar for rdanda
0
357
Member Avatar for Journey:Start

I am serching referance books or pubs to get into electronic device handling fundementals with c++. Any heads up message would help me out. Thanx for attention.

Member Avatar for Journey:Start
0
89

The End.