49,761 Topics
| |
Hi, I created two window form (the two form call form1 and blank), when I click a button on the first form it will link to the second form. However, i face problem when I wish to change the second form text (name of the form) using the string I … | |
i'm trying to write a program that reads a text from the user(keyboard) sentence by sentence and then prints the 'morse code' of them char bay char on a text file. I'm just testing it for the letter 'c' to start with, but it doesn't seem to be working well … | |
Hi All, I am using ACE. when i try to open a file with ACE_OS::fopen function in append mode, my program crashes. There seems to be no problem when i try ACE_OS::fopen function with write or read mode. code example. ACE_OS::fopen("demo.txt", ACE_TEXT("w")); // working fine ACE_OS::fopen("demo.txt", ACE_TEXT("r")); // working fine … | |
I am trying to learn c++ from past so many days.lots and lots of books are available.I am unable to find a good book which will teach me from basics to advanced concepts. please somebody suggest me good and complete book. | |
i dont understand looping at all. plese help if you can. i know its like doing my work for me but yeah i dont know looping. create a program that keeps reading a sentence and a character and displays how many times the character appears in the sentence until user … | |
How to change this data sturucture from vector <int> total; to float total;? because if I change it to float teher is many error.... [code=C++] #include <iostream> // std::cout #include <fstream> #include <iomanip> #include <string> // std::string #include <vector> // std::vector<> #include <algorithm> //std::for each() using namespace std; // import … | |
i have to make the C++ program that will have the user input some test grades and exam grades and their personal info then output their stuff in the end. i have almost the whole thing done, but i would compile it throws up a list of 30 erros and … | |
I'm looking for a bit of advice. We're getting to the point in our game development where I need to start thinking how we're going to integrate scripting into the game engine. I was looking at Lua, but am also interested in what Perl or Python might be able to … | |
[code=cplusplus] int Seats::AddEntry() { std::cout << "Please enter your desired seat position"; std::cout << endl; std::cin >> position; ofstream SaveFile("Traveler.txt",ios::in); SaveFile << "Your Seat postion is...:"; SaveFile << endl; SaveFile >> position; SaveFile.close(); return 0; } [/code] This is just a snippit of my code...This function is one of 3 … | |
The following script was posted as a solution to a problem I did in school, however, when I run this exact script I get 3 warnings and the script will not complete. I have also attached the warnings. They are below the script. Any help is greatly appreciated. [code=c++] #include … | |
Hi, I'm embedded c coder and relatively new to c++. I'm working with borland 6. What i'm trying to do is call my "SerialThread" named worker thread which processes the line. Call [code] //char input_sentence[9]; this includes the textline "ANGLE 360" char * buff = input_sentence; thread = _beginthread( SerialThread, … | |
Hello folks I have a question to ask in regard to functions and passing information between them. I'm taking an problem solving class and well the instructor went from simple cout and cin to functions and has been really vague since the class is mostly on problem solving and not … | |
Design a program that reads several lines of text from the keyboard and prints a table indicating the number of occurrences of each letter of the alphabet (a to z) found in the text. If a non-alphabetic character is found, simply count how many were found and display that total … | |
Hi, I have two questions, if someone can help me please I need it urgently!! Thanks to all! 1. Tree class Make a function that counts the number of nodes with two children in a binary tree. 2. List class Make a function that prints the elements of the list … | |
I am trying to create an ethernet socket inside a thread. The code works outside of the thread, but fails inside of it. Does anyone know what the problem is? Do I need to set up the socket outside of the thread? It compiles and runs, just fails to connect … | |
I am stuck on a problem. I am given code and I am suppose to do the follwong sway fucntion. The last three lines of code in the function selection_sort perform an essential operation that is commonly found in sort algorithms. Replace those three statements with a call to a … | |
I want a name displayed when the letters beside it is entered from the keyboard eg when "ABC" is entered, Abraham is retrieved from .txt file when "CME" is entered, Camille is retrieved from .txt file A sample of the text file is below: CODE NAME ABC Abraham CME Camille … | |
[code = cplusplus] int serials[MAX_PAX]; for (int i = 0; i <MAX_PAX; i++) { int max = 0; serials[i] = randomnum(); // store random num in int serial max++; cout <<"serial" << serials[i]; break; } [/code] I have a return function that generates a random number, i want to store … | |
Hi Everyone , I have 3 questions that need explaination (only explain),then i will try to solve them. [COLOR="green"]Q1[/COLOR]: Let g(x,n) = 1 – x2/2! + x4/4! - … …+(-1)n x2n /(2n)! Using a loop write a program to calculate g(x,n). [COLOR="green"]Q2:[/COLOR] write a program that accepts a positive integer … | |
Hi everyone, big time c++ newbie here, in fact I don't know too much at all about what I'm doing. But what I am trying to do at this point is read into a file created by my program, check and see if a name to be inputed is exists … | |
hi friends This is my assignment I have to send it today I have many tests please You are my hope befor I drop this course (C++ course) Please try to help me to solve it [/COLOR][/COLOR][/COLOR] Write a C++ program that repeatedly display the following main menu : The … | |
hi poeple , i am doing a project by dev c++ ,i need to make a function for calculating the Hadamard Matrix , i tried alot but i could not ,i also want to know how can draw sine wave or square wave by c++, i am using windows vista … | |
i have text file with a series of words in it. some word contain the expression '.zip' , i'm trying to rerad the characters of the file and replace the .'zip' with '.rar' this is my prog, bu it's not responding [code=cplusplus] #include <iostream.h> #include <fstream.h> #include<stdlib.h> #include<conio.h> void main() … | |
This one of those typical Rational number programs. It takes a user-supplied fraction and then another. Then it does the 4 basic math operations on it. Finally it compares the fractions to each other. I have the program working fine. I just want to know how to fix this warning … | |
Hey guys, I was just reading again about classes and their functions and i made some code, the thing i want to do is have a function, eg. [CODE=C++]void Cat::Sleep()[/CODE] and have it to have three cout's and choose one of them to say at random, Heres my code. [CODE=C++]#include … | |
Hello, I have the next problem, I want my turbo c++ explorer program are able to speech text. I download all SAPI and I know that the funtion for text to speak are in the library VText.dll. How I must configure the program to access this functions? | |
Hey all. I'm making an online game. It uses XML maps, and I was wondering... what's the best way to transfer an XML file over a socket? I want my server to send an XML map whenever it's requested, but I dunno how I'd get the xml from the other … | |
I have been reading some of the posts on reading integers from files but I have not seen any on reading integers from formatted files. I have a file which is a 6 X 6 matrix consisting of integers separated by tabs. I want to read each number into an … | |
Hello all, I am badly in need of a simple to use Matrix library for C++ that can handle complex data type.. I am working in Bloodshed Dev C++ under windows XP. Waiting anxiously if anybody can be of help!! Imtnan | |
i using seekp() function to change the pwd, but it can only change the first row of peter's pwd. Wat i wanted was to change only the pwd that belongs to only mary if marry has login. How can do it? need some advice!!! this is wat my text file … |
The End.