Beginners - February 2013 (Page 43)

How to read vectors into a hash table
 
How would one go about reading in a .txt file into a vector into a hash table?
[no replies]
Stackoverflow in recursion. How can I fix it?
 
Hello there ! I'm following an algorithms course, and as you know, a primordial algorithm is Merge-Sort; I tried to implement it following the famous CLRS bo...
[3 replies] Last: Could you please explain to me, where is it that I'm returning things... (by cire)
How to
 
How do you delay a program before moving on, here is my code #include <iostream> #include <fstream> using namespace std; int main( int argc, char* ...
[10 replies] Last: Doh sorry about that ;p (by closed account 3qX21hU5)
by s1l3nt
My Receipt Program
 
This is my receipt program finished. It runs and everything seems to be ok with every option that you select. What do you think? Is their a simpler way to do it...
[1 reply] : A couple of things, first you have functions that you told the compile... (by jlb)
Histogram/loop issues
 
Trying to take my gradeScale array, which holds all the grades the user enters, and create a histogram that would tally up how many as, bs, cs, ds, and fs there...
[4 replies] Last: I'd say that on line 56 index < * gradeScale is wrong (supposed to ... (by coder777)
Reference Variables
 
The question is part of a programming lab and my code is wrong but I do not know why. Can someone teach me why the code for the following question is wrong? ...
[7 replies] Last: Again, thanks! I will most likely have additional requests although I ... (by gdookie)
Printing one character in a string
 
Hello there! I encountered this problem during a technical interview. In the question, a string array has the following elements: {"polymorphism", "inherita...
[12 replies] Last: Thanks spot3! it's not the same as the program I saw but at least now ... (by Darth Bater)
Temperature conversion program.
 
I need help again guys. I am working on a program to convert temperatures. This is what we are supposed to do. The program needs to convert Fahrenheit to Cen...
[5 replies] Last: Don't forget, the compiler is there to help you. Currently, the code p... (by Chervil)
TRouble with cmd
 
im trying to run this simple program, and ran into a classic problem of having my contol terminal shut down right after the program is executed #include <ios...
[4 replies] Last: How about setting a breakpoint on the return 0; line, then run to th... (by Lodger)
stuck in operator overloading
 
#include<iostream> #include<string.h> using namespace std; class string1 { char *p; int len; public: string1(){len=0;p=0;} string1...
[2 replies] Last: The copy assignment operator shall be a member of the class. So instea... (by vlad from moscow)
Help with Integration function (1,2,3)
 
I need to write a program to use the area of rectangles and/or trapezoids to find the area under a curve. I will take the integral of a function to find the ar...
[53 replies] Last: I'm glad that you've got this working now - that's good to hear. Ther... (by Chervil)
Random command
 
How do I make a "random" command, I want to make a program that says a random colour, please help.(This is not a homework assignment, just for fun)
[6 replies] Last: Thanks for all the help (by Code Apperentice)
File Opener
 
I'm making a new program that when the user types a path to the file, it will open it, bu i'm having problems with the fopen function... #include <iostream>...
[5 replies] Last: Thanks a bunch!(I'm not sarcastic, seriously, it worked!) (by Code Apperentice)
c ++ functions
 
i want to write a function that would get a copy of an array and go through it to see which of the below conditions is satisfied by that array. function proto...
[4 replies] Last: @parham93 So taking into account the previous code you can easy wr... (by vlad from moscow)
Question with drawing right triangles
 
I'm trying to draw a right triangle to the console using asterisks. I've found several examples of how to do this but these examples seem to assume the values f...
[1 reply] : this code uses the identity of similar triangles. of course the triang... (by gelatine)
Help with getline
 
Hello guys My problem is everything is working but only my char array is not outputting for some reason. Please help Thanks.
[3 replies] Last: make it return char* or, better const char* (by MiiNiPaa)
by gladi
what does this function mean?
 
Hi everyone, I have this function I did not understand it and I don't get the condition in the if statement. If you can please explain this function. Thank ...
[3 replies] Last: The function can be rewritten much simpler bool DateAndTime::leapYea... (by vlad from moscow)
by gladi
What does ? in if statement
 
Hi Guys, Can you please help me with issue. I would like to know what does ? symbol in lines (78 and 80) And Please if you can write an alternative if stateme...
[2 replies] Last: Thank you TheIdeasMan I got your point. (by gladi)
by DELB
Explain this code to me please :)
 
// // main.cpp // Critter Farm // // Created by Jacob Jones on 11/02/2013. // Copyright (c) 2013 Jacob Jones. All rights reserved. // #include <io...
[12 replies] Last: ostream is a class for writing output to a stream. cout is a stream - ... (by jim80y)
Assignment help
 
while (grade<=100 && grade>=0) { cout<<"Grade: "<<endl; cin>>grade; counter++; sum+=grade; } if (grade>100 || grade<=-2) { cout<<"Invalid Grad...
[2 replies] Last: You were right!! Do while loop worked! I didn't know it would make th... (by misslittle1)
February 2013 Pages: 1... 4142434445... 67
  Archived months: [jan2013] [mar2013]

This is an archived page. To post a new message, go to the current page.