49,761 Topics
| |
Hi everyone - I am currently reviewing 'Absolute C++' 3rd Edition book by Professor Savitch - I would like opinions from fellow list member regarding the book, please: 1) What are your opinions about the above text - Pros & Cons 2) What other texts can you 'strongly' recommend? 3) … | |
>>// Lab 4 read and calculation file/input Ray Perales >>// This program will read the data in the input file >>// used by grosspayMinustaxFileCode >> [code] >>#include <iostream> >>#include <fstream> >>using namespace std; >> >>int main() >> >{ >> ifstream fin; >> fin.open("readgrosspayMinustax.in"); >> if (fin.fail()) >> { >> cerr … | |
I've create a C program that makes a call to routines which I create inside of python...however when I copied the final exe to another machine the program crashed saying it couldn't find the python25.dll...tried looking for it but could not find it. Is it enough that we have this … | |
Hey, I have a hash table for primitive values that uses a template to store the key Type and value Type, everything compiles fine as far as that's concerned, but i have a wrapper class that associates floats with ints (array indices) and that's all good except for one syntactic … | |
I've been looking over classes, but I just can't understand a few things. 1) Why would you make variable private and use functions to set and read them? Whats the benefit? 2) Since I don't know what the benefit of making variables private, whats the point of using a class … | |
[code=cplusplus] class Base{ char* s1; public: ... ~Base(){ delete s1} } class Derived:public Base{ char* s2; public: ... //the constructor of the derived class will call the constructor of the //base class, so derived will contain s2 and s1 too. ~Derived(){ //HERE } void main(){ ... Base x[5]; ... }; … | |
Hello, I have got a problem declaring a matrix. I have got a picture (bitmap) and I take the whole image with a rectangle so I can "paste" it in a matrix. My problem is that the constructor says that I need an array of Point (Point[]) but I don't … | |
I was wondering if it is possible to have people create accounts with passwords and be able to login in to them within a C++ console app without using SQL. Like winsock or something. | |
Hello!! I wanted to know that does anybody can provide me the source code of : how to find the shortest path between different countries.? I m sending u my code its in Visual C++ 6.0 I m doing it with adjacency list. done with adjaceny list but dont know … | |
plez can any one have id about programs do like [U]Min menu[/U] 1- Manager 2-Data Entrry 3-Exit ________________ if user enter 1 another menu like [U]Manager[/U] 1-Add Employee 2-Deleat Employee 3-Modify Employee 4-List Employee work hours ____________________ or if the user enter 2 from the main menu show like [U]Data … | |
Hmm, i kinda aint in the mood to dig the net about this, so i guessed i'd post my question here.. I'm not so familiar with the time library...is there a nice easy way to drop some code into the loops to check which one is slowing down the program? … | |
I'm new to this site and to C++ in general I was looking for some way to do the following: Write a program that allows numbers to be [B]entered[/B] in decimal, hexadecimal, or binary, and then [B]prints out[/B] the number again in all three bases. Any help on this program … | |
I want to store my file data in array?? List.txt contains Xyz Abc Lmn Pqr Hij Klm [code] #include <stdio.h> #include<conio.h> int main() { FILE * pFile; char mystring [100]; pFile = fopen ("c:\\List.txt" , "r"); if (pFile == NULL) perror ("Error opening file"); else { while(!feof(pFile)) { fgets (mystring … | |
Hello! I've used the code in [URL="http://www.daniweb.com/code/snippet173.html#comments"]this[/URL] thred to generate an image on the Console. It works fine but the problem is that I don't know how to clear the screen in dev-cpp. I've imported some libraries (conio & winbgim) from [URL="http://www14.brinkster.com/aditsu/console/"]this[/URL] site and clrscr() works but it only deletes … | |
Hi all. I am seeking to learn how to link my drag/drop GUI's to the code I wrote for a program from some 9 years ago. I.e., I have Borland, and MS's Visual Studio 6. I used both-- at different times-- to create a program, and was able to use … | |
[code]#include <stdio.h> #include<conio.h> #include<string> #include<iostream> using namespace std; int main() { string aa ,bb; aa="mycomp"; //Comp name bb="User1"; //User name string r_parameter=" -l "; string r_parameter1=" -n "; string r_exe="ipconfig"; aa.append(r_parameter); aa.append(bb); aa.append(r_parameter1); aa.append(r_exe); cout<<"\nHello\n"; cout << aa << endl; system(" Rsh aa"); getch(); }[/code] problem is execution at here … | |
Here is my file text file data Tree Bush Apple Mango Animal Dog Animal2 Cat [code] #include <stdio.h> #include<conio.h> #include<string> #include<iostream> #include<fstream> using namespace std; int main() { FILE * pFile; char mystring [100]; char mystring2[100]; char ch; int i=0,j=0; pFile = fopen ("c:\\List.txt" , "r"); if (pFile == NULL) … | |
can anybody solve this problem.. Linking... gdtopng.obj : error LNK2001: unresolved external symbol __imp__gdImageDestroy@4 gdtopng.obj : error LNK2001: unresolved external symbol __imp__gdImageCreateFromGd@4 Debug/gdtopng.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. gdtopng.exe - 3 error(s), 0 warning(s) | |
hello there, i was hoping someone could help me figure out why my program isn't compiling. Its a polynomial math program i put together...and with my function "MathPoly" //'d out it compiles just fine....It continually tells me that variables are undeclared and the compiler is crapping out on line 51 … | |
Hello all! So im taking a C++ class and I'm supposed to make a grade book program that will take in 6 programs grades and 2 test grades, then multiple the average of each by 50% and add them together for a letter grade... So that was the first project … | |
The problem resides below - I'm trying to make a directive command that disable one constructor definition, or the other, based on the parameter of T. When I uncomment the block around the if statement, I get this error-- [ICODE]... missing binary operator before token "(" [/ICODE] --but when I … | |
Hi All I was working on a proj in which I wanted to go through various directories one after the otehr using enum. Now say from root node 2 branches are coming out- US and Japan and from each of these are further branching into CA1 and CA2. So the … | |
hi i have aquestion i really need an answer for it because it frustrated me... [B]look at these two functions:[/B][CODE]void CSecondDlg::OnButton1() { //**BROWSE DIALOG 1**// FILE *fp; FILE *file1 = fopen("file1.txt","w"); //Create txt file for saving editbox content int nFileLong; //***********************************************// char strFilter[] = { "CPP Files (*.cpp)|*.cpp|All Files (*.*)|*.*||" … | |
hai this is manoj. i am doing mca 5th semester and i need to do mini project .iam interested in doing project on c++.can iget suggestions regarding which project will be better to do. thanku | |
hello, been googling this for a while and can't come up with anything good, so hopefully this won't be so easy to answer that it makes me look lazy. I'm writing an application for linux (gcc compiler) that calls various system and custom commands from inside my own program, nothing … | |
Here is my question Write a command line program titled joinTextFiles.cpp that concatenates the contents of several files into one file. For example, the following command line [B]joinTextFiles chapter1.txt chapter2.txt chapter3.txt book.txt[/B] will create a long file titled book.txt that contains the contents of the files chapter1.txt, chapter2.txt, and chapter3.txt. … | |
Okay so I'm trying to learn the basics of C++ from a book which is I think, well I know, a few years old. I already came across a couple of problems; Firstly the <iosteam.h> thing, which can technically be rectified by using -wno- deprecated in my djgpp compiler, but … | |
Hello :) I'm making a (new :P) game in C++, and in the beginning of the file, I'm initializing an array like this [code] int tower_dmg[5][3]; int tower_spd[5][3]; int tower_eff[5][3]; int tower_efc[5][3]; int tower_cst[5][3]; [/code] And later in the program, when loading images and initializing a lot of stuff, i … | |
Hi. I've searched the daniweb question database, and was not satisfied with solutions I found there. I have a string that looks like this... "100 1.745329252 0.984807753 -0.173648178 -5.67128182" not exactly words, but I want to select say, the third "word" of this string (0.984807753) into a variable. The whitespaces … | |
I know about using ran() to create a random number between x and y, however i am creating a banking program and i am wondering how to randomly generate a 17 digit pin, then store the pin in an outside file, then have the program check the file for the … |
The End.