49,766 Topics

Member Avatar for
Member Avatar for Drowzee

My project continues... But at least I'm getting better at using C/C++ and MFC. Now, I'm at a critical point: dynamic memory allocation fundamentals. I have a data class with a number of unsigned char arrays and longs that are addressed in structs (encapsulated by the class). I'd like to …

Member Avatar for Ancient Dragon
0
317
Member Avatar for thiru.y

Hi I am using the dev c++ compiler can somebody please guide me as tohow I should integrate libtiff and its associated header files with the c++ compiler .I am on a deadline so any help would be greatly appreciated. Can somebody also be kind enough to run this code …

Member Avatar for Ancient Dragon
0
614
Member Avatar for johnroach1985

Hi hope i am writing in right section of the forum trying to create a registry for my C program which has an .exe . want to work on windows start. The program is a kind of firewall program closes ports and opens them only if they are opened from …

Member Avatar for johnroach1985
0
198
Member Avatar for mugilan

what about this question.........what is a default comstructor? how are an object's data members initialized if a class has only an implicitly defied default constructor? explain the purpose of data member. << moderator edit: split thread (was a reply to [thread=15829]this[/thread]) >>

Member Avatar for nattylife
0
1K
Member Avatar for BioTechNoob

I’m having trouble entering data from a file into an integer and character array. Basically, in this file, some the data I want transferred into a character array. Other parts, I want transferred into an integer array. I am able to get data into the arrays, and the char array …

Member Avatar for Ancient Dragon
0
297
Member Avatar for DeVilSoul

ok,i'm suppose to read all the "CP0X"(where x is a number) from a file and save it into a array.Then read the name(the YYYYY,ZZZZZ,etc) and save each them into array. Example: CP01 YYYYY CP02 ZZZZZ CP04 WWWW CP01 RRRRR CP03 UUUUU . . . CPO2 TTTTT So....i did this for(int …

Member Avatar for nattylife
0
264
Member Avatar for ayk-retail
Member Avatar for jwenting
0
154
Member Avatar for Mahen

Why is VC++ 2005 beta2 telling me this and how do I solve it. .\Test2.cpp(42) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Please note that this problem does not exist …

Member Avatar for Stoned_coder
0
254
Member Avatar for paladin4service

I am trying to build a scientific calculator. However, I have two major problems. 1. The decimal to separate the tens from the tenth 2. Modulus which outputs the remainder of the division of two numbers. Remainder = dividend – quotient * divisor; I can get the rest, but I …

Member Avatar for Ancient Dragon
0
248
Member Avatar for 3265002918

i tried to run this program but it comes up with the windows 6th grade algebra quiz has encuontered a problem and has to close message can anyone help? here is the code: [CODE]#include <fstream> #include <cstdlib> #include <iostream> #include <stdlib.h> #include <time.h> #include <string> #include <conio.h> using namespace std; …

Member Avatar for 3265002918
0
345
Member Avatar for Analogsleeper

I have a strange number input problem. I am scanning in numbers from a file, like so: [CODE] While(bla){ double temp; minmaxFS >> temp; //do crap } [/CODE] And it works fine until it reaches a number like: 8e-05 (A non-decimal exponential number). Then, it just hangs up and scans …

Member Avatar for Dave Sinkula
0
243
Member Avatar for iamthwee

hello everoyne, I am nu 2 this so pleaz b kind. I need 2 make a program which does the factorial. But i not no how to do this. It is urgent so if you could help me i would be greatfull. God bless. i have this so far. [code]#include<iostream.h> …

Member Avatar for bops
0
387
Member Avatar for mostuniquename

i'm new to c++, i was wondering if somebody could clarify something for me about encapsulation, for example if you have 2 classes [code]class Music { private: int a; public: int b(); int C(); }; class Record: public Music { private: char c; int a; float b(); protected: int d(); …

Member Avatar for Daishi
0
110
Member Avatar for bops

hi all, im trying to find out how i can move a file to another location in c++. Is there any kind of function or way i could do this. Ive seen before someone using the system() function to use command prompt style commands like system("cmd,command"); or something like that …

Member Avatar for bops
0
291
Member Avatar for cjm771

Hi i have c++ as a class and decided to do a tic-tac-toe for fun at home. Um I've only been in it for a week. anyways here is the coding so far: [CODE] #include <iostream.h> #include <string.h> #include <math.h> #include <iomanip.h> #include <conio.h> #include <stdio.h> main() { char a1='-'; …

Member Avatar for Rashakil Fol
0
246
Member Avatar for bryj3

Hello... Any idea how to write this in C++ code.... A parking garage chages a $2.00 minimum fee to park up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour …

Member Avatar for Twin6g72Turbo
0
1K
Member Avatar for lucia

Hi, I am struggling with c++ linking problem in Linux... The C++ code has MATLAB engine inside, and it has no problem when compiling under Windows(same MATLAB version, MATLAB 6.5R13), but it can not be compiled with Linux, I always get the following error: [code]/usr/bin/ld: warning: libstdc++-libc6.1-2.so.3, needed by /s2bin/matlabR13/bin/glnx86/libmx.so, …

Member Avatar for lucia
0
518
Member Avatar for Micko

Hello there I'm a new member of this board. Can anyone explain me on some example what callback functions really do? I found one tutorial about function pointers where concept of callback function is introduced but I didn't find it suitable for understanding. Can anyone exaplain it in simple terms …

Member Avatar for Micko
0
116
Member Avatar for shortLived

What I want to do is pass a function to a function. The function that is to receive a function is a recursive function. It is to call the passed function. I have a short (one page) example of this in my book but that is it and I can't …

Member Avatar for Narue
0
248
Member Avatar for 3265002918

hi i need to make a homework helper for 3 equasions 3 unknowns that will ask me what the equasions are and calculate what the unknowns are i thoght i would ask what the first char was a number or a letter and if it was a number it would …

Member Avatar for 3265002918
0
178
Member Avatar for Arhianne

hi guys i really need your help about my project.... my project goes like this.......CREATE A C PROGRAM THAT WILL ILLUSTRATES CPU SCHEDULING ALGORITHM TECHNIQUES IN GRAPHICS AND PULL DOWN MENU MODE.... IM hoping for your reply soon... thank you in advance....God bless you all.... :cool:

Member Avatar for Dante Shamest
0
122
Member Avatar for rks01

when i was programming in java i had a program into which you enter class names and methods and how they connect with each other, and it builds a shell of the program for you. i cant remember what its called but is there anything like this for c++?

Member Avatar for Dante Shamest
0
79
Member Avatar for konacious

Hi, I got a program and I am finished except for the last portion of the program. It is where I print the final seating chart. Can you help? Here is my code: [code]#include <iostream> using namespace std; const int NUMROWS = 7; const int NUMSEATS = 4; void initPlane(char …

Member Avatar for konacious
0
213
Member Avatar for jhdobbins

alright say i have a data file i want to open up and extract the data into a binary tree... i do this to open the file: [CODE]binaryTree::information() { ifstream file; file.open ("proj4.dat"); }[/CODE] although ill have more in that after i learn how to do it.. and i have …

Member Avatar for CrazyDieter
0
142
Member Avatar for risingboy

Hello Guys, I want to make a Memory Management Utility very similar or like adobe photoshop preferences section.in which user can select a ram he want to use for particular application. as in photoshop user can select amount of Ram photoshop will use. and scratch disk application that will be …

Member Avatar for CrazyDieter
0
128
Member Avatar for jhdobbins

kinda like the last program.. just does different things.. anyway, im getting a seg fault i dont understand one bit its off of the menu function. when you input an invalid number like 8 - it says invalid but if you input 7 to quit the program it seg faults. …

Member Avatar for jhdobbins
0
123
Member Avatar for ginpero

Hi everybody. I am a student taking up C programming and I need some help from you guys. My main problem is that I do not know how to start with programming, aside from that, I would like to know also whoever knows how to understand discrete structures in programming. …

Member Avatar for Dante Shamest
0
152
Member Avatar for bsdpowa

Hello all, I'd like, very much, to understand linked-lists.I've read many texts on the subject and tried many source codes but none of them seemed to fit my needs (one from daniweb is pretty close but it's in C) so I, as desperate as I can be, beg you for …

Member Avatar for bsdpowa
0
530
Member Avatar for Mike182

Hey, i get the following annoying link errors when i try to build my program: [quote] Compiling... power level.cpp Linking... power level.obj : error LNK2001: unresolved external symbol "int __cdecl YesNo(void)" (?YesNo@@YAHXZ) Debug/power level.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/quote] The program compiles ok, but it …

Member Avatar for Mike182
0
188
Member Avatar for jhdobbins

for example when i now search for a specific city and none match the function will tell you but if there is a match the program just dies, also when i try the retrieve all function, the program dies by seg fault... so im thinking its in my while loop? …

0
47

The End.