49,761 Topics

Member Avatar for
Member Avatar for jith125

How do I save the inputs given from Edit control into a text file??? I am really new to Windows programming.Can someone please help me out. Thanks in advance.

Member Avatar for jith125
0
141
Member Avatar for guilherme.carvalho.9250

Hello to everyone, i recently started to learn c++ with this book "Jumping into C++" from Alex Allain. In this book there is an example of a program to get the prime numbers from 0 to 100 that Im not understanding! For what I think I understood the second loop …

Member Avatar for guilherme.carvalho.9250
0
192
Member Avatar for silvercats

http://www.amazon.com/Primer-Plus-6th-Developers-Library/dp/0321776402/ref=sr_1_2?s=books&ie=UTF8&qid=1354763661&sr=1-2&keywords=c%2B%2B+primer http://www.amazon.com/Accelerated-C-Practical-Programming-Example/dp/020170353X/ref=sr_1_1?s=books&ie=UTF8&qid=1354763739&sr=1-1&keywords=accelerate+c%2B%2B http://www.amazon.com/Primer-5th-Edition-Stanley-Lippman/dp/0321714113/ref=sr_1_1?ie=UTF8&qid=1354763774&sr=8-1&keywords=c%2B%2B+primer Beginner's guid. I am new to programming. about 3 months experience. maybe 2. I hope to develop applications for widnows later.(not GUI). mostly system software. what is the best boook?

Member Avatar for yxBen
0
1K
Member Avatar for t2nator

This is a topic we didn't cover in class so I am lost on what is going on, any pointers would be greatly appreciated: ~Given the following numbers ... 25 72 122 ... and given the following hashing function ... hashvalue := (i*i) mod 97 ... and using Linear Probing, …

0
132
Member Avatar for t2nator

I am trying to get a good understanding of what's happening in the following question: ~Given the following numbers in array A ... 47 43 20 24 32 44 35 ... what are the numbers that would result from a Pre-Order Traverssal of the Binary Tree built using the above …

Member Avatar for t2nator
0
210
Member Avatar for Suzie999

Seemingly, bitmap resources within my file are becoming somehow corrupted. My code has resource bitmap image, when ran, it searches the screen for that image and returns its xy location. Runs fine and works fine at least once, and sometimes more, but then fails to find the image. When I …

Member Avatar for Suzie999
0
105
Member Avatar for M4ver1k

I'll try to keep it brief. When I try to pass the 'list' vector to the counter function my compiler throws an error of: "error: request for member size in count, which is of non-class type std::vector<int>*" Googling hasn't produced anything quite what I'm looking for syntax wise. If someone …

Member Avatar for M4ver1k
0
257
Member Avatar for andrew mendonca

The local baseball team is computerizing its records. Write a program that computes batting averages and other statistics. There are 20 players on the team, identified by the player ID 1 through 20. You will have two input files: roster.txt and statistics.txt 1) The Roster File (roster.txt) - This file …

Member Avatar for andrew mendonca
0
444
Member Avatar for loldafuq

** Compile program functions for: -Enter of a keyboard and a file into an array (by adding) data to 30 girls in the competition "Miss World" number, name, surname, date of birth, physical data, state and display the current contents of the array on the screen -display output data for …

Member Avatar for abd.mosaher
0
134
Member Avatar for marnun

Here is the exercise: > fileWord > Write the definition of a function named fileWord that receives a string argument that is the name of a file containing words. > > The first time the function is called, it returns the first word of the file whose name it was …

Member Avatar for marnun
0
263
Member Avatar for Super_android

Help, I'm getting the following error message: error C2040: 'money' : 'double' differs in levels of indirection from 'char [15]' error C2088: '>>' : illegal for class #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <sstream> #include <string.h> using namespace std; string FileName; void starline(); float balance; float deposit; …

Member Avatar for Super_android
0
539
Member Avatar for rocksoad23

Hey, I'm developing a program in which there are two classes. The purpose of one of them is to create vectors that change dinamically (class A) and the other is a bunch of methods to operate on these vectors (class B). The question is: I don't see any need to …

Member Avatar for ravenous
0
148
Member Avatar for ricsaka

#include <iostream> #include <string> #include <fstream> #include <vector> #include <sstream> using namespace std; struct Uzenet { string honap; int nap; string time; string computer_name, szolg_name, massage; }; void kiir(const Uzenet &uzenet) { cout << "Az uzenet ideje: " << Uzenet.honap << " " << Uzenet.nap << " " << Uzenet.time; …

Member Avatar for JasonHippy
0
1K
Member Avatar for 9tontruck

Hi, I need to read byte by byte data from header-like file. The format of the file is in the link, please take a look http://imageshack.us/photo/my-images/96/tablefu.jpg/ I dont need the first 128bytes and I need to get the next 4 bytes. My code is like below: char* icm_name = "Samsung_to_Cannon.icm"; …

Member Avatar for Ab000dy_85
0
356
Member Avatar for Huxaifa

I want to develope an ETL application for Data Ware House Project (Decision Support System) for university, i am extracting data from, Excel, Access and CSV format files, i have done the extraction, but now the problem is the Transformation of Data, i have to clean it and standardize it, …

Member Avatar for L7Sqr
0
147
Member Avatar for Huxaifa

Actually i want to find a probabilty of a name spelling wise e.g Malik, Malique, Malick, Malik, Malicq, Malique, Malik, Malike, Maliqk, Maliq, Malik, Malick, Malik, Malique, Malik now in above example the probability of "Malik" is high spelling wise that is 6 so is there any algorithm or logic …

Member Avatar for deceptikon
0
63
Member Avatar for MOjo72

I am working on C++ coding for Shape.cpp and in the square I am getting scientific notation as the for the area and perimeter. Can anyone please tell me what I am doing wrong. Thank you. Here is my code #include <iostream> #include <sstream> #include <vector> #include <string> using std::ostringstream; …

Member Avatar for ravenous
0
473
Member Avatar for Carc369

I'm used to if/else. Can someone tell me if this correct or not. It's not pulling up an error but it's not outputting what I want it to output either. Thank you! char pick; cin >> pick; if(pick == 'a' || pick == 'A') stuff inside here //For case switch... …

Member Avatar for awaisahmad13
0
136
Member Avatar for Blastcore

So, let's say i have this on a file: #include "MyFolder1\MyFile1.txt" #include "MyFolder1\MyFolder1SubFolder\MySubFile1.txt" #include "MyFolder2\MyFolder2Sub\MyFolder3Sub\MySubFile1.txt" What i'm trying to do is to make a project tree, it's well explained on the sample up there. But the issue is, should i be using [QTreeWidget](http://qt-project.org/doc/qt-4.8/qtreewidget.html) or [QTreeView ](http://qt-project.org/doc/qt-4.8/qtreeview.html) for it? But that's …

Member Avatar for rubberman
0
116
Member Avatar for sheila.younkin.1

I am trying to write a program that reads words from files and then puts them into arrays and then does a count on certain words. I have moved stuff around and really I am not sure that I am even on the right track. Could someone please look at …

Member Avatar for rubberman
0
286
Member Avatar for rmbrown09

I'll keep the story short here but to sum things up: I have always liked computers. Hardware has always been my thing. I have my own custom built desktop and love changing and messing with it every day. I also work (part time) as an IT guy for small business. …

Member Avatar for rubberman
0
231
Member Avatar for rocksoad23

Hello guys! I'm a beginner in C++ programming and I've a (stupid, I think) doubt about how to pass an object's class into another class. Suppose we have these two classes: class A {...} class B {...} and I want to use an object from A into B. For example: …

Member Avatar for rubberman
0
314
Member Avatar for Sasquadge

So I need a little help on this, What this program is supposed to do is have the user input there checkbook.txt into the program which looks like this deposit:July 7:-:300 416:July 8:Albertsons:15.85 417:7/9:Checker Auto:19.95 418:7/10:Super Target:47.50 419:Dec 5:Home Depot:47.89 Once the users enters there data into the program it …

Member Avatar for Super_android
0
171
Member Avatar for chocolatesky

Hello, I have a homework assignment due for my Intro to Programming class, I have no idea what I am doing and wanted some help. I complete it in RAPTOR and generated the C++ code from there, but my professor doesnt want us to do it like that, he wants …

Member Avatar for chocolatesky
0
138
Member Avatar for danthegreat

#include <iostream> using namespace std; class Burger { private: double patty; double bun; double cheese; public: Burger(); double getPatty(); double getBun(); double getCheese(); void setPatty(double p); void setBun(double b); void setCheese(double c); double hamburgerCalc(Burger b); double cheeseburgerCalc(Burger b); double dcheeseburgerCalc(Burger b); }; double Burger::hamburgerCalc(Burger b) { double bun = b.getBun(); …

Member Avatar for danthegreat
0
2K
Member Avatar for riotburn

I have the below class that yields this error for the lines I commented. The error I get is ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&FD_Euro_Put::f’ The signature for Forward Euler is: Eigen::MatrixXd B::Forward_Euler(double …

Member Avatar for rafea fheely
0
304
Member Avatar for rahim_fayaz

Hi, How I can solve this integration numericaly in C++? integration{x * exp(-itx) / [a*x^3 + b*x^2 + c] } ; (Interval for x is from -inf .. inf) & (t ,a ,b ,c are constants);

Member Avatar for ravenous
0
172
Member Avatar for CHOCHOCHO

I just started to learning how to use classes and specification files. For some reason i keep getting an error saying `length' undeclared (first use this function) #include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; const int MAXSIZE = 50; typedef string ItemType; class List { public: …

Member Avatar for ravenous
0
156
Member Avatar for Magda6347

Dec 7, 2012 at 11:18pm Im trying to create a bank account. In the bank account the user creates an account and puts whatever amount they want to open account. after account is created they can go to withdraw or deposit and add or subtract additional monty from the account. …

Member Avatar for ravenous
0
120
Member Avatar for Prysm[VA]

Alright guys, I've been looking at this on google and I can't seem to find an answer. Any help is definitely appreciated! Here is the code, then I will explain my problem. void printMenu() { cout<<"||============================||"<<endl; cout<<"||=========Main Menu==========||"<<endl; cout<<"||===1.Begin DNA Creation"; cout<<"||===2.Load the Files"; if(!dna1[].strand1){ cout<<"<0>";} else{ cout<<"<"<<sizeof(dna1.strand1)<<">";} cout<<endl; cout<<"=========||"<<endl; …

Member Avatar for Prysm[VA]
0
429

The End.