49,757 Topics
| |
#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 … | |
IM HAVING PROBLEM WITH THIS PROGRAM, GOING BACK TO THE MAIN PAGE AND SELECTED PAGE, IF THE USER ANSWER NO, THE PROGRAM WILL GO BACK TO MAIN MENU IF THE USER ANSWER YES, THE PROGRAM WILL COMPUTE THE SAME PROBLEM. help PLS... THE PROGRAM BELOW WONT GO BACK TO COMPUTE … | |
can anybody suggest me whats wrong with the code?? [code] #include<iostream> #include<string> using namespace std; void rev_str(string str,int n) { while(str[n]!='\0') rev_str(str,++n); cout<<str[n-1]; } int main() { string str="shankhs"; rev_str(str,0); return 0; } [/code] thanks | |
Alright, this isn't actually homework. I'm going back to school so I figured I would brush up on some programming before I go. I'll be taking the second course in a three course C++ programming sequence (starts with classes, recursion, etc.), so nothing too advanced yet. I wrote this program … | |
Hey guys, I need help recognizing multiple digit numbers that are read so that I may push said number into a stack for future evaluation For example: 22 3 + should evaluate to 25 When I input 22 3 +, my output is evaluated to 5 Any help/criticism is welcome … | |
I'm writing some while loops but I feel like there is a better way to write them. [CODE]int i=3; while (i<31) { cout << i << " "; i+=3; } //this one is for the first 10 terms of a sequence starting with 3 and adding 3 each time. int … |
The End.