51,593 Topics

Member Avatar for
Member Avatar for shevy24

hello, can somebody tell me where i can download a free c++ video tutorial.....i really need it badly

Member Avatar for Spanki
0
213
Member Avatar for delifion

Hi, I'm trying to work on a program to reverse string input upper case to lower case vice versa. I got that part working but the second thing is I have to count the number of graphical character from user input. I'm a bit confused about using pointer as well. …

Member Avatar for MrSpigot
0
109
Member Avatar for saimaz

greetings everyone, i try to use ProgressBar from other class, i think the solve would be to create TForm1 object. But i dont know how to do it. [ICODE] void Array_class::mix(int a) { int b,c,d; //Memo1->Lines->Add("Array is now mixing...."); TForm1 obj; obj.ProgressBar1->Position = 0; obj.ProgressBar1->Max = (a); for(int i=0;i<a;i++) { …

0
51
Member Avatar for Acis

Ok im making a Text based RPG and its going to take quite a while to be able to beat the game. So i want to allow the person to save and load games, how can i make this happen?

Member Avatar for dmanw100
0
94
Member Avatar for sabian4k

Hey guys i need help. I need to write a program that computes all of the following statistics for a file and outputs the statistics to both the screen and to another file: the total number of occurrences of characters in the file, the total number of nonwhitespace characters in …

Member Avatar for sabian4k
0
301
Member Avatar for nschessnerd

how do i find methods in a .exe so i can create a dll injection that uses those methods?

Member Avatar for nschessnerd
0
81
Member Avatar for daviddoria

Is there a reason to use [code] cout << static_cast<int>(thing); [/code] instead of [code] cout << (int)thing; [/code] ? Thanks, Dave

Member Avatar for Narue
0
102
Member Avatar for toadzky

I like really clean code so I want to pull all of the common includes into a separate file and then include that single file in all my other files. Also makes it easier if I start using a new or different library cuz I only have to change it …

Member Avatar for toadzky
0
194
Member Avatar for billgone

hi everyone..ok here's my problem i have this program [CODE] #include <iostream> #include <string> using namespace std; int main () { string s1; string s2; string s3; cout<<"Enter first string: "; getline(cin, s1); cout<<"Enter second string (to remove): "; getline(cin, s2); int indexhere = s1.find(s2); //the starting index (zero-based) int …

Member Avatar for Ancient Dragon
0
91
Member Avatar for dharanidaran
Member Avatar for Ancient Dragon
0
137
Member Avatar for moveshhh

I have a binary tree with find and print functions. Only problem is I have no idea how to copy a binary tree, while overloading the = operator. Any help in the right direction is appreciated. My code is below. Only for the header file though. Didn't know if the …

0
52
Member Avatar for carlosrowlett

Hey guys, I m making a program that selects questions from an array numbered 1-40. I put in a random functions so the questions are chosen randomly. But i want to have it so that theirs no duplication in the questions like if the number is already chosen skip and …

Member Avatar for nucleon
0
83
Member Avatar for losh177

Hi, i need some help, i'm stuck with a program that takes that takes 4 object, sorts them out and prints them. I'm using pointers but now i'm stuck because i cannot out see what i'm doing wrong. I have a felling that at some point i'm not passing the …

Member Avatar for losh177
0
229
Member Avatar for Robtyketto

Greetings, I study C++ at college using one of the earliest versions of Code::Blocks (version 1.??). If I write any programs (all build and run succesfully and use the same GNU C compiler) from home with the latest version (8.02) and open the project and compile/run with earlier version used …

Member Avatar for kenji
0
172
Member Avatar for Icebone1000

The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By …

Member Avatar for nucleon
0
209
Member Avatar for eviocg

how can i pass a variable to command? ex.. [CODE] #include <iostream> using namespace std; int main(int argc, char *argv[]) { string ip cout << "Enter an ip"; cin >> ip; system("ping ip"); //// this is the problem. how do i enter the value of "ip" here? system("PAUSE"); return EXIT_SUCCESS; …

Member Avatar for eviocg
0
99
Member Avatar for rom87

Why does'nt the delete keyword destroy all of the allocated array and not just the first element.As it is even after the delete[] the second cout still prints out the values of the "t" array. Any idea ? [CODE] int main() { int *t =0; t = new int [10]; …

Member Avatar for Ancient Dragon
0
77
Member Avatar for massivefermion
Member Avatar for daviddoria

If I make an array like this [code] GLubyte bufImage[100][100][3]; [/code] I can pass bufImage to a function and then get the values using: [code] r = bufImage[im_x][im_y][0]; g = bufImage[im_x][im_y][1]; b = bufImage[im_x][im_y][2]; [/code] However, if I don't know Width and Height at runtime, this does not work. I …

Member Avatar for Narue
0
313
Member Avatar for Spanki

I need to make a program to create an array of doubles. Array of sales for 10 shops in a center .Load this array from a file at the start of the program. Use a menu to allow display and update of this array. Allow access to the shops array …

Member Avatar for Narue
0
102
Member Avatar for ashishchoure

hi, can anyone tell what is major difference between vs2005 and vs6. i want to know coding related difference not related to UI.In what extent vs2005 different for c++ from vs6

Member Avatar for ashishchoure
0
153
Member Avatar for bancje

I am trying to understand how to check for a COM error when I am using a C++ COM client. I realise that HRESULT can be checked but what confuses me is exposed methods that also specify a parameter of type [retval,out]. For a COM object that returns eg. a …

Member Avatar for bancje
0
102
Member Avatar for torchedintexas

Runge-Kutta is supposed to be used to obtain the numerical solution to a boundary layer problem. I'm trying to get the output to go to excel where it will show me the values for G1, G2 and G3 but it won't go to excel. Please help! [code] #include <iostream> #include …

Member Avatar for jencas
0
129
Member Avatar for rickster11

Ok, I tried and tried some more, if someone could push me in a right direction or point out the obvious for me that would be great. The dates have to be between the years 1900 and 2099, so I was thinking if I could calculate the amount of days …

Member Avatar for vmanes
0
95
Member Avatar for free radical

Hello all. I am working on a little program here and need some help. The input is 3 test grades that are out of 50 points total, the program takes the higher of the first 2 test grades and adds that to the last test grade to determine a final …

Member Avatar for free radical
0
119
Member Avatar for monkey_king

Hi, I'm considering using some boost stuff for my next project. But it's quite essential, that the program can be ported to multiple platforms with different setups. I've always used -ansi -pedantic -Wall And so far the projects has been working on sun/gnu/intel compilers, on both windows and linux. But …

Member Avatar for monkey_king
0
94
Member Avatar for billgone

Can anyone please help me make a program that does following: i enter first string then i enter the second string i.e. first string: "abcxyzefg" second string:"xyze" and the program should the write a new string without the second string in the first one i.e "abcfg" thank you

Member Avatar for Mazzin
0
81
Member Avatar for krutthika

Hello, C program for audio compression and decompression? Please help .. I need the source code... Thanku

Member Avatar for monkey_king
0
102
Member Avatar for pagu

Dear all I made a code in C++, for data processing. The code read, processing and write the output several times. The process abort when the output file get 2Gb fo size. I know that it is not a disk limit. Is that a flag mistake on the makefile? thanks

Member Avatar for nucleon
0
108
Member Avatar for scuba6388

I am making a program that takes a binary number (a boolean array) and gives numerous representations. For example, Enter binary (8 bits): 10001000 -Unsigned int: 136 -Hexadecimal: 88 -Octal: 210 -Two's complement: -120 -Sign magnitude: -8 -One's complement: -119 -Excess-127: 9 -ASCII: N/A -Pep/8: SUBX immediate -Floating-point: -0.125 I …

Member Avatar for NicAx64
0
104
Member Avatar for siddhant3s

Well, first of all I will speak much so that you guys can target my problem better. Hello, I am a poster from the C++ forum. Hence, I am a well established C++ programmer. Now I want to learn Python. First of all, should I? I mean, keeping in mind …

Member Avatar for sneekula
0
773
Member Avatar for Sarlacc

How do i go about creating an app in mfc where there is a series of buttons and when you press one it loads an image, then if you press another one a different image loads? i am using vc++ 2008 to do this

Member Avatar for Sarlacc
0
160
Member Avatar for deadmancoder

Hello mates, i am pretty new to this forum.. i am a midrange c++ programmer. if i have to create an IDE in c++ that involves basic drawing tools, what should i learn and where should i start?? is it a big task? can anyone explain me or direct me …

Member Avatar for NicAx64
0
224
Member Avatar for XGeniuS

I used [URL="http://www.daniweb.com/forums/thread131545.html"]this[/URL] example, to create screen shot.However, this create very big file (1280x1024 = 5MB). Is there anyway to resize this file without including another libraries??

0
66
Member Avatar for PoZHx

Ok i've created basic DLL and DLL Injector/Loader which the DLL calls on a function called CreateRemoteThread inside the target process i was wondering how to code DLL to read/write to memory so e.g. lets say my target process is: [CODE]int main() { int mytest = 2; system("PAUSE"); return EXIT_SUCCESS; …

Member Avatar for PoZHx
0
802
Member Avatar for shyterrice

Hello, I'm currently working on a project for an internship utilizing microwave scanners. I am using MatLab/C++. I have been able to get my scanner lense to move when instructed to do so by the user, however I would like for the lense to be able to auto adjust before …

Member Avatar for Ancient Dragon
0
137
Member Avatar for slik33

I am working inside a function and am already passing back a value. Inside the function I am using cin to get an int from the user. If they want to quit they type q. The input buffer fails when this happens. I could use an if statement and then …

Member Avatar for kenji
0
98
Member Avatar for GDICommander

I need help with the code below. At root->removeChild(nodeToRemove), I have a NOT_FOUND_ERR code. It is not supposed to return this code, because I look in the DOM Tree with IsInDocument. Can someone tell me what's wrong with this code. I'm becoming blind with this code. [CODE] DOMNode* nodeToRemove; if …

Member Avatar for GDICommander
0
165
Member Avatar for lllllIllIlllI

I am using this code here: [code=c++] #include "stdafx.h" #include "windows.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK); return 0; } [/code] But no matter what i do i keep getting this built error: ------ Build started: Project: Gui, Configuration: …

Member Avatar for lllllIllIlllI
0
280
Member Avatar for nsvanjani

hello programmers is there any win32 api or technique by which we can fetch the address of the active window of explorer(not the internet explorer) please help

Member Avatar for MrSpigot
0
114
Member Avatar for tendolm

I want to apply heat on a tube surface (3D). The heat is to be applied on a straight line on the tube. The equation of line is x= 87.5 y = 126.1620 + (-1*1004.0820) z= 166.1620 + (-1*-1004.0880) Since x is constant is given asposition holder, real x[ND_ND]; For …

Member Avatar for tendolm
0
308
Member Avatar for karthik.c

hi guys im trying to write a makefile which contains :two cpp files and two header files. now i've put cppfiles in a folder called source whose path is: /root/workspace/source and header files in a folder called header whose path is: /root/workspace/makedemo/header my makefile is in the path:/root/workspace/makedemo my makefile …

Member Avatar for karthik.c
0
156
Member Avatar for eviocg

The program psexec runs any command remotely on another computer. the syntax is "psexec \\RemoteComputer cmd.exe" I want to run "start "www.website.com" on computers a19-(01-29) any help would be appreciated [CODE] #include <cstdlib> #include <iostream> #include <string> #include <sstream> using namespace std; int main(int argc, char *argv[]) { int compNum; …

Member Avatar for nucleon
0
135
Member Avatar for Dontais

For the line Point::setPoint(... it tells me that it is invalid and I set it to Point::&setPoint(.. with then stats it is a illegal operation. I'm a little lost on this one anyone mine pointing me in the right direction. [CODE]class Point { public: Point(double=0.0, double=0.0); Point &setPoint(double xPoint, double …

Member Avatar for VernonDozier
0
221
Member Avatar for mastermosley

I'm working with Network stream and building a small telnet server, I have two questions: 1) How to implement a backspace, when connected via telnet when it backspaces it doesn't delete the character but just moves the cursor back and overwrites it when you type another character. I've noticed that …

0
64
Member Avatar for azStudent

Why would I get a Segmentation Fault error? It compiles fine with g++, but gives an error when it runs. [code] void blowUp(char *board, int *boardSkin, int row, int column) { //set the board's 'skin' to 1, (meaning it will be displayed) *(boardSkin +(row * columns) + column) = 1; …

Member Avatar for azStudent
0
143
Member Avatar for Avaviel

Here is the [url=http://dl.getdropbox.com/u/297962/Lab7.zip]whole project[/url], in a zip file. I'm having trouble getting the delete function to work. I can delete head just fine, but when I try to delete either something at the end, or something in the middle, it does not work out. I'm sure it has something …

Member Avatar for Avaviel
0
114
Member Avatar for odonal01

HELP ME!!! /* Read from a file called “data.txt”. <ID> <Product> <Number ordered> <Manufacture Price> <Selling Price> Example Input: 1111 Dish Washer 20 250.50 550.50 2222 Micro Wave 75 150.00 400.00 3333 Cooking Range 50 450.00 850.00 4444 Circular Saw 150 45.00 125.00 */ #include <iostream> #include <fstream> #include <string> …

Member Avatar for VernonDozier
0
153
Member Avatar for star4ker

I am having trouble with this program which was solved before, but I am still having an issue with the final code. Here is the assignment prompt: Write a program that asks the user to order an ice cream treat. The user selects the type of ice cream, the type …

Member Avatar for seanhunt
0
4K
Member Avatar for slik33

So I made all the functions for a project where I was supposed to take input from the user through a menu and make an array and do various things with it. Two things I couldnt figure out were how to Lock and unlock the array, and then I also …

Member Avatar for Narue
0
124

The End.