51,593 Topics
![]() | |
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, … | |
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 … | |
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... | |
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() { … | |
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 … | |
Does anybody knows about #pragma where they are used and what is the significance in using them. If anybody knows about please reply. :?: | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
Hi, Any one can help me .. i want the C++ code for hashing operations to implement dictionary ADT....Plz help me ... Thank you | |
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 … | |
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. … | |
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 … | |
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 () … | |
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 … ![]() | |
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 … | |
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 … | |
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 . . . … | |
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, … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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?? | |
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 … |
The End.