Beginners - July 2008 (Page 3)

by idono
spaces problem
 
im tring to practice on space looping i got the loop to work but how do you make it so i dont have to enter 1 first? #include <iostream> using name...
[3 replies] Last: get line i know i should of used that thanks (by idono)
Switching from main function to other function issue.
 
For some reason i cannot transfer control from the main function to a new function, any reason why it's not working would be great. :) I am doing this: usi...
[4 replies] Last: Hmm... another duplicate thread... http://www.cplusplus.com/forum/beg... (by Duthomhas)
Function Template -
 
I'm having difficulty finding the problem with this code: // maximum.h // Definition of function template maximum. template < class T > // or template...
[2 replies] Last: :/ can't believe I overlooked that. Thanks. (by Return 0)
Question on multiple input..
 
How to make multiple input for this program? Since i already limit the array to 50, i would like to have more input for it.. #include<stdio.h> #define MaxAr...
[3 replies] Last: This is what I have updated from the previous code.. The function for... (by Notreve)
Im a bit confused(Tic-Tac-Toe)
 
Thats my code src so far and well im getting a bit confused. I have globally defined the XOboard and well i think ive made the clear board function but im confu...
[7 replies] Last: wow thats way to confusing..... (by Chrislee123)
if-else
 
#include <stdio.h> #include <conio.h> main() { int a,b; printf("irasykite skaiciu\n"); scanf("%d" , a); if (a>0) a=a; else a=-b; printf ("%d\n"...
[3 replies] Last: ok , thx , sorry for C code. (by m4k4v3l1)
Hello World problems
 
Hello there, I have recently started trying to learn C++ (as in today) and have been attempting the legendary hello world program. However i seem to be havi...
[19 replies] Last: matanuragi,... else...? im also having a problem with my 'hello w... (by unattached)
Having problems with Microsoft's Visual C++ Express
 
I've been starting to work through a tutorial for DirectX that I found on the internet, and it starts by teaching basic windows programming, for which it recomm...
[3 replies] Last: Yes. There's no reason a console program can't create and use windo... (by Duthomhas)
Function
 
My objective is to supply a number initially and obtain a result that adds 10 to it using 2 separate functions: 1st function that supply the number; 2nd funct...
[1 reply] : 1. Replace void modify_int(int) with void modify_int(int alpha) . ... (by helios)
Beginner's Question regarding array..
 
I just started learning on arrays few days back and i only obtained very shallow information out of the topic.. Really need someone who can give me a simple exa...
[1 reply] : Here is the link http://www.cplusplus.com/doc/tutorial/arrays.html (by anilpanicker)
What compiler should I use as a Beginner?
 
I want to learn C++ and I have Linux (Ubuntu) what Compiler will fit a Beginner like me to start practicing with most of the Tutorials and Sources Codes outhere...
[15 replies] Last: Perfect! :-) (KDevelop looks a lot nicer than it did the last time ... (by Duthomhas)
Drawing
 
Hello. I only really program in Game Maker and I am trying to learn C++. I know all that stuff of if, else, for, etc. However, Game Maker has an easy languague....
[2 replies] Last: C++ itself doesn't have anything for graphics in the standard library.... (by helios)
Declaring unsigned doubles??
 
Hi, I was wondering if you can declare double integers as unsigned. I'm writing a program that can not accept negative prices and the prices declared are doubl...
[2 replies] Last: if(single < 0 || half < 0 || full < 0) cout << "Invalid price"; ... (by QWERTYman)
Pattern Searches in Binary File
 
I have loaded a binary file into memory (using ios::binary). I need to search for 10101 (or 0x15), which I did by searching each value returned by file.get(). W...
[2 replies] Last: move byte 1 to byte 0 and read the next byte into byte 1 Wait. What... (by helios)
vector of strings instead of cout?
 
Hi, I have the following code and i need to direct its 1154 outputes to a vector of strings as i need to use this vector later on? any idea how to do it? tha...
[3 replies] Last: Thanks Duoas , it works (by hash mobtadi)
recursion
 
hi everyone...would you plz help me in programming..our topic is about recursion and i find it hard to understand it...would somebody give me simple program abo...
[3 replies] Last: So, here is an example: #include <iostream> using namespace std; ... (by QWERTYman)
by tlpog
C2039, C3861 / Not a member, Identifier not found
 
I am very new to C++ and programming in general so please bare with me. Compiling the code below produces 3 errors on Microsoft Visual Studio C++. //Account....
[3 replies] Last: :/ such a simple error... i need to learn to debug better. Thank you f... (by tlpog)
Opening a file problem (1,2)
 
Hi , I have one strange problem. I have one text file with this format. 001.001.002.002_001.000.000.000_001.001.002.002_000.000.000.000_001...
[22 replies] Last: If that is what you're trying to do, then you also seem to have design... (by helios)
Very lost Java programmer...where do I start?
 
Hi, I'm James, and I'm from South Africa. Anyway, I found this site, and read through lots of the C++ tutorials. It seems quite similar to Java. But now here...
[5 replies] Last: This is probably exactly what you are looking for http://msdn.micro... (by mikeb570)
Problem with Sqrt fx.
 
Hi guys. I am trying to do this one problem: Find the Fifth root of the sum of the squares of the first 100 ODD numbers only. (Beginner). I got everything worki...
[4 replies] Last: Hey man, I am just following a series of problems, or programming idea... (by LacViet)
July 2008 Pages: 12345... 15
  Archived months: [jun2008] [aug2008]

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