49,761 Topics
| |
hey guys can u help me to solve this program have to do 4 function , call the following functions by passing the array: (i) A function to input all information. (ii) A function to calculate the average score for each student and the average score for the class. Find … | |
Hi! I'm writing a program in C++ where the user is asked to enter a list of ten names and cities of residence in the format <firstname> <Surname> <city>. I then have to sort the list by city and then in each city group alphabetically by name, using Bubblesort. I'm … | |
Hi, I'm writing a program in C++ to ask the user for a list of ten names and cities of residence in the format <firstname> <Surname> <city>. The amount of spaces between each doesn't matter as I will be using isspace. then i have to sort the list by city … | |
can you help me with these a little problem of mine.. we are having a pair project where the program is all about enrollment system. in this program, we need to add a record, view, and search records. now. my problem is... i cannot add another record within this code... … | |
Can you please help me out on my project?, its like a phonebook on cellphone it should be display the ADD CONTACTS, DELETE, EDIT, SAVE, VIEW, SEARCH. I sunno how to edit and delete the contacts can you help me on this.. i came out on this,.. #include<iostream.h> #include<conio.h> void … | |
#include “iostream.h” #include “stdlib.h” #include “conio.h>” file *fp; int vfprf(char *fmt, …) { va_list argptr; int cnt; va_start(argptr, fmt); cnt = vprintf(fp, fmt, argptr); v_end(agptr); return(cnt); } int main(void) { char *stop = “damn”; float move = 42.6; char *boom = “doomed”; fp = tpfyl(); if (fp == null) { … | |
Hello all. I am working on a pop3 connection. The problem is that after i have connected , when i try to read the stream, it will work. Although the next time i read from it it will just stop my program execution and hang. Like as it its in … | |
Hi All, How to configure SFML libraries for graphics program in Eclipse IDE for C/C++ Developers editor..Please give me suggestion to solve problem thanks in advance | |
I don't know what the "*" or "**"or "***" means. could anyone help me please? [CODE] #include <iostream.h> #include <complex.h> #define PI 3.141592654 extern int phin,Ne; extern double Lamda; extern double ***TS; extern double ***TF; extern complex **d; extern complex *bd;[/CODE] | |
Having trouble getting the QuickSort to work in this code. I turned off the counter for now, just trying to get the sorted array to display correctly. This is the results I get from the code: This program keeps track of the number of comparisons required to to sort a … | |
This is an assignment that i am doing for my class. Everything seem to work right expect for one code which for some reason is not outputting the account type.i am not getting any errors at all.I am input an char type not an number type. just does not seem … | |
Hello, I am a student attending a communintiy college in southern California. Im currently taking a course entitled, "Programming in C++.". The class book is entitled, " An Introduction to Programming C++", Sixth edition. I need, help with my homework. Our homework is to workout the exercises at the end … | |
The title sums it up. I need to call info off cloud based applications. Any suggestions? | |
I want to encrypt my 128 bit string using AES encryption. example 128 bit string = "A#$RFDE%t^&jhy*i" with 128 bit key = "CDF$#%Tgfvb^%&$C" [url]http://www.cryptopp.com/[/url] Is here any help to encryption. I gone through crypto++ library. But it seem tough to understand. | |
When reading input file into the array the last line of the input file is not read in. When i run the program everything ouputs except tea and the cost. input file: 1.45 Bacon and Egg 2.45 Muffin 0.99 French Toast 1.99 Fruit Basket 2.49 Cereal 0.69 Coffee 0.50 Tea … | |
[CODE] case 'f': case 'F': do { cout << "Enter Finish Time (Max Start + 24h, 0-23:59): "; cin >> FinishTime; if (FinishTime > 2359) { do { cout << "Error! Invalid Finish Time Input." << endl << "Enter Finish Time (Max Start + 24h, 0-23:59): "; cin >> FinishTime; … | |
Hey, I am writing a program that reads in text files that were generated from another program. Some of the files are able to open with no problem but others will not open unless I rename them. For example: 4_UncommonHints_10-07-2008_Ideas.txt opens fine but 5_CommonHints_10-30-2008_Ideas.txt will NOT open unless I rename … | |
From what I have read, command line arguments are only char* separated by space. However feel compelled to ask if anyone knows of a way to get a pointer across to an executable in any fashion? The goal is to pass int *pointers for reasons of inter process communication across … | |
hello good people I am doing indexsort of name and surename. i have some error with index in my sort2 fuction. I can not figure outwhat is wrong. can somebody give me a hint about what to do to fix it. I was also wondering if I can add a … | |
I am trying to find a bug in my new and (theoretically) improved syntax highlighter program. I have made 3 versions now and have been able to debug them all with ease. Unfortunately my debugger does not do well with std containers as it shows ALL the information they contain … | |
Ancient Dragon was helpful in a way to parse argv(). It brought to mind a method that suggested to me a way to look at the prefix after finding the expected string. For example (as I interpret it) if you are looking for a prefixed command it could be a … | |
| |
I wrote a function that will search a string with a substring. When the substring is found, it is replaced with another substring. The problem I have with my code is that it wont replace the substring unless it is in the beginning of the string. Here's the code and … | |
I wrote this code for an assignment that asked to create a program that calculates and displays the average of any amount of real numbers. The program is supposed to ask the user how many numbers they want to enter and then use a loop to ask the user to … | |
what's the problem? E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp||In function 'int main()':| E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp|36|error: invalid use of member (did you forget the '&' ?)| ||=== Build finished: 1 errors, 0 warnings ===| [CODE] #include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; int main() { // informed user cout << … | |
Ok so, this IS a homework assignment. I'm not asking for the answer. I need help on how to get started. Any help would be greatly appreciated. The assignment is to revise some code from a previous assignment, but I'm having trouble with figuring it out. The instructions are: You … | |
dear all!!! here is my code. when I run it "enter name and enter city "appears together. I dont understand why. please help me figure it out. thank you. #include <iostream> #include <string> using namespace std; void prompt(string name[7], char city[7]); void init(int index[7]); void sort(string name[7], int index[7]); void … | |
[I]is any book [U]which explains what each code means and why it does[/U] that in c++, i am starting in progamming field from beginning. [/I] | |
Here is my code: [CODE] #include <iostream> #include <string> #include <cstring> using namespace std; //() char openedP='('; //open ( char closedP=')'; //close ) //end () //dash char dash='-'; //end dash class PhoneNumber { int countryCode; int areaCode; int number; char type; int year; public: PhoneNumber() { countryCode = 43; areaCode … | |
I just wrote a simple code.Since it have no warnings or error attentions from the VC compiler,it TOTALLY doesn't work! What I wonder is whether the problem is due to the sequence of complying as well as how to figure it out. ------------------ Here is the code [CODE]#include<iostream> using namespace … |
The End.