49,761 Topics

Member Avatar for
Member Avatar for uzymedphys

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) …

Member Avatar for Ancient Dragon
0
74
Member Avatar for mikelle

>>// 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 …

Member Avatar for kc8pdr
0
139
Member Avatar for deostroll

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 …

Member Avatar for deostroll
0
82
Member Avatar for agartrell

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 …

Member Avatar for agartrell
0
91
Member Avatar for Firestone

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 …

Member Avatar for Narue
0
76
Member Avatar for Muttley

[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]; ... }; …

Member Avatar for Narue
0
121
Member Avatar for &rea

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 …

0
59
Member Avatar for cam9856

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.

Member Avatar for cam875
0
87
Member Avatar for sweety0

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 …

Member Avatar for Jishnu
0
413
Member Avatar for omanstar12

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 …

Member Avatar for stephen84s
0
79
Member Avatar for wellibedamned

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? …

Member Avatar for phalaris_trip
0
82
Member Avatar for margierose

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 …

Member Avatar for William Hemsworth
0
159
Member Avatar for Aamit

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 …

Member Avatar for Alex_
0
1K
Member Avatar for gh0sst

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 …

Member Avatar for mitrmkar
0
395
Member Avatar for SteveDB

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 …

Member Avatar for Necrolis
0
668
Member Avatar for Aamit

[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 …

Member Avatar for Nick Evan
0
86
Member Avatar for Aamit

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) …

Member Avatar for mitrmkar
0
108
Member Avatar for hemendra.jadaun

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)

Member Avatar for mitrmkar
0
48
Member Avatar for darkis

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 …

Member Avatar for stephen84s
0
174
Member Avatar for AceChandra

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 …

Member Avatar for darkis
0
83
Member Avatar for Alex Edwards

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 …

Member Avatar for Alex Edwards
0
225
Member Avatar for 937ajay

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 …

Member Avatar for Ancient Dragon
0
72
Member Avatar for lahom

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 (*.*)|*.*||" …

Member Avatar for Ancient Dragon
0
274
Member Avatar for manoj gangula

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

Member Avatar for manoj gangula
0
50
Member Avatar for jesseb07

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 …

Member Avatar for jesseb07
0
154
Member Avatar for thehype2049

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. …

Member Avatar for thehype2049
0
91
Member Avatar for Paul Tobias

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 …

Member Avatar for Paul Tobias
0
221
Member Avatar for ulrik04

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 …

Member Avatar for ulrik04
0
129
Member Avatar for ShellB12

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 …

Member Avatar for ShellB12
0
106
Member Avatar for Superfat

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 …

Member Avatar for tesuji
0
169

The End.