Beginners - October 2013 (Page 33)

Passing Data Between Classes Using Pointers
 
I am having the darnest time passing data between two classes Okay, so I have two classes, Class A and Class B. Class A generates a number, say 3.14. It then ...
[2 replies] Last: Yeah I realize that the code is weird. To be honest I didn't really pu... (by Mobius1)
files & bin trees
 
Hello c++ programmers I need to know more about: 1- files "read & write in same time" 2- binary trees so I would you give me some codes to understan...
[1 reply] : Hi there, For more information on reading and writing to and from fil... (by closed account o3hC5Di1)
touch up trouble
 
I am trying to finish my c++ program. however I have hit a wall. I am reading in a file sorting it. Then every time the team name changes there needs to be a...
[1 reply] : Hi there, Please be a little more specific about the problem. Are you... (by closed account o3hC5Di1)
Finding Squares of N random integers
 
Hi, I just started programming a few weeks ago, so I'm and having some trouble with loop structures and random number generators. Sorry if the question seems te...
[1 reply] : Hi there, You need to seed the random number generator. This page has... (by closed account o3hC5Di1)
Convert binary bitset to hexadecimal
 
Is there a simple way to convert a binary bitset to hexadecimal? The function will be used in a CRC class and will only be used for standard output. I found ...
[1 reply] : Hi there, You could output it to a stringstream, then convert it to a... (by closed account o3hC5Di1)
Determine if a relation is symetric
 
Hello all I am having trouble writing a function that will determine if a relation is symmetric. Any tips as to what I am doing wrong would be greatly appreciat...
[no replies]
problem with if
 
it dose not work !! the program must determine if the number is perfect or not #include<iostream> using namespace std; int main () { int a,b,c=0;...
[2 replies] Last: thanks alot my friend (by max v max2)
Pointers and Functions with Arrays
 
So, I think I've got this mostly figured out but I'm receiving two error codes when I attempt to compile this code. The assignment specifies that we are not to...
[3 replies] Last: Alrighty I've worked with it some and got the 2nd pair of functions to... (by halamaker)
Reading Binary File
 
Hi Everyone! I have the file "timelog.dat", which is a binary file with measure data from different sensors Called A, B, C etc and Each measure data is stored a...
[5 replies] Last: Once you have got the input fixed (see Chervil's post above), the rest... (by JLBorges)
Easy Question...
 
The question is ... Assume that qty and salesRep are both integers. Use a type cast expression to rewrite the following statements so it will no longer perfo...
[11 replies] Last: Hi there, Please create separate topics for unrelated problems. As fo... (by closed account o3hC5Di1)
by SarahD
dayType
 
well our dr. gave us this home work annnd i have a problem in calculating the days soo here's the Q and how i solved it and please tell what's wrong. -------...
[3 replies] Last: well i thought about that, but first i want to make sure that everythi... (by SarahD)
by sumsar
problem with a function.
 
I'm trying to make function that returns a pointer to a random string. But i get a compiler error on line 13. const string chartabel = { "qwertyuiopasd...
[2 replies] Last: password is an array of strings. the first element of the array is ini... (by tipaye)
Inserting new nodes into a binary tree
 
I am trying to write an algorithm to insert new nodes into a binary tree. My program crashes and I can't figure out why. My logic and syntax seem correct. Any h...
[2 replies] Last: Yeah, you have no root :-) Also, you meant to use the comma (,) not s... (by tipaye)
passing arrays to constructors plz help
 
Hello, I have this programming challenge that has stopped me dead in my tracks; hopefully someone can help :) The code is supposed to take two arrays (one strin...
[3 replies] Last: Wow, I feel silly for putting that up here now lol, thanks alot! (by chickens7)
by Ausha
Find prime numbers between random numbers (1,2)
 
Hi! People here are talking a lot about prime numbers, but i just couldn't find the right answer. I need to write program, that generates numbers from 1 to a (a...
[25 replies] Last: [quote=GRex2595]I don't program in C++ to necessitate a paid upgrade, ... (by MiiNiPaa)
by Gacsam
While problem
 
Hello again, I'm having a little problem with a while statement. Everything works perfectly fine, as long as the "begin" integer in "cin >> begin" is a number/d...
[1 reply] : I have figured it out, instead of "int begin", I have used "char begin... (by Gacsam)
Pointer to pointer and bidimensional arrays.
 
Hello :) I've got three questions,could you help me please? 1.Why isn't this working ? int arr ; int** ptp=arr; If an array is a pointer, shou...
[3 replies] Last: 1) It is not working because they are not type-compatible. You are try... (by Duthomhas)
Writing a Delete algorithm in an ordered linked list
 
I am trying to write a delete algorithm for an ordered linked list. Search and traverse I think I have down but delete is giving me fits. It crashes every time....
[7 replies] Last: Right, I hadn't refreshed the page to see your comments in a while. A... (by Stewbond)
Help with basic calculator.
 
I've been trying to make just a basic calculator. The problem is at line 33 where i expected WriteAnswer to write the variable 'ans' but it did not. What am I...
[2 replies] Last: More changes in bold : #include <iostream> using namespace std; i... (by Stewbond)
number sequence problem
 
I've been trying this number sequence problem for a while now. The program is supposed to test for numbers that are divisible by 2,3, and 5. Then the 1501st num...
[4 replies] Last: Woops... looks like I forgot to replace the x's in the for loop: Chan... (by Gaius Baltar)
October 2013 Pages: 1... 3132333435... 86
  Archived months: [sep2013] [nov2013]

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