51,593 Topics
![]() | |
hi please i need your help i need an idea of how to encrypt text in file text using c++ Thanks alot | |
Hiya, Sorry for this extremely simple question of mine but... I'd need this small piece of code that would remove any empty space from the start or the end of a char[]. I've done my basic Java stuff but I'm clueless with c++. So far I've tried to fiddle around … | |
I'm trying to write a C++ program that uses some compound structs and vectors, and I'm getting a compile time error: multiple types in one declaration. Here's the form my code's in: [code] #include <vector> using namespace std; struct Struct2 { int value1; int value2; }; // end Struct2 struct … | |
Hello; can any 1 tell me what is the answer for the following statement : 1%10 and 1%2 :) | |
Elow, I'm new member of this forum and also new in C++.I'm just start to learn it I need help.....i want to write a program that will ask the use an integer number and output the word equivalent ofthe input(1000-3000)limit inclusive example input:1525 output: one thousand five hundred twenty-five i … | |
hey, i read that in C++ some programmers consider using break and continue statements as a violation of structured programming practise....... and usually avooid using them except in switch statements..., i will like to know how to use the structured equivalent of these statements..... i want to know the statement … | |
Hi. I'm currently writing some design tools for my programs, and I am in desperate need of some help. Does anyone have any good sites that I can go on to find some tutorials on how to use the hierarcy chart, pseudocode, and flowchart for C++ program?? | |
Hi, I am writing a program that has some functions in it to open, read and then search through lines in a file. It will be a txt file. Currently I am trying to find a way to pass the Open file to the ReadFileLine function, so that it can … | |
Im using VC++ express and usually i come across situations where i have to create more than one project within the solution. But the problem is that each time i create a new project inside the solution, i have to go to the new project's property pages to add the … | |
Hi all, I was writing a program for sorting the test scores using array of pointers and dynamic memory allocation. Surprisingly, I am getting indefinite values after sorting. I wrote a header file, .cpp file and main. cpp. Actually, after sorting I thought of adding an average function in .cpp … | |
hey all... i began to learn C++ about a year ago, and i have progressed to the point where i create text-based games(long ones) with various commands. however, i do not know how to [B]begin [/B]a source file. whether my instructor missed it or did not go over it, i … | |
Hi everyone! I have one Visual C++ program with exe format. Type of file is Application. I want to know the coding behind that file.. That file is an example of my project. Everyone who know the answer...plz help me.... Thks...Thks :) | |
Would it be possible to write a proxy in C++? I mean a CLI application that would take a users input (a site name) and open Internet Explorer / FireFox to that page, bypassing network restrictions all the other fun stuff that a proxy does, much like proxy.org? | |
i am trying to compare an element in an array but it gets stuck in a loop. from what i see it doesnt even compare the element. I want to place a x in an array but if there already is an x there i want to place it above … | |
The version of DEV-C++ I Do not Know. However I would appreciate any information as to where I might find information as to how you can access Drives and the Printer on my machine with C++ commands. at present I'm unable to do anything in my C++ Programs other than … | |
I have a hw project and I need to write my own reverse iterator. The problem is i don't know for sure if I'm starting off ok. Here is the code I have so far and a simple test in main keeps giving me an error stating no parameter's for … | |
hi everyone i really need a maze game in C++. i know its not fair for me to just ask for the program but its due tomorrow and i really don't know how to do it. can somebody help me out with this. thanks | |
What is the time complexity T(n) of the following portions of code? For simplicity, you may assume that n is a power of 2. That is, n = 2k for some positive integer k. a) … for (i = 1; i <= n; i++) { j = n; cout << … | |
hi folks - i'm quite new to c++ and have written a program where i have used a linked list to simulate 3 printers working in a queue according to their priority. After much blood, sweat and tears I got that bit working. Now I'm onto the second "easy" bit...I … ![]() | |
Hi every one I have a big problem, I need help with creating a program which reads every third word in a text file and excludes puncuation like -,?.!'" etc.. so far none of my work need code or suggestions just plain help(newb) [code] #include <iostream> #include <fstream> #include <string> … ![]() | |
Hi, Im trying to make a sysmple program that plays different .wav files when an appropiate key is pressed. Its going to be keyboard drumkit kind of thing, anyway, ive got it to play the sounds, but they always seem to have a short delay, from when the key is … | |
hi All, I want to fit "10"(Integer) in format like 000001 00 i.e. first number in six bits and second in two bits so that finally i read it as 04 in Integer could anyone suggest how can i do this ? I am trying with struct number { UINT … | |
hi I want convert Binary String to intger Format in c++. like "00000100" should give me as "04" or "4" could anyone suggest me the solution for it. thanks Mukesh:) | |
hey guys. i was given a project today in my C++ class. The directions are as follows: A. solicit from the user a positive integer n. B. Generate and display a list of all the possible permutations of the first n integers. in other words, the user inputs 3, the … | |
What is managed and what unmanaged c++? | |
[code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> #define MAX 20 //struct team_info typedef struct { char team[16]; int played; int won; int drawn; int lost; int goalsf; int goalsa; int goald; int points; int ID; }team_info; team_info arrdetails[12]; int print_header(); void draw_table (); int take_team_input(); int take_team_name(); int save_table(); int read_table(); int sort_table(); … | |
Alright.. I have to rewrite a program. The thing is, I have to rewrite it using parent and children... With processes (pipes) or threads... How do you create the parents and children with either of these? I am basically asking for a tutorial on how you would create these with … | |
I am trying to write a program that will scan another file for comments only. It will scan for comments of both types, // and /* */, and then print these comments. The code I have written so far works, but it prints the entire code. I would really appreciate … | |
I have these files in SOURCE folder: main.cpp header.hpp implement.cpp I want that when I compile these codes, the object files and the .exe files will be found on the different folder, let's say in folder EXECUTE that is outside the folder SOURCE. Like this: /home/usr/SOURCE * main.cpp * implement.cpp … | |
Here is a program which finds prime numbers, but because the compiler i need to use for my class does not use a boolean variable i am having trouble figuring this out. Please help me find how to find prime numbers without using a boolean variable. [code=c] #include <iostream> using … | |
:( please help me in my laboratory exams in c++ programming... please give me a source code and .exe file on the following program: FOR STRINGS Write a program that inputs 4 string that represent integers, converts the strings into integers, sums the values and prints the total of the … | |
Well, I'm working on a simple project but I've hit a snag in my progress so far. I'd like to take a file that has text which will be something similar to: [code] Placemarker 1 = words/numbers Placemarker 2 = words/numbers Placemarker 3 = words/numbers [/code] so you'll have a … | |
Hi All, I have a question about the following C++ program: How does the C++ program know which of the sqr functions to use in this program? [code] #include <iostream.h> // This program illustrate the use of Function overloading int sqr(int x); float sqr(float x); double sqr(double x); int main(void) … | |
I have tried Beep() and MessageBeep() which compile fine, execute with no error but there is no sound. Are there better sound/tone generating fns avail for SDK? Ross | |
hi! In a GUI I'm making, I'm using a dialogbox, and I want the user to have an option to load a picture from file, and to see it on the dialog box. but here is where I need help. how can I display a picture on a dialog box? … | |
Hello there, does anyone know of any free beginner c++ videos on the net? . Thanks-:cheesy: | |
Hi, I am doing a project on finger print authentication. I am using finger print bitmap(4-bit). can any one help me with how to trace all the rigids on finger print so that i can find minutiae points for creating my template database. any links are also valuable.. Thanks. | |
[B]Would u help me with this task, I am new in C++ programming, this codes have alot of errors, I have never work with graphs before, I am using Borlard C++ Ver 5.02. I was told u can not run a graph task using text editor. If that is the … | |
How can I hide the C++ window that pops up? I used to have a the code the made it run in the backround or processes but I lost it. Please help im using Dev 4.9.9.2 and Windows xp. Thx guys. | |
[code=c] #include<iostream.h> #include<fstream.h> #include<conio.h> ofstream Ofil("ROW-COLUMNAR.DAT",ios::app); class application { private: int number; char application [20]; public: void accept_data { cout<<"enter application: "; cin>>"application: "; Ofil<<"application"<<endl; } void display_data() { char appl; ifstream Ifill("ROW-COLUMNAR.DAT",ios::app); while(Ifill) { Ifill.getline(appl); cout<<appl; } } }; class Calculator:application int mc(int x, int y) //Multiply two numbers … | |
I was assigned to create a program that lets the user enter the total rainfall for each of the 12 months, into an array of doubles. Then it needed to calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and … | |
Hi, Im a beginner at C, i just need some help getting something sorted where i can display information. I can add more to it for what i want to do, i just wanted to know why the error "ISO C++ forbids comparison between pointer and integer" comes for all … | |
hey, i just read about passing arrays to functions in C++ like this function modifyArray(arrayname, arraysize); i need help with sending an array and another variable to a function... since the array size is an integer and the second integer is also going to be in the argument... i dont … | |
HI, I need help in this project and I do not have any experience in C++. I have to creat a program that display the custumer record. it include a menu : · Add new Account · Deposit money to customer account · Withdraw money from customer account if balance … | |
[COLOR=Red]The problem is that i dont know where to put the array to keep inventory expanding...someone please help.[/COLOR] [code] #include <iostream.h> #include <lvp\string.h> #include <lvp\vector.h> struct rec{ long sku; String artist; String album; long quantity; double price; };//end struct struct inv{ inv();//constructer vector<rec>album; }; inv::inv() :album(0) {} ///////////////////////////////////////////////////////////////// void read(rec&rec);//reads … ![]() | |
[code] class HugeInteger { public: HugeInteger(); void input(); int setNumber(char []); void output(); void convertToInteger(); void subtract(); private: char a[41]; char b[41]; int *array1; int *array2; int result[41]; }; #include<iostream> #include<cstring> #include<cstdlib> using namespace std; #include "HugeInteger.h" HugeInteger::HugeInteger() { input(); } void HugeInteger::input() { cout<<"Enter the 1st Integer: "; cin.getline(a,70,'\n'); … ![]() | |
Is anyone here uses subversion to keep the C++ header and implementation files to the repository? I need your help... Pls reply.. Thank you... | |
How do I make C++ save the names entered by the user into another file on the computer??? [CODE][COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<cstdlib>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<string>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<fstream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<vector>[/COLOR] [COLOR=#0000ff]using [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]struct[/COLOR] players { string fname; string lname; [COLOR=#0000ff]int[/COLOR] atbats; [COLOR=#0000ff]int[/COLOR] runs; [COLOR=#0000ff]int[/COLOR] hits; [COLOR=#0000ff]int[/COLOR] doubles; [COLOR=#0000ff]int[/COLOR] triples; [COLOR=#0000ff]int[/COLOR] hrs; [COLOR=#0000ff]int[/COLOR] rbi; [COLOR=#0000ff]int[/COLOR] sos; … | |
ok after all of the grades and first and last names are entered, what do i need to do to get it to print the grades with the names out in order from heighest to lowest? [CODE]#include "stdafx.h" #include <fstream> #include <iostream> #include <string> using namespace std; const int MAX … | |
Is there a way to open, say, cout, and edit it to your own personal use? |
The End.