49,757 Topics

Member Avatar for
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
244
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
519
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
172
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
886
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
164
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
Member Avatar for PIXXAR

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 …

Member Avatar for PIXXAR
0
990
Member Avatar for shankhs

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

Member Avatar for venugopal.somu
0
503
Member Avatar for sfurlow72

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 …

Member Avatar for ravenous
0
312
Member Avatar for while(!success)

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 …

Member Avatar for WaltP
0
2K
Member Avatar for FraidaL

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 …

Member Avatar for zeroliken
0
207

The End.