49,761 Topics

Member Avatar for
Member Avatar for alanso

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 …

Member Avatar for Lerner
0
109
Member Avatar for Programmer!!!

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 …

Member Avatar for Damian Dalton
0
196
Member Avatar for AdamLad3

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 …

Member Avatar for Damian Dalton
0
1K
Member Avatar for animeocarl

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... …

Member Avatar for Ancient Dragon
0
220
Member Avatar for availalble4you

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 …

Member Avatar for Labdabeta
0
136
Member Avatar for nitigya92

#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) { …

Member Avatar for Ancient Dragon
-2
131
Member Avatar for jonnyboy12

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 …

Member Avatar for thines01
0
137
Member Avatar for prasenjit_das

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

0
63
Member Avatar for sajaddehghan

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]

Member Avatar for JasonHippy
0
149
Member Avatar for t_daniweb

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 …

Member Avatar for t_daniweb
0
245
Member Avatar for Joker500

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 …

Member Avatar for WaltP
0
521
Member Avatar for Mosey Mo

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 …

Member Avatar for ravenous
0
1K
Member Avatar for mr.confused!

The title sums it up. I need to call info off cloud based applications. Any suggestions?

Member Avatar for mr.confused!
0
50
Member Avatar for newbie1234

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.

Member Avatar for raptr_dflo
0
250
Member Avatar for rbran74

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 …

Member Avatar for histrungalot
0
135
Member Avatar for kuramahiei

[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; …

Member Avatar for WaltP
0
174
Member Avatar for mjacqu4

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 …

Member Avatar for mjacqu4
0
134
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
893
Member Avatar for dariaveltman

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 …

Member Avatar for Labdabeta
0
128
Member Avatar for Labdabeta

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 …

Member Avatar for Labdabeta
0
350
Member Avatar for ThomsonGB

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 …

Member Avatar for ThomsonGB
0
135
Member Avatar for adi701
Member Avatar for nizbit

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 …

Member Avatar for WytCZ
0
1K
Member Avatar for FraidaL

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 …

Member Avatar for FraidaL
0
3K
Member Avatar for Vasthor

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 << …

Member Avatar for histrungalot
0
1K
Member Avatar for Adnan671

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 …

Member Avatar for Adnan671
0
131
Member Avatar for dariaveltman

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 …

Member Avatar for tungnk1993
0
136
Member Avatar for 4hotkiss

[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]

Member Avatar for tungnk1993
0
94
Member Avatar for shywolf91

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 …

Member Avatar for Topi Ojala
0
166
Member Avatar for tiredoy

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 …

Member Avatar for tiredoy
0
168

The End.