51,593 Topics

Member Avatar for
Member Avatar for JoE Guana

Hey guys, i'm new here and i'm also new to C++. I have a task where I have the user input a file name and then the program loads it into an array of type struct then finds the top 3 values and outputs them. I am so stuck right …

Member Avatar for VernonDozier
0
218
Member Avatar for lahom

hi i have anew class which my dialogs should be based on it instead of being based on CDialog. two weeks ago ...when i inserted a new dialog and create a new class for it ..i was able to choose my new class from the drop down list. but now …

0
56
Member Avatar for e_pech

Hello!! I have a FormView and I added a Tab Control... I'm able to add pages (tabs) to it but I want to be able to have a different Dialog View on each tab??? Or how can I have different controls on every tab?? I'd really appreciate all the information!! …

0
66
Member Avatar for Jennifer84

I have a general question about Diagram in VC++ 2008. If I want to draw a diagram out of a serie of numbers for the coordinates X and Y in a Diagram. Is there any classes/ built in methods for this. - Is this very difficult things to do in …

Member Avatar for mitrmkar
0
299
Member Avatar for Kob0724

I keep getting this error: [QUOTE] debug/moc_funccntrlparams.o: In function `qt_noop()': /home/f07/xxx/QT/include/QtCore/qglobal.h:1425: multiple definition of `FuncCntrlParams::type_pairPotList' debug/interpotcntrlparams.o:/net/home/f07/xxx/workspace/tramontoGUI/interpotcntrlparams.cpp:95: first defined here [/QUOTE] But I'm not defining type_pairPotList any where in the interpotcntrlparams.cpp file. This is what my code looks like at line 95 in interpotcntrlparams.cpp. [CODE] #include "funccntrlparams.h" . . //line 91 …

Member Avatar for Kob0724
0
2K
Member Avatar for shakilaf

Hi All, I am using RWZoneSimple object and RWTime object to check whether a given Date is falling under DST (Daylight Saving Time) or not when my server (HP-UX system) is in Non DST time (by having TZ=US/Arizona). I have created RWZoneSimple with the date that falls in DST ("05302008"// …

Member Avatar for jephthah
0
170
Member Avatar for wellibedamned

okay, i know i might be boring with my questions but could someone tell me how can i read an array of floats mixed with ints and then print them out same as they were on input...? typecasting thing again? anyone knows a good book i could use to stop …

Member Avatar for jephthah
0
152
Member Avatar for Cybulski

I want recursively fill members of one structure, it looks like this: [code=cplusplsus] struct OPTIONS{ string sDirectoryName; vector<string> vExtensions; int uOperationId; } structCurrentDir; [/code] after filling all members I need to push this structure to another vector: [icode]vDirectories.push_back(structCurrentDir); [/icode] But then I need reset all members and I have problem. …

Member Avatar for Duoas
0
108
Member Avatar for WesFox13

Hey, I need a little bit of help figuring out how to find the minimum and maximum of a particular data in a file. Should I treat the file I'm opening as an Array in order to find it or is there a certian function that can do this?

Member Avatar for Duoas
0
272
Member Avatar for rockiecool129

hi, Please tell me what the below mentined code is doing? If i pass String s as `my name is "xyz. and " i am writing `. what should be the output. Thanks in advance void parse(Block<String>& f, String s) { int inquote = 0; int nf = 0; int …

Member Avatar for tesuji
0
84
Member Avatar for roniswar

Hello, as an exercise in c++, I should make a parking lot, the classes are: Transport( with local protected variables color and max_velocity), Car, inherites from Transport(with extra variable model), Truck, inherites from Car(with extra variable model weight), Bike inherites from Transport(with extra variable model gear), and Parking which is …

0
55
Member Avatar for Ravenn

mm.., hello. First, i'm kinda new to this... kinda, anyway, i'm supposed to write a prog that handles large numbers, like 200 digits long, by storing them in a string of characters. it's supposed to have a class with functions for all the mathematical operations, reading, and writing, maybe into …

Member Avatar for Ravenn
0
107
Member Avatar for savinki
Member Avatar for ithelp
0
129
Member Avatar for savinki

how can I do this?? can someone help me [code] char * abc = "as,df,ert:we,rt,yu:ee,rr,tt"; Class x { char * a,*b,*c; } vector<x> vtr; I want to extract data from abc like, while(there is a ":") { x.a= as; x.b=df; x.c=ert; vtr.push_back(x); }[/code]

Member Avatar for Radical Edward
0
278
Member Avatar for ulquiorra

Hello all, I'm new to hash tables etc. and for some schoolwork I need to make one. The hash table and hashfunction itself aren't the problem. The "problem " I wish to solve lies in the display function of my code. I like to write a function so that it …

Member Avatar for ulquiorra
0
2K
Member Avatar for linux0id

Hello everyone! I am learning sound programming on Linux. In my app I am using ffmpeg to decode the audio, and then ALSA to pass it on to speakers. So far everything is fine - the packets are retrieved, stored in a queue. After that, the packets are read from …

Member Avatar for linux0id
0
123
Member Avatar for monkey_slap

I ran into a roadblock developing my code for an assignment to sort a linked list as it is entered (insertion sort). We've had sketchy classes lately so the idea of linked lists is really rough for me at the moment because it's a little hard to understand. This assignment …

Member Avatar for Lerner
0
174
Member Avatar for lahom

hi i have an application where the user need to save his information. the first time he saves...a save dialog appears and the process goes as normal . but here is my question.. if he add any modification to his info and press the save button again ...i dont want …

Member Avatar for Duoas
0
71
Member Avatar for Aldayne

Hello, everyone. I need help with a bank account class. I was supposed to create a class called Account which houses an attribute called balance that is protected and returns a double data type. There are some other things required of me which have been completed in the coded below. …

Member Avatar for Aldayne
0
151
Member Avatar for wellibedamned

Okay, so i have an idea...that looks like it should work. I'm supposed to be able to multiply for example: 1234567812345678912345678*1234562345673456. My idea was to put each number into a string, and then make a matrix to store the values of each digit multiplied by each digit... i'll put an …

Member Avatar for iamthwee
0
412
Member Avatar for TeCNoYoTTa

Hello all I am beginner in C++ and i have some questions In many languages there are included libraries for many uses such as libraries for downloading files / uploading files using ftp connection ...etc but in C++ i cant find these libraries my question ....... must I use libraries …

Member Avatar for TeCNoYoTTa
0
156
Member Avatar for Grub

Hi, I have the following class and main method: [code=cplusplus] class Employee { vector<string> v; string name; int i; public: Employee(){} Employee(string &n): name(n), i(0){} void read(vector<string *> &vec) { string n; for(int i = 0; i !=3; i++) { cin>>n; Employee e(n); vec.push_back(&n); } } }; int main() { …

Member Avatar for Grub
0
265
Member Avatar for QuantNeeds

Help - I am having the following errors repeatedly so I know it is a consistent mistake I am making but I just can’t see what it is. I already fixed many other errors and now it’s just this.....so close...... :confused: My errors are the following. I did not put …

Member Avatar for QuantNeeds
0
198
Member Avatar for Anita Jennifer

What are the major differences between C and C++ programming languages??

Member Avatar for Anita Jennifer
0
100
Member Avatar for ice661666

I am working on code to calculate the factorial using below function: int factorial (int num) { if (num==1) return 1; return factorial(num-1)*num; // recursive call } And I need to calculate the numbers from 1 to 255… The problem occurs when it reaches number 35 and above, it starts …

Member Avatar for ice661666
0
162
Member Avatar for Jennifer84

I have a code like below that when pressing a button, panel1 and labelText1 should be seen. Then I will put the process to "Sleep". After this, labelText1 should be emty ("") and labelText2 should write "TextMessage2": Then I wil put the process to "Sleep" again. And last put panel1 …

Member Avatar for Jennifer84
0
133
Member Avatar for jrkeller27

First time posting, this seems like a wonderful community. Okay, so I'm new to C++ (mostly worked with java) and I'm trying to write a program that will read in a plain text file (a short paragraph) and take and place each word in the text file and place it …

Member Avatar for William Hemsworth
0
1K
Member Avatar for people123

Hello, I have recently installed Microsoft Visual C++ 2005 Express Edition, and right off the bat when trying to make a new project I find myself unable to make a Win32 Windows Application, when I go to check the bullet that says "Windows Application", the option is grayed out. I …

Member Avatar for ismetteren
0
133
Member Avatar for savinki

How can I type cast char* to a long value? e.g. char * abc ; long xyz; xyz = abc????

Member Avatar for Radical Edward
0
233
Member Avatar for jonbyrd

Know of any good ebooks? : I have recently purchased the resell rights to about 600 ebooks so that I can post them on my website for my registered members only. I've purchased all of these ebooks for under $20. I'm just wondering if there is any ebook out there …

Member Avatar for Nick Evan
0
38
Member Avatar for Driklyn

I'm trying to create a class inside a header file so that all my files can access that 1 class and only use that one. This is what I have so far. ---------- Window.h: [ICODE] class Window { public: Window(); ~Window(); /* FUNCTIONS */ HWND OpenWindow(LPCTSTR, int, int); /* VARIABLES …

Member Avatar for Driklyn
0
96
Member Avatar for TheBeast32

Hi, I recently watched the movie Iron Man. While making his first suit, Tony Stark apparently is using C++ on the laptop in the background. Is this C++ and if not what is it?

0
29
Member Avatar for zawpai

Hi, Why the program skip 'read value' in second time? First time reading value is ok, but the problem will get after pressing 'Enter key' for the next time read. [CODE] //array of pointers to person objects #include<iostream.h> class Person { protected: char name[40]; public: void getname() { cout << …

Member Avatar for zawpai
0
112
Member Avatar for hazmatt

I have been searching for days to find an Http Client in C++ that I can use. I am assisting in a research group involving camera recording based on sensor detection and am responsible for making the interface with the cameras. I have some work that was done before I …

Member Avatar for hazmatt
0
338
Member Avatar for wellibedamned

could someone please check this code and tell me where i went wrong... it always gives the result 1.00000 but as you can see in the for loop it shouldn't be like that. [CODE]#include <cstdio> int main(void) { int n; float s = 0; scanf("%d", &n); for(int i = 1; …

Member Avatar for wellibedamned
0
113
Member Avatar for cobaltbass

Whenever I start my program from the command line, it works perfectly. When I try to use the icon on the desktop, it gets to the last cin statement and terminates. I have no idea why this would happen. Any insight?

Member Avatar for Duoas
0
284
Member Avatar for nlsna17

:!: Write a program that reads in an m by n matrix row by row, then reads in an n by p matrix row by row, and then computes the product matrix and displays the two matrices, as well as their product matrix on the screen. Use integer values for …

Member Avatar for Bitto11
0
176
Member Avatar for AqAbAwE

lets say I have a class named MyClass, and a variable named val, what does the following statement mean? i know its dynamic allocation, but what does the ** indicate? MyClass **p1 = new MyClass*[val]; thanks for your help.

Member Avatar for AqAbAwE
0
75
Member Avatar for daviddoria

I have about a 1gb data file that needs to be read at the beginning of my program. This takes about 2 minutes to do. I feel like the answer is "no way", but here is my question. In matlab, there is the concept of a "workspace". I can ready …

Member Avatar for Radical Edward
0
95
Member Avatar for kasippu

01. ) during sorting , if we wish to swap the items in 2 positions , we simply swap the pointer values and leave the main data table unchanged:: what is a possible advantage and disadvantage of doing this .. ?? 02. ) what would be the effect of incrementing …

Member Avatar for Abzero
0
89
Member Avatar for mussa187

[B]Okay i thought i have solved the problem i had obviusly with ur help guys but i guess i was doing it wrong, here is what i am suppopse to do:[/B] BACKGROUND This is the same as the DNS pointer problem except ypou must structure your code into a class …

Member Avatar for VernonDozier
0
99
Member Avatar for toolbox03
Member Avatar for lahom

hi how can i move from one dialogbox in one project to another one(dialog box)placed in different project? for example...press abutton in dialog A -> move to dialog B.. any suggestions any way that could help would be appreciated thank u all

0
76
Member Avatar for Kadence

Are there any functions to calculate, or common techniques to estimate, how much memory a C++ script is consuming at a given moment/place in the code? Maybe some built-in function that keeps track of bytes used?

Member Avatar for Ancient Dragon
0
55
Member Avatar for joshmo

am trying to delete an element from my list but am having a problem..i have managed to position my pointers well but av failed to to the actual element. i.e user enters a number to be deleted from the list..here's the bit of the deleting code that i have been …

Member Avatar for joshmo
0
128
Member Avatar for CoolGamer48

Hey, when I run this code: [CODE=Cplusplus]else if(strcmp(buffer,"#itemSprite") == 0) { char* sprite_filename = ""; int trans_r; int trans_g; int trans_b; int width; int height; int numFrames; int numCols; int frameChangeDelay; fscanf(file,"%s",sprite_filename); fscanf(file,"%d",&trans_r); fscanf(file,"%d",&trans_g); fscanf(file,"%d",&trans_b); fscanf(file,"%d",&width); fscanf(file,"%d",&height); fscanf(file,"%d",&numFrames); fscanf(file,"%d",&numCols); fscanf(file,"%d",&frameChangeDelay); item->SetSprite(sprite_filename,D3DCOLOR_XRGB (trans_r,trans_g,trans_b),width,height,numFrames,numCols,frameChangeDelay); }[/CODE] I get an error on this line: …

Member Avatar for mitrmkar
0
86
Member Avatar for jmines

I want to change the background color of the output screen in Dev-C++. How can I do that? I searched the Internet but didn't find any. Any help on which function should I use?

Member Avatar for Salem
0
167
Member Avatar for v@$@nt

please help me in writing a code to implement stack using arrays , does stack follow LIFO or FIFO principle?

Member Avatar for n1337
0
111
Member Avatar for computer engW

Here i have problem with ctype.h library .I think i use correctly,but i ahve an error on it. This is the code. [ICODE]#include<iostream> #include <ctype.h> using namespace std; int main(){ char letter; int num; int isdigit(int letter); int isupper (int letter); int islower( int letter); int small=0; int capital=0; int …

Member Avatar for computer engW
0
182
Member Avatar for shobhit saxena

hello all, can somebody tell me what's the use of protected default constructor & protected copy constructor in c++.

Member Avatar for Ancient Dragon
0
52

The End.