Beginners - January 2014 (Page 10)

by pukol
SDL error BS..
Yeah i got it to work but then when i turned off my computer then use it again. I got the error that says. --------------------------------------------------...
Jan 27, 2014 at 11:45am
[3 replies] Last: Yeah thx for all your help. (by pukol)
Unknown Error
I'm experienceing an unknown error. My IDE (Visual Studio 2012) isn't giving me any errors. But when I run the program it crashes. More specifically after accep...
Jan 27, 2014 at 10:11am
[2 replies] Last: Solved! Thanks. Also made the spelling correction. (by JRimmer)
Advance Calculator
I was messing around with Code Blocks and i want to create a calculator There user choose 2 numbers and then writes +,-,:,x and program excecutes however i got ...
Jan 27, 2014 at 9:19am
[2 replies] Last: Thank you very much (by arnas122)
by klika
Square problem
The part for(int i=1; i<n; i++) { x =sqrt(y *i); cout<<"x"<<i<<": "<<x <<endl; } isn't working wll, for some elements the...
Jan 27, 2014 at 4:50am
[2 replies] Last: I'm not sure what this does, but array indices go from 0 to n-1 , so ... (by long double main)
Program using the Pythagorean theorem
I have written a program using the Pythagorean theorem to figure out if the triangle is a right triangle or not. We are supposed to have it set up so that no m...
Jan 27, 2014 at 4:31am
[5 replies] Last: Yeah. I get lazy sometimes and don't recognize where I mess up until ... (by GRex2595)
Problem with palidrome
This is actually quite a simple program that I am perplexed as to why it doesn't work. It's basically the creation of a five digit palindrome. Each number has...
Jan 27, 2014 at 3:58am
[3 replies] Last: You could enter it into a string so that you get one number, then diss... (by GRex2595)
Create a "checkerboard" using cin
I am stuck on a problem due this week. Here is the description of the problem: "A generalized checkerboard is a rectangular grid one that has four parameters: ...
Jan 27, 2014 at 3:23am
[8 replies] Last: I did that[You should just remove line 11 and replace it with line 15... (by giblit)
Bungling hollow square loop
Hey. So I'm supposed to build a program that will allow me to create a hollow square up to 20 characters long and wide depending on how many you enter. My ins...
Jan 27, 2014 at 2:59am
[2 replies] Last: Thank you. (by jackbruns28)
Inventory Program
My program is an inventory program. It compiles and runs, but when I try and enter the name of the first piece of inventory, it doesn't work. But you can fill...
Jan 27, 2014 at 2:48am
[4 replies] Last: THANK YOU!!! It works perfectly now!! (by giraffe1234)
function should return a pointer to array..?
I am trying to do the pointers, the problem was simple wanted me to allocate dynamically an array in a function which will return a pointer to array, I think i...
Jan 26, 2014 at 11:58pm
[14 replies] Last: Um... what do you think will happen when the following line executes: ... (by MikeyBoy)
Make 'a' = 0, 'b' = 1, etc
So basically i'm supposed to change the values of the alphabet letters and single digit number to a=0,b=1,...,z=25,0=26,1=27,...,9=35. Can you anyone suggest...
Jan 26, 2014 at 11:39pm
[2 replies] Last: #include <iostream> #include <string> #include <cctype> int main() {... (by JLBorges)
Reading a file into vectors
My program writes a vector to a file in binary. I want to erase the vector, then read the file to repopulate the vector then display. Basically I want to era...
Jan 26, 2014 at 11:08pm
[2 replies] Last: I would post the entire program but its huge. This is the structure wi... (by alee4408)
How to add trailing zeros to integers?
Got it working, thanks everyone!
Jan 26, 2014 at 10:58pm
[7 replies] Last: He wants to output the rounded value though yours will not round alee.... (by giblit)
Pointer to Pointer
The purpose of this program is to create a connect 4 game. The trouble I'm having is understanding syntax. My instructor gave us hints to help with creating thi...
Jan 26, 2014 at 10:51pm
[4 replies] Last: // That first line represents this V V V ... (by JRimmer)
by engr
how to reduce the file size of C++?
If I write descriptive program , will it take large size? Does C++ take large time to complie and have large file size? someone told me that IF I use C To find ...
Jan 26, 2014 at 9:32pm
[6 replies] Last: I do not recommenced squishing your lines together, compile time depen... (by vasilenko93)
by klika
C++ Graeffe's square root method
So i have to write a c++ program for the Graeffe's square root method I have am stuck here when i have this formula transform into c++ code The code works p...
Jan 26, 2014 at 9:19pm
[no replies]
by Babel
Enumerations
How do I get the actual value from an enum instead of just a number?
Jan 26, 2014 at 8:42pm
[7 replies] Last: Something like this (the example uses a scoped enum; treatment would b... (by JLBorges)
by Kauto
Pointer and declaration difficuty
Here's a piece of my code that I divided. I basically need to create 3 functions: 1)1st to fill my array with random numbers 2)2nd to print the array on the scr...
Jan 26, 2014 at 7:55pm
[4 replies] Last: > you can't pass array by value, True. Arrays are not copyable types.... (by JLBorges)
Calling functions and reference
So I'm on the first leg of my project and I am stuck on this detail: "Your program should be organized into several functions. The only code you may write in...
Jan 26, 2014 at 7:10pm
[3 replies] Last: you need to give two int variables to your getBoardSize function becau... (by Yanson)
Regulating FPS
In line 11 what is SDL_Getticks(); and in line 25 and 26 what is the purpose of these lines and is SDL_Delay used for slowing down the processing speed , fina...
Jan 26, 2014 at 6:32pm
[3 replies] Last: SDL_GetTicks() returns the number of milliseconds since the SDL librar... (by NullInfinity)
January 2014 Pages: 1... 89101112... 44
  Archived months: [dec2013] [feb2014]

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