General C++ Programming - April 2015 (Page 3)

by awitt
input file help
i need help with getting an 8 digit integer from a text file and seting it equal to number everything else in the program works please help if you can ...
Apr 28, 2015 at 9:37pm
[2 replies] Last: @awitt Here's your program, slightly modified, to read the text file.... (by whitenite1)
Question about Void-Functions!
Hello, I have been studying for this Wednesday exam but still cannot find a difference between a void function and the usual user-defined functions! can s...
Apr 28, 2015 at 7:38pm
[2 replies] Last: Well, the major (and really only) difference is that a void function d... (by closed account 2LzbRXSz)
by ty54
OpenMP - Am I using pragma correctly in for loop?
I gave the below code a shot: int main() { Solve* slv = new Solve(); slv->compute(); return 0; } void Solve::comput...
Apr 28, 2015 at 5:59pm
[no replies]
C++ books for idiots?
I'm learning C++ from the absolute beginning and I'm ready to call it quits. I don't know if it's the book I'm using, but I don't get it. I don't understand the...
Apr 28, 2015 at 5:53pm
[6 replies] Last: Try the first or second edition of "C++ All-In-One Desk Reference For ... (by tapir2)
fscanf format specifier usage
I'm trying to find an example of how to use the "width" optional format specifier for fscanf. According to the page: http://www.cplusplus.com/reference/cstdi...
Apr 28, 2015 at 5:06pm
[3 replies] Last: http://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-... (by mutexe)
What would my program need to contain for web searching?
I want to write a c++ program that searches craigslist and shows a result of there is one. For example: Search for "guitar" Search every hour for new post...
Apr 28, 2015 at 4:11pm
[no replies]
list<string>::iterator issues
okay so my issue is that I want the user to enter in variables, which get added to list<string> Listings; . I then want the user to be able to search specifical...
Apr 28, 2015 at 4:11pm
[6 replies] Last: Well if more then one matched I'd want them to display in the proper o... (by randomaffliction)
What would my program need to contain for web searching?
I want to write a c++ program that searches craigslist and shows a result of there is one. For example: Search for "guitar" Search every hour for new post...
Apr 28, 2015 at 4:10pm
[no replies]
Comparing parameters in a while loop
The goal of this program is to add the units_sold and revenue for books with the same ISBN. Unfortunately, for this program, I haven't figure out a way to compa...
Apr 28, 2015 at 4:04pm
[4 replies] Last: @Mikey, In my first sentence, I discuss the scope of the program. It a... (by dwsmith)
help! C2447: '{' : missing function header (old-style formal list?)
I am not sure what the problem is. Any help would be appreciated. I got error C2447: '{' : missing function header (old-style formal list?) #include <stri...
Apr 28, 2015 at 3:50pm
[7 replies] Last: seatingChart and grades Hmmm, void displayArray1( string , int ... (by keskiverto)
Will pay 50.00 if you can write a quick code for me
Hey guys, i'm in an intro to c++ class, I have a code that's due wednesday, but I have a test wednesday. So I can either write this code, or devote the time to...
Apr 28, 2015 at 3:37pm
[2 replies] Last: can i ask you the reason whyd you returned to school? anways we dont ... (by xenovia12)
I have little confusion in traverse method
Did not get how we can assess private data by using dot ? As is happening in following code, please tell me, why is it ? #include <iostream.h> #include <s...
Apr 28, 2015 at 3:19pm
[1 reply] : Due to the keyword friend . This allows the friend function to access... (by coder777)
Program stops working
Hello everyone My program stops working when I enter the number of rating stars when adding an item that is option 2 in the Main Menu. Would someone help me w...
Apr 28, 2015 at 3:19pm
[4 replies] Last: //********************************* // Libraries used for the program ... (by BishoyGabriel)
ATM Project balance overage
So my code is working fine I simply need to implement a new function to limit how much can be withdrawn from account1 to account 2. Also to limit withdraw amoun...
Apr 28, 2015 at 2:12pm
[no replies]
Constructor Parameter Forwarding
Hi :) My problem is this, and my apologies if the subject line doesn't describe my issue properly but it's the only way I could think of to describe it. M...
Apr 28, 2015 at 1:35pm
[2 replies] Last: The compiler is only allowed to make implicit type conversions from 1 ... (by Gamer2015)
Over 80
Hello, I need to print all input lines longer than 80 characters. So if I understand it right, shouldn`t the pseudocode be something like that? 1. move i...
Apr 28, 2015 at 12:55pm
[5 replies] Last: Forget what I posted above. I see no need for copying here. I can`t re... (by pacman169)
The most occurring number in array(structure)
I cant find out whats wrong with this part of my program, i want to find out most occuring number in my structure(array), but it finds only the last number :/ ...
Apr 28, 2015 at 11:25am
[1 reply] : This code is working fine for me. Are all your inputs correct? #inc... (by BlatantlyX)
by ssml
Can't get the final score I want
I'm trying to output this: Rank 1 422.30 Chen Ruolin 19 China Rank 2 366.50 Brittany Broben 16 Australia etc. (up to Rank 6) But when I try to debu...
Apr 28, 2015 at 9:31am
[no replies]
by Kennay
Problems with my array lab
#include <iostream> #include <iomanip> #include <math.h> using namespace std; int main() { int sumArray; //1 int arr = { 5, 6, 4 }; ...
Apr 28, 2015 at 8:44am
[1 reply] : What is your problem and please tag your code. (by CroCo)
Random letter generator help
I im developing code to generate a letter randomly but in the same code i get the same letter. The point of the code is for a game i want to have a number amoun...
Apr 28, 2015 at 6:45am
[1 reply] : Hi, I don't know if I understood your problem correctly: do you want t... (by minomic)
April 2015 Pages: 12345... 28
  Archived months: [mar2015] [may2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.