51,593 Topics

Member Avatar for
Member Avatar for NervousWreck

I am just starting to learn C++ with the Waite group primer. I wrote a program loosely based on the books instructions to display any entered ASCII character and its numeric value and the same for the next character in the table. Heres the bug: The second character works fine, …

Member Avatar for mitrmkar
0
104
Member Avatar for FTProtocol

Hey guys im just wondering if any guys have any clue on building a DLL Injector/Loader As in, in a folder you have Blah.exe and Blah.dll when Blah.exe is run it injects the dll into a specified process (via blah.ini) Now i know i need to use LoadLibrary or CreateRemote …

Member Avatar for mitrmkar
0
483
Member Avatar for sanchyvil

im new in programming cpp usually i do java... i have this problem, evertime i run my program i cannot see the output well, its just like it blinks... so idk if i have a correct output for my program... tnx...

Member Avatar for VernonDozier
0
125
Member Avatar for Aamit

i am creating shedule task program .. eg. daily ... i want to create this program like when pc restart or on... i want this exe check this timing automatically and executes at that time How to do this?? [code] #include<stdio.h> #include<conio.h> #include<time.h> #include<stdlib.h> #include<ctype.h> #include<dos.h> #include<windows.h> int main() { …

Member Avatar for Jishnu
0
110
Member Avatar for sivakrishna

modify the program siutably so that once the calender for a particular year has been displayed on screen , and year has been displayed on the screen,then using arrow keys the user must be able to change the calender in the following manner: UP ARROW KEY :next year,same month DOWN …

Member Avatar for ssharish2005
-1
172
Member Avatar for brnprasad630

Does anybody knows about #pragma where they are used and what is the significance in using them. If anybody knows about please reply. :?:

Member Avatar for TheAgent1982
0
592
Member Avatar for mikelle
Member Avatar for QuantNeeds

I am little confused, maybe a little overwhelmed because we are just getting into the various storage classes and scopes, and also arrays. My biggest issue is getting my functions and data members recognized in the separate files. I was able to do this with a project I had on …

Member Avatar for QuantNeeds
0
100
Member Avatar for ghadahelal

hi, i have a program which read the input stream as a character then it transdforms this charcters to integers in the input stream there is ^, ex , x^2 how can i deal with.

Member Avatar for William Hemsworth
0
86
Member Avatar for raj157

Well it is an assignment question here is the question : Implement a base class Person. Derive classes Student and Instructor from Person. A person has a name and a birthday. A student has a major, and an instructor has a salary. Write the class definitions, the constructors, and the …

Member Avatar for William Hemsworth
0
736
Member Avatar for amccorm

Hi, I'm taking a shot at the netflix challenge and relearning C++ at the same time (I usually code in Python now). I'm storing the data in the following structure: typedef struct ndata{ unsigned int userid : 22; unsigned int rating : 3; unsigned int : 0; unsigned int movieid …

Member Avatar for Jishnu
0
93
Member Avatar for mike issa

I am having problems with using a header file called lt360lib.h My code is as follows [CODE] #include <lt360lib.h> #include <iostream> using namespace std; main() { } [/CODE] as you can see it is a simple code just to test if the header file is being accepted or not. but …

Member Avatar for Jishnu
0
425
Member Avatar for callmeravi81

Hi, Any one can help me .. i want the C++ code for hashing operations to implement dictionary ADT....Plz help me ... Thank you

Member Avatar for Jishnu
0
77
Member Avatar for ff4930

Hello everyone, I am new to maps and I have a simple question. I have a map that stores a string as key and the data I want a map<int, int> so my syntax is map<string, map<int, int> test; What would be the syntax to insert say "hello" and say …

Member Avatar for Narue
0
123
Member Avatar for Futbolmasteryan

I completly new to Programming and someone adviced me to start with C++. So I opened some tutorials and gone over them. Those tutorials only say what to type in there(btw I have downloaded Dev-C++). So I do whatever they ask me but I don't get the point of this. …

Member Avatar for Jishnu
0
134
Member Avatar for TheBeast32

Hi, i have made a simple program that gets all of the running processes on a computer and gets the text from their windows. It works, but sometimes it gives the wrong text. For example, i have notepad open, and it doesn't say the right text. To compile, you have …

Member Avatar for TheBeast32
0
350
Member Avatar for bdjhall

Hello everyone I'm new here! :icon_smile: I'm also new to C++, and I'm having a little bit of trouble with a code of mine. // function example #include <iostream> #include <string> using namespace std; int addition (int a, int b) { int r; r=a+b; return (r); } int main () …

Member Avatar for bdjhall
0
124
Member Avatar for agrawalashishku

Hello all, I have a base class called reuse_pattern and two derived classes apple_reuse_pattern, mango_reuse_pattern. Actually, the derived classes are only there to keep track of some static variables and they are all completely same except for the word mango and apple. I find that this is a very inelegant …

Member Avatar for jencas
0
77
Member Avatar for gregorynoob

I've started programming a few months ago, i've done basic before, then i tried pascal for a while but now i'm comfortable with C++. The problem is, i'm trying to learn as much as i can from the net and books, but i can't find a good book i could …

Member Avatar for VernonDozier
0
113
Member Avatar for falloutphil

Hi, I'm at a loss to explain an issue I'm seeing below. It's a simple enough peice of C++, just sum all the values of 1/n from n=1 to n=10000. Easy, eh? The problem I have is explaining why when looping for the large to small bound i.e. 10000 down …

Member Avatar for falloutphil
0
207
Member Avatar for lhadieinsane

i need help.. i am NOT asking you to do it for me.. i just need some idea coz i can't really understand the problem.. here it is: Consider the sequence of digits from 1 through N (where N=9) in increasing order 1 2 3 4 5 . . . …

Member Avatar for Jishnu
0
77
Member Avatar for lhadieinsane

i need some help.. this is for our C++ project.. :( can somebody help me? i'm just a beginner in C++.. (THANK YOU!) 1) [B]LARGE NUMBER[/B] For the purposes of this problem we will define a large number as a positive whole number with at least eight digits. For example, …

Member Avatar for lhadieinsane
0
117
Member Avatar for aintlikeyou

Hi guys, I need to write a program in C++ that will input data for N rectangles (0<N<5). The data for each rectangle consists of coordinates of the lower left and upper right corners, which are positive integers, less than 100. Then I need it to calculate the area of …

Member Avatar for Alex Edwards
0
134
Member Avatar for Ellisande

So... here I am again. Items are a pretty important part of RPGs, so I'm probably going to have to code them in at some point. My basic idea is this: I'll start with an abstract class called "Item". From there, it'll be broken down into several subclasses, including "Equipment" …

Member Avatar for Ellisande
0
290
Member Avatar for ibe123

Below is my problem... Here is my code... [code=cplusplus] #include<iostream> #include<iomanip> //allows me to use setflags/showpoint and set precision #include <stdlib.h> //for exit(1) #include <fstream> # include <stdlib.h> # include <cstdlib> using namespace std; int main() { double s1, s2, s3; ifstream inf; inf.open ("C:\\CS201HWASSGN6INPUTFILE.txt", ios::in); ifstream infile("C:\\CS201HWASSGN6INPUTFILE.txt", ios::in); //Input …

Member Avatar for Jishnu
0
186
Member Avatar for WillMcc

I'm just basically reading a book and messing around with the scripts they give me so I can understand what they're talking about, and here is the script (essencially word for word) however isn't working. What the program is supposed to do is (for example:) [B]"Enter two integers, and I …

Member Avatar for Alex Edwards
0
182
Member Avatar for WillMcc

As the title says, more or less. I'm just trying to make a program basically (Variable) + (Variable) = (Total) Here is the script: // Variable + Variable = Total.cpp : main project file. #include "stdafx.h" using namespace System; void main() { float num1; float num2; float total; cout<<"enter a …

Member Avatar for WillMcc
0
135
Member Avatar for Pikachumanson

Can anyone give me a hint on how to save my heroes health that is in a PLAYER class that would be GetHealth() because it inherited that from the base class entity. SetHealth() is in the base class Entity. I know I am just a couple line away from solving …

Member Avatar for Ancient Dragon
0
113
Member Avatar for blood08

Hey I am following a video tutorial teaching pointers... I am following along and writing what they have. Which is: [CODE]#include <iostream> using namespace std; void main() { int myArray[4] = (1, 2, 3, 4); cout << (int)myArray << endl; cout << (int)&myArray[1] << endl; }[/CODE] They are able to …

Member Avatar for blood08
0
290
Member Avatar for CoolGamer48

Hey, So, three questions: 1. What is a DLL and what is a .lib file? 2. (might have been answered w/ #1) What is the purpose of .lib/.dll files? 3. How do I create a .lib file with C++, and (again, may have been answered above) what exactly will this …

Member Avatar for CoolGamer48
0
449
Member Avatar for warlord_killer

i need some help in graphics of c++.I' can't use the getimage and putimage functions properly.I'm confused with the syntax and its working.So any help??

Member Avatar for Ancient Dragon
0
29
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
75
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
155
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
84
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
95
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
81
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
125
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
62
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
91
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
416
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
80
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
105
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
160
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
411
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
691
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
110
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
50
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
178

The End.