49,755 Topics

Member Avatar for
Member Avatar for jesseb07

hi, this should be a fairly simple question to answer. I have a function in my program that takes the content of a text file and populates an array with all the information. First it has to see how many lines the file has (as it can change) so it …

Member Avatar for jesseb07
0
5K
Member Avatar for gabs

[COLOR=#555555]Hi all![/COLOR] [COLOR=#555555]Can anyone tell me where can I find a source that will help me learn visual c++ win32, without com and mfc, just pure basic, visual c++?[/COLOR] [COLOR=#555555]I already programmed different programs, but I am having trouble, when I try to add more windows to my program, I …

Member Avatar for reddy_rajesh100
0
74
Member Avatar for farag

Hello Please, i need someone to help me doing this simple program I want a program that keeps tracking of the profile of program execution Input: A source code Process: Keeps track of the the profile of program execution Output: Display the original source code with line number and profile …

0
53
Member Avatar for angellove40

Q .1 )An election is contested by five candidates. The Candidates are numbered 1 to 5 & the voting is done by marking the candidates number on the ballot paper.Write a prog to read the ballots and count the votes cast for each candidate using an array variable count. In …

Member Avatar for vmanes
-1
121
Member Avatar for tones1986

Hey folks. I am working on a project that adds additional information to previous projects. Basically, for ezch project i have added another header file with cpp file. For example, originally we just had an Employee.h and Employee.cpp file which contained a class for employees containing name, department, and SSN. …

Member Avatar for tones1986
0
155
Member Avatar for kylcrow

Hello, I have to write a shopping cart class in c++ and I am getting a core dump, and I have no idea why. I know where it is core dumping. Its dumping at 2 places-> Shopping_Cart::Print(Shopping_Cart* head) and Shopping_Cart::TotalPrice(Shopping_Cart* head) Here are my 3 files... shopping.h [CODE=C++] #ifndef SHOPPING_CART_H …

Member Avatar for Ancient Dragon
0
308
Member Avatar for prushik

What is the easiest way to get a user input string (char array) from within an OpenGL program? It doesn't have to look good, this is just for debugging purposes. Thanks.

Member Avatar for prushik
0
85
Member Avatar for Jboy05

Consider the following function prototypes and variable declarations: void Func1 (double, char &); bool Func2 (double, double); double Func3 (bool); double d1, d2; char c; Without additional function or variable, how do I write ONE C++ statement to call ALL THREE functions: Func1, Func2, and Func3?

Member Avatar for vijayan121
0
115
Member Avatar for Nemoticchigga
Member Avatar for Barbarrosa

Hello, I've been trying to figure out this problem for a while now and cant figure it out. What im trying to do is assign a value to a location in an array. SIMPLE! isnt it. well heres my problem. int main(){ int array[1][1]; . . . array[0][1]=-1; array[1][0]=-2; cout<<array[0][1]<<" …

Member Avatar for Ancient Dragon
0
107
Member Avatar for behnaz

Hi , I Want To Khow About How I Can Start The Turbo C++, I Want To Develope This Program: Develope A Graphical Analog Clock . You Should Be Able To Set The Clock Alarm And Your Clock Should Ring At The Time Set. Please Help Me About This Program.

Member Avatar for Duoas
0
154
Member Avatar for CoolGamer48

Hey, So, my understanding of header files so far are that they're basically code that can be used by multiple .cpp files. But if you have a prototype in a file.h that's declared in a file.cpp that includes file.h, and then FILE.cpp includes file.h, does FILE.cpp have access to the …

Member Avatar for Ancient Dragon
0
175
Member Avatar for cosmos22

I'm trying to open a file, using the ifstream function. I'm using a .jpg image as an example, but it doesn't work, any ideas? Thank you. [code=c++] int main(int argc, char *argv[]) { char file[20]; strcpy(file,"C:\\Fraps\\1.1.jpg"); ifstream outfile; outfile.open(file); return 0; } [/code]

Member Avatar for Ancient Dragon
0
209
Member Avatar for behnaz

when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h>

Member Avatar for Ancient Dragon
0
104
Member Avatar for rwagnes

I am using MFC and C++... I have a dialog of type CDialog containing several objects including a CPropertySheet called m_dlgPropSheet (which does not have it's own class beyond CPropertySheet). This property sheet contains three identical pages (with different data) of type CPatchSummaryPage which inherits from CPropertyPage. I am trying …

Member Avatar for mitrmkar
0
1K
Member Avatar for cosmos22

Hi, I was wondering how you might go about deleting all of one certain file type in a folder. For instance, say asked the user if he wanted to erase all text entries(.txt) to clear up his folder, and it would do it all at once. Thanks! :)

Member Avatar for Ancient Dragon
0
63
Member Avatar for look@me

in this program iam going to remove all the element in the list and find the minumum number in the list this is my try but the result is wrong Implementation .cpp [code=cplusplus] #include <iostream> #include "arrayListType.h" using namespace std; int main() { arrayListType<int> intList(100); //Line 1 int counter; //Line …

Member Avatar for Ancient Dragon
0
93
Member Avatar for rohoni

what is operator overloading ? how many types i have? can any one help me with some example.

Member Avatar for farag
0
146
Member Avatar for brsowmya

somebody please lemme know wats the meaning of the following class declaration in c++ class A B { . . . } plz note 'A' is a macro n 'B' is actually the name of the class

0
49
Member Avatar for tonyaim83

Hi My current editor is Dev-Cpp 4.9.2.2 .My test program which runs fine looks like dll.h [code=c++] #include <windows.h> #include <stdio.h> #include <stdlib.h> #ifdef __cplusplus extern "C" { #endif __declspec(dllexport) void HelloWorld(); #ifdef __cplusplus } #endif [/code] And dll.cpp [code=c++] #include"dll.h" void HelloWorld () { MessageBox (0, "This is a …

Member Avatar for Ancient Dragon
0
124
Member Avatar for invincible_king

hey guys, i would really appreciate if you can give me links to some good C tutorials online or some good books , esp with regard to pointers and other advaced C topics...........i wish to learn C properly and then move on to C++, although i have started C++ already.....

Member Avatar for Ancient Dragon
0
110
Member Avatar for meen08

hello, I'm using builder c++ for a sniffer application. I have a TThread object in a file called unit4 which show the packets in a TreeView. [CODE]__fastcall ThreadPackets::ThreadPackets(pcap_t* adhandle) : TThread(false), adhandle_(adhandle) { FreeOnTerminate = true; } void __fastcall ThreadPackets::Execute() { while (!Terminated) { ....do something... } }[/CODE] I have …

0
39
Member Avatar for chocl8drop

I am working on a program that will read a list of words from a file. For each word, I have to build a key which is basically the word with all of its letters sorted (i.e. dorw is the key for word). I need to build an array of …

Member Avatar for dougy83
0
124
Member Avatar for sgw

Sometimes when I use a lab PC for visual C++, even when a program is very simple and absolutely correct, and sometimes passes the compiler, but when i try to run it, it shows "Fatal error... can't find path...." what's the reason?

Member Avatar for mitrmkar
0
107
Member Avatar for prushik

ok, here is my problem. I am using sprintf to write a formatted string. That works fine. it looks like this:[CODE=C++] sprintf(buffer, "%f,%f,%i,%f,%f", user.x, user.y, user.dir, user.xspeed, user.yspeed);[/CODE] where user is a struct x is a float y is a float dir is a short int xspeed is a float …

Member Avatar for mitrmkar
0
154
Member Avatar for Iqbal_h_a

Hi All, I have built an application on C++. It is a multi threaded application. My application spawns 8 threads when it come up. Each thread opens one file and maps it using mmap. It is a client-server application. Each thread picks up a message from the queue and processes …

Member Avatar for Nick Evan
0
117
Member Avatar for nurulshidanoni

Dear all, I have one problem,..I want to count how many examcode and fill in the blank in the matrix below that I have done. Example is ,, for examcode 1 how many it appear. and for examcode 2 and examcode 1, how many student take both of them?? [code=C++] …

Member Avatar for nurulshidanoni
0
355
Member Avatar for micah1983

A bank charges $10 per month plus the following check fees for a commercial checking account: $.10 each for less than 20 checks $.08 each for 20-39 cecks $.06 each for 40-59 checks $.04 each for 60 or more checks The bank also charges an extra $15 if the balance …

Member Avatar for carnage
0
113
Member Avatar for rickykoh1983

Hi. I have a program that allows users to enter their information. After they have entered their information and clicked on submit, the program will create another exe file so that when the user opens the exe file, they will be able to see their information. How can I create …

Member Avatar for RamPrasad710
0
223
Member Avatar for thecraig

I am trying to write a file that writes to a user specified folder using ofstream. The basics of the code looks like this: [code] #include <iostream> #include <fstream> #include <conio.h> #include <stdlib.h> using namespace std; int write(int id) { ofstream myfile; myfile.open ("account/"id"/example.txt"); //this is where the error pops …

Member Avatar for thecraig
0
96

The End.