
please wait
by nomnum
Starting my first Graphic Program, Library?
|
Hai everyone! The title might be a little misleading so I'll give my little story. So I have spent some time studying C++ and I would consider myself at leas... |
Jul 16, 2013 at 11:27pm
[1 reply] : OpenGL along with SFML or SDL if you're going 3d. Same can be used for... (by closed account N36fSL3A)
|
by metulburr
Fibonacci sequence
|
I have been trying to do this Fibonacci sequence with the default args for awhile. I keep coming up with incorrect results. The total should be 4613732. and as ... |
Jul 16, 2013 at 10:35pm
[6 replies] Last: Inside your while loop should be: sum = a + v.back(); a = v.back()... (by Smac89)
|
by Boomers
Programming bugs?
|
I'm having a problem with this code. If you input you're married and that both people don't work, it asks for combined income and the working person's income. A... |
Jul 16, 2013 at 10:26pm
[3 replies] Last: Thank you so much for the help. I made a few stupid mistakes without r... (by Boomers)
|
by TweedleGun
Storing Strings In An Array
|
Hello I'm just starting C++ and I'm a bit confused with how to store strings in an array. I'm trying to make a simple calculator and this is what I've got so fa... |
Jul 16, 2013 at 10:23pm
[3 replies] Last: string addition = "addition"; string subtraction = "subtraction"; st... (by Smac89)
|
by jakeford
Looking for constructive criticism! (1,2)
|
We're working with file streaming, and reading and writing to files. I managed to complete the assignment, but I feel there was probably a better way to have do... |
Jul 16, 2013 at 10:00pm
[33 replies] Last: @JLBorges Thanks man. I see where my mistakes were with the file rea... (by jakeford)
|
by Dineo
static casts??
|
Hey guys.. Can someone please explain what static_cast<datatype>(2)Does?.. And why can't I just divide by a normal integer or double over that? |
Jul 16, 2013 at 9:49pm
[6 replies] Last: Rather than write static_cast<double>(2) or double radius = stat... (by andywestken)
|
What Is Happening Here? |
So I am having a bit of confusion with understanding WHY this program works. #include "std_lib_facilities.h" int main() { string previous =" "; // p... |
Jul 16, 2013 at 9:36pm
[4 replies] Last: Thank you both, vlad and Ispil. I appreciate your input. Ispil, thank... (by InclinedToFall)
|
by Josh Brown
If/ Else Statement Not Working
|
I know i'm a noob to C++ programming, and i may be completely missing what i'm doing, but i have researched and cannot find solution to this. When you type in '... |
Jul 16, 2013 at 8:18pm
[4 replies] Last: Okay I see, thanks so much for the help guys!!! (by Josh Brown)
|
by wreglefan
C++ Question
|
This is a question on my study guide and I believe the answer is: 543210 is this correct? with the following input: 456789 what will print out? int i,t... |
Jul 16, 2013 at 7:39pm
[15 replies] Last: you know what vlad? when you learn to code come talk to me. i will jus... (by closed account Dy7SLyTq)
|
xcopy in system() |
I need to use xcopy here (since I don't know a better way). My question is, how do I need to format the line with system() so that the compiler can read it. I'... |
Jul 16, 2013 at 6:46pm
[2 replies] Last: Originally this whole this came from a batch file. I just wanted to t... (by ThtCooperFellow)
|
by munjo5746
writing bitset into binary file!!
|
Hi, I am trying to find a way to write a bitset into binary file!! I tried the following code!! bitset<10> first("101011"); ofstream output("binary.bin",i... |
Jul 16, 2013 at 6:16pm
[6 replies] Last: @ DTSCode : I wouldn't worry too much about a byte being less/greater ... (by closed account zb0S216C)
|
ChatRoom for IOS game |
How would you make a chatroom for online multiplayer on a ios game? Can anyone give me a example so I can make my own? |
Jul 16, 2013 at 6:04pm
[no replies]
|
by Tomhet
C sub string
|
Is there possible the sub string without allocing and without change the original array? like: char*orig="original"; char*sub=&orig ; |
Jul 16, 2013 at 5:37pm
[7 replies] Last: @Tomhet Is there possible the sub string without allocing and withou... (by vlad from moscow)
|
return (a<b?a:b); |
What does the below line of code mean? Explain by examples. What is this process called? return (a<b?a:b); |
Jul 16, 2013 at 4:56pm
[6 replies] Last: What it does is evaluate the conditional statement. If that statement ... (by Raezzor)
|
by InstantDeath
Order of operations/precedence
|
could someone explain to me why the answer would be 3? int a = 5; a -= a-- - --a; cout << a; |
Jul 16, 2013 at 4:42pm
[4 replies] Last: a -= a--(5) - --a(4-1) 5 -= 5 - 3 5 -= 2 3 http://stackoverflow.com/... (by Smac89)
|
by Brighton
To sum the numbers from 50 to 10 using while
|
Hello, I'm really new to the C++ programming so this question might look silly or so. I need to write a program that uses a while to sum the numbers from 50 to... |
Jul 16, 2013 at 4:31pm
[8 replies] Last: @Brighton Can someone explain me why it prints "Sum of 1 to 10 incl... (by vlad from moscow)
|
Allegro program screwing up |
I am following a tutorial for game making with allegro. This code is meant to fire off a bullet when i click space. I havent added an update function yet, so th... |
Jul 16, 2013 at 1:55pm
[1 reply] : nevermind i found the problem i was missing a pair of brackets (by flamesscarlet)
|
by abol810
problem with functions
|
I'm trying to write a simple calculator program and here is the code. the problem is when you choose an operation, after finishing the function it does not ret... |
Jul 16, 2013 at 1:25pm
[2 replies] Last: there's break; required after case is done (by coder777)
|
by ace55
File decryption help please
|
Hi guys, I wrote this program for file encryption and decryption but my decryption command hangs. How do i fix it i am so lost. Thanks! #include<iostrea... |
Jul 16, 2013 at 12:43pm
[1 reply] : char newc= int(c)+12; file2<<newc<<" "; you are adding a space bet... (by LaboPie)
|
by otisphat80
Disappearing Data
|
I have a very strange situation here this code I wrote here will not run in visual studio when debugging it when it calls a function sometimes the get_size_of_a... |
Jul 16, 2013 at 12:43pm
[10 replies] Last: Cire, you solved my problem. I can't thank you enough. (by otisphat80)
|