Beginners - August 2010 (Page 24)

The need to press enter...
 
Is there a way, when making a game for example in the console, that you don't have to put enter every time? Like, I use 5 321 as my setup to move for ...
[15 replies] Last: Haha, that's what I get for not refreshing first! :-P Besides, no harm... (by x loto)
how to convert str to arr[]?
 
string str="1B 42 E8 1B 43 40 0B 10 00 90 01 B4 00 2C 01 00 00 78 01 01"; array unsinged a ; and I want to store each 2 data in hexadecimal as one element ...
[18 replies] Last: thank you Galik ,your code is very usefull to me.is more simple than m... (by peripheral)
Unresolved token and external symbol with ctor and dtor
 
I've been trying to get rid of these linking errors for a few days now and the only thing that does it is commenting out the constructors and destructors for my...
[13 replies] Last: I checked my code.. the name mismatching was just a mistake in post... (by SgtPooki)
by Wander
More Dang Deque Problems
 
I'm new to using deques and other advanced containers like vectors and such. I don't see anything wrong with this but I get the weird "Runtime stopping in a wei...
[4 replies] Last: okay. i did. then i ran it again without debugger and it crashed again... (by Wander)
by Async
what's the difference
 
what's the difference between the two global declarations: static int i; int i;
[3 replies] Last: thank u ^_^ (by Async)
Weird, weird glitch in compiler
 
Ok so I spent about an hour with trying to figure out what the hell was going wrong. BTW I am not asking for help, just explaining how crazy this it. Here's ...
[4 replies] Last: Yeah that is strange, it really messed me up because it only crashed f... (by AdventWolf)
How to read a certain line of a txt file?
 
Let's say I have a text file that consists of 10 lines. Line one reads "One", line two reads "Two" (without the quotation marks.) etc. I know how to open th...
[5 replies] Last: for (int lineno = 0; getline (myfile,line) && lineno < 7; linen... (by outcome)
function pointers
 
Hi, I already know how to create functions that return pointers to functions that have already been defined at compile time, like in this example: type...
[6 replies] Last: Isn't that the same as float functionA (float a, float b, float... (by guestgulkan)
Reading a Tab-Delimited Spreadsheet File
 
Say that I wanted to read the numbers off a tab-delimited spreadsheet file, such as from SomeFile.txt: 1 1 2 4 3 9 4 16 5 25 How could ...
[8 replies] Last: stringstream could also be useful here: #include <iostream> #incl... (by m4ster r0shi)
Why is ifstream.getline() cutting short?
 
I have a program: #include <iostream> #include <fstream> using namespace std; void main(){ char str ; ifstream in("C:\\somefile.txt") ...
[3 replies] Last: Also check this out: #include <iostream> #include <string> using... (by m4ster r0shi)
cant get overloading of functions to work
 
we had to do a project as described: Using the example functions about, write a calculator program. Allow for the user to enter a simple math functions to e...
[no replies]
Upper Case to Lower Case
 
Hello guys, i am a beginner at programing, and I found this site really helpful as it has c++ tutorials, all the libraries and its functions with example code, ...
[5 replies] Last: Your loop goes too far and you didn't assign the modified letter back ... (by Galik)
Can you create a random decimal number between two other numbers?
 
I'm working on a program and I was trying to figure out how to create a random fraction number between two other numbers. Something like: num3 = rand()...
[6 replies] Last: Thanks for the help guys, I was able to do just what I needed. I'll ce... (by AdventWolf)
string problem
 
#include <iostream.h> int main(){ char first ="1234567890"; char second ="0000000000"; for (int i=1;i<=10;i++){ second = first ; } cout << sec...
[8 replies] Last: follow you. thx all. (by horace5563333)
by yawa66
simple project..
 
ei i have a project but i dont know wat to do.. could sum1 help me in my project.. my teacher ask me to create a simple minesweeper game with 5 columns and 5 ...
[11 replies] Last: Last time I checked these forums were to pose questions for awnsers th... (by kaduuk)
by lssam
sorting problem with swap
 
hi l am trying to sort an array that will be read . l use swap function but it only swaps it once for the first value of i. #include<stdio.h> #include<i...
[18 replies] Last: instead it should be j<x because j < x+1 will mean j < 6 and theref... (by lssam)
C++ & DDE
 
Hi all, I am working with a platform that provides info on the financial market. (MetaTrader 4). The platform has an embedded DDE server. I am trying to f...
[8 replies] Last: thx for your all your answer kbw. (by wboustany)
****.exe has encountered a problem...
 
i'm new at c++. i don't know what to do with my program. it keeps on having this problem "exerdraft.exe has encountered a problem and needs to be closed." i don...
[2 replies] Last: thanks! (by silvertooth07)
by wasabi
custom constant definition?
 
If one wishes to declare a constant float, you can't simply use 1.5 since that will be computed as a double. You must declare it as 1.5f . Is it possible to ...
[1 reply] : Not now but on the next standards: http://en.wikipedia.org/wiki/C%2B%2... (by Bazzy)
by Midget
Connect four type Grid
 
Hello, I've recently started learning C++ and am now trying to build a grid for a connect four game (really basic) I was just wondering if it is possible to ...
[1 reply] : You can, but you need to store it in a char eg: char ( 123 ) // ... (by Bazzy)
August 2010 Pages: 1... 2223242526... 28
  Archived months: [jul2010] [sep2010]

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