Beginners - October 2013 (Page 54)

Size of bitset 8 times too high
 
While trying to figure out why a serialized version of a class I made, took up way too much space on the harddrive. I discovered that a bitset takes up N amount...
[3 replies] Last: I've come across another such library, YAS url: https://github.com/n... (by niXman)
User Entry Menu
 
Hey guys I was wondering if you can help me re-loop this menu. After the user selects one option, they should be able to select a different option. Currently it...
[1 reply] : Try adding a break; at the end of each case, so it doesn't fall thro... (by TheIdeasMan)
I dont know if my output is right!
 
Problem: Given the following function and it's results: f(x,y) = x^y + y^x where x>0 and y>1 f(1,2) = 1^2 + 2^1 = 3 f(2,3) = 2^3 + 3^2 = 17 f(3,4) = 3...
[7 replies] Last: Thanks for the help you guys. I'll try to understand furthermore what ... (by bits12345)
3D array question
 
Hi, I need some help with 3d arrays. I read online that if you want to assign a pointer to a 3d array u'd need to put *** in front, but i get the following e...
[6 replies] Last: Yes, the 3-D array you declared is not that large; for that to work, ... (by Josue Molina)
how to reject bad input?
 
this is part of a function that I am working on I am getting it to work but now I need to make it display "Error" if user enters a non numeric value for both Mi...
[4 replies] Last: Now I have an infinite loop every time I enter a number where do I cha... (by fmedina151)
Stack machine
 
You are to implement the run time environment for a STACK machine. A valid STACK program is a sequence of instructions, which are read one at a time (from a fil...
[1 reply] : summarize your problem :) (by garybone)
How to Calculate norm of a vector?
 
Write your question here. I cant write program which Calculates norm of a vector ( with class-es).help Please
[1 reply] : If you mean Euclidean norm, then it can be easily calculated using the... (by abhishekm71)
?????
 
what do you mean by fout.write((char *)&sal, sizeof(sal)); what did "sal" role right after class Salary? What does the above code do? ofstream fout;...
[1 reply] : what do you mean by fout.write((char *)&sal, sizeof(sal)); It writes... (by Catfish4)
If While IF IF IF Loop
 
So this is part of a much larger part of code obviously. What I am having problems with is when I run it and the first if statement is true then my program doe...
[3 replies] Last: no its bracket is appear while (byear - 1 >= syear { ... (by max v max2)
by xoxos
win32 test for non-repeat key press
 
bog standard question, past midnight, clueless. i'm used to testing for key presses like this and using a bool elsewhere.. bool kdaheld; case WM_KEY...
[1 reply] : aah! it's HIWORD tyvm... if ((HIWORD(lParam) & KF_REPEAT) < 1) c... (by xoxos)
by meek
Guessing game help?
 
this is the assignment I need some help with.I have posted what i have written so far for this assignment and am not sure what steps to take next, or if i have ...
[2 replies] Last: Lines 5 and 6. Hmm? (by xismn)
Arrays referencing same memory space
 
Hi, I'm having an issue where an array is not being initialized and it is referencing the memory space of another array. I have a 3d array and a 2d array ...
[2 replies] Last: awsome. thanks for the help! (by BigTurkeyEater)
Help?
 
Write a program that prints the following pattern * * * * * * * * * * * * * * * * * * * * * There are int n lines of asterisks. All asterisks * should be printe...
[9 replies] Last: so my code is right? Well did you test it? The biggest thing about w... (by vasilenko93)
I'm new to programming, and wondering if programming logic ties in with C++?
 
Hey I'm a student and pretty new to programming. My first class was a programming logic class(CIS 115). I did fairly well in that class, we learned about pseudo...
[2 replies] Last: Thanks Chervil! I was just curious because, there are alot of differen... (by SwiSs3r)
Increment & Decrement Operators
 
Write your question here. how to write a programm that clear the difference between the increment and decrement operators using unary and binary operators. c...
[2 replies] Last: Can anyone yes. Will we no. There is a difference between can and may.... (by giblit)
need a Aligorithms,psuedocode and flow chart with arrays
 
Madame Ina Hurry finds that whenever she has to get to work in the morning she cannot quite find the best route to take her from her home at Clinketts in St...
[1 reply] : You must design You can assume that You can also assume You ... (by TheIdeasMan)
Random Number Generator HELP PLEASE
 
I'm trying to make the computer genearate a random number while it loops only 4 times; however, when it loops the console only outputs the same number, instead ...
[2 replies] Last: Yes, it looks you have no clear understanding on random number sequenc... (by rodiongork)
URGENT: Need help with Array homework
 
There is this assignment that is due on Monday and it has been really frustrating to me. As you can see by the quote below, the purpose of the program is to ass...
[2 replies] Last: Thank you so much for that. I shall experiment with the code you just ... (by Terminus Est)
by gghf
Deleting in a vector
 
I created a very basic program which contains a vector (my vector) that holds 0, 1 and 1. This program compares each element in the vector. If the element after...
[1 reply] : myvector.erase invalidates the iterator i . Btw, if you reach line... (by cire)
extracting value from a given number
 
i want to extract a digit from a given number and given position in minimum time ie:- given number is 45678 i want to extract 3rd digit(6) from the left in m...
[6 replies] Last: This may not be fast because its recursion, but it uses 0 loops. This ... (by vasilenko93)
October 2013 Pages: 1... 5253545556... 86
  Archived months: [sep2013] [nov2013]

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