49,757 Topics
| |
OK I need the firstname astname and grade to all be put in an array i cant get it to work. Where do I put the array? [CODE]#include "stdafx.h" #include <fstream> #include <iostream> #include <string> using namespace std; const int MAX = 3; struct Person { string Firstname, Lastname; int … | |
hello, Can anyone tell me how to get a current path (working directory in linux), using WIN api or iostream. Thanks in advance | |
Hi I want to set an internal timer of 30 seconds in c++. within that user have to enter 3 inputs one after other. and for each input i want set one Parameter which will change for each input by user. example user i/p parameter 1. abc 5 2. pqr … | |
im a beginner in c++ language, it is my first time to handle c++ (because im a java programmer)...part of my training in c++ is to create a dvd controller that will open, close, write and eject the media(preferably cd-rw), and of course, be able to get the files to … | |
could someone please just write a qiuck bit of code that loads a wav file into memmory that can be played, and accessed as quickly as possible by pressing just a single key. ive been trying this for days, all my code is far to slow, and the responce after … | |
Something like this: [code] #include<iostream> using namespace std; // the function below takes an integer and outputs a corresponding letter void convert (int num) { ... } int main { int num; cout << "Enter an integer" << endl; cin >> num; convert (num); system("pause"); return 0; } [/code] E.g. … | |
Do you have any links where I can find stuffs in making c++ class archive? thanx in advance | |
i have an array that looks like this after it has been populated: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . … | |
variations of this are being posted repeatedly here. hope this will clarify things once and for all. [code=c] // to choose a random element from a sequence when // a. you do not know how many elements are there before hand // b. you want to make one single pass … | |
Hey guys. I have a horrible problem with passing strings in a function and using the string to open an input file. Could you guys give me a hand? [code]#include "pe3.h" int main () { int ary[ SIZE ] ; ifstream inp ; string iNam ; cout << "Input-file name: … | |
I have a data base of 2000 people the following orientation: [phone-number] [Name] [address] [zipcode] all seperated by spaces in a text file. I want a way to read this data into a struct: struct person { long phone number[10]; string name[30]; string address[100]; int zip[5]; } The address and … | |
I really want to know WHERE I can find a simple example of parser for own script language for games. I found one on gamedev.pl [polish site], but I can't stick together all parts of the code. It'd be nice if someone can post a links to examples. I mean … | |
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 << … |
The End.