Beginners - August 2011 (Page 9)

result of 'float' - 'float' ???
 
Hi, I have a calculation with two float numbers and I don't understand why the result is actually what it is? int main(void) { float a = -1.5, b=-1.4;...
[10 replies] Last: Thank you everyone! @Disch: The C++ FAQ was really great! @rapidcode... (by tempomat)
Bots that do small tasks on WWWsites
 
Whats really required to make a bot that basically reads what a website is telling them and makes decisions and actions based on the data obtained from the webs...
[5 replies] Last: yes smh... what i'm doing isn't illegal. It's very very very legal. If... (by brokenbot)
byte2char
 
I'm writing a program that takes a hexidecimal value as stdin and then writes it to stdout as its ASCII counterpart. My code compiles, yet seems to choose when ...
[1 reply] : EDIT: Nevermind, I found my error, seems that the whitespace after %x... (by coder777)
C++ Change CMD color background and text
 
Im coding with c++ (dev-c++). How do i change the background color of my cmd box? But more importantly, how do i change the color of certain text?
[5 replies] Last: The example from wikipedia is different. You also have an assignment o... (by m4ster r0shi)
dynamic array
 
What is a dynamic array ? how do we resize it and how can we copy all data to the new array, and release the memory for the old array????
[1 reply] : What is a dynamic array ? A container that changes its storage capac... (by Athar)
Can't get SFML to work? CodeBlocks. (1,2)
 
The template thing didn't work, I followed a tutorial to do it manually, and it still didn't work. I have the compiler set to the include folder and linker set...
[29 replies] Last: The paths indicate that something's wrong in the settings (..\..\..\Us... (by Athar)
What's wrong with this program?
 
Hi, I just began taking a C++ class at my highschool. We're using MetroWorks CodeWarrior IDE. Anyway, I tried writing a hello world program at home and compilin...
[5 replies] Last: Alternatively just press Ctrl+F5 in Visual Studio and the window will ... (by ascii)
cant close my window
 
SFML ...how come i cant close the window? #include <SFML/Graphics.hpp> using namespace sf; int main() { RenderWindow screen(VideoMode(800, 600, 64)...
[no replies]
Using Microsoft C++ Express thing
 
I'm trying that out, to see f I can use that instead of code::blocks, and I get this error when I try and compile simple "Hello world!" "Add directive to 'Std...
[3 replies] Last: Thank you. Both of you're things worked. (by ziodice)
for loops statement
 
i have a homework about this, i need to print out: (a's are not included it is use for spacing) 1. ***** **** *** ** * 2. aaaa* aaa* * aa* * ...
[2 replies] Last: ...And you're asking for someone to do your hw for you. Which is look... (by atropos)
96 errors! probably because of std.
 
Hi It's the first class I'm writing & now I got 96 errors! I think there should be something wrong with std. I know there might be some common problems like s...
[12 replies] Last: I realize this is after the fact, and I'm not trying to be particularl... (by Duthomhas)
Extremely Basic XCode / C++ Question re "Hello World" program
 
I have an extremely basic question. I'm just starting a C++ course, and would like to compile the code on my Mac. From what I've read, XCode is an appropriate t...
[4 replies] Last: Well, I've deleted the old project folder and emptied the trash, but t... (by Nostalion)
Recursion
 
So... program leaves void function when } is encountered, but how do I exit it BEFORE }? void myfunc(int a){ a++; cout << a << endl; if(a==10)//This i...
[7 replies] Last: Always and never rules are never correct and should always be... (by Lodger)
by wtf
I can't figure out what is wrong.
 
Some times it works, but bout every other time it crashes, sometimes before, sometimes after the cout output. #include <iostream> class myint{ p...
[7 replies] Last: P.S. sometimes it outputs werid results like: 8! = 403225306 or 8... (by wtf)
by fuzzy
Program crashes
 
this code compile but it crashes right after. Can someone tell me what is wrong? #include <cstdlib> #include <iostream> using namespace std; int main(int argc...
[4 replies] Last: You need to understand what a pointer is and what an int is, and how a... (by Moschops)
by J Pass
Class - First Assignment
 
Good afternoon. I am taking my first C++ class and admit that it's been a long time since I last learned any programming. My assignment that I'm working on is...
[4 replies] Last: Pseudocode for doing it without an array: max = user_input() repeat... (by hamsterman)
by nor
problem understanding a panagram code
 
#include <iostream> #include <vector> #include <cctype> using namespace std; const int ALPHA_SIZE = 26; int main() { string line; while (g...
[2 replies] Last: Thank you very much for the information! (by nor)
Prime Numbers different logic?
 
Here is the code I have written in C++ for displaying prime numbers from 3 onwards. I came up with the logic all by myself & did the coding myself. There is no ...
[1 reply] : The easy way to check a number if it's a prime is. run through a loop... (by GisleAune)
How to read numbers from a text file and output them into other text file
 
Dear Sir, I am trying to read numbers from a file and output these numbers into other text file. Practice.txt Shri 6000001 6000002 Ram 6000003 60...
[5 replies] Last: Dear Sir, I am trying to use stringstream function for my program i... (by somshridhar)
by Nelli
testing a string for user input, please help
 
Well just when you think your done another issue develops lol. I have provided the code that got me this far and it works well but now I have been asked to ins...
[1 reply] : Just take substrings of the input and keep track of what you are looki... (by kooth)
August 2011 Pages: 1... 7891011... 39
  Archived months: [jul2011] [sep2011]

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