51,593 Topics
![]() | |
hello, can somebody tell me where i can download a free c++ video tutorial.....i really need it badly | |
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. … | |
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++) { … | |
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? | |
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 … | |
how do i find methods in a .exe so i can create a dll injection that uses those methods? | |
Is there a reason to use [code] cout << static_cast<int>(thing); [/code] instead of [code] cout << (int)thing; [/code] ? Thanks, Dave | |
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 … | |
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 … | |
error correction codes how to write a progam for error correction codes. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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]; … | |
Hi Could you explain a little about the topic? thanks | |
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 … | |
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 … | |
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 | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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?? | |
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; … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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; … | |
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 … | |
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> … | |
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 … | |
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 … |
The End.