Beginners - July 2008 (Page 12)

by Ryborg
::className and ::method calls
 
I have been learning how to embed the Lua scripting language into a very simple OpenGL application I am creating with C++. As a part of this adventure, I've be...
[5 replies] Last: Welcome to the wonderful world of C++... (I say that to myself all the... (by Duthomhas)
Question about functions...
 
How do I bring a variable that I had the user input to the main function... like void function(){ cout << "enter x" << endl; cin >> x; } main() { cout ...
[3 replies] Last: @Faldrax Of course, you are right. I was a bit unconcentrated. T... (by int main)
Lights Out Game
 
Greetings to all. I am trying to find a way to generate via C++ code new lists for a "Lights Out" simple game. If you don't know what Lights Out is the pr...
[2 replies] Last: Start with a blank board, then randomly select a position on the board... (by closed account z05DSL3A)
by idle09
File reading and writing
 
Hi! Thanks for helping me. I need to write a program (in C++) that reads the file Employee.dat as input and then outputs to 4 different files which are Managers...
[4 replies] Last: Try something like //Stram declaration for managers - need one f... (by Faldrax)
Weird problem with -#'s
 
//Subtraction program - Brian Story #include <stdlib.h> #include <iostream> using namespace std; int main() { int a, b, c, d, score; //Setting a, ...
[13 replies] Last: it worked on devc++ for me, btw just a suggestion on the code, put a s... (by manutebecker)
Can't find predicate 'initial(char)'
 
Hi-- I'm struggling with Stroustrup's "The C++ Programming Language (Special Edition)". In Section 16.3.6 he gives the following code example: =============...
[7 replies] Last: Thank you both for your thoughtful replies and the very valuable instr... (by jazcap53)
DirectX SDK Aug. 2007
 
I'm looking for the DirectX SDK from August 2007. For some reason this one from Microsoft's original website doesn't work http://www.microsoft.com/downloads/de...
[2 replies] Last: it Still doesn't work while i'm downloading it it just closes the wind... (by bob3443)
background input, text output to different program.
 
hi guys, im looking for any help with my program, first some background info, if you dont want to read it just skip ahead of the italics first off, i have ...
[2 replies] Last: im using linux right now, but the computers at work are windows ME so ... (by Mike Hawk)
Why a specific order with preprocessors #
 
I'm using Visual C++ 2005 express now as I go through my schooling. I realize there's a header that has to be included as a preprocesor #include "stdafx.h" ,ho...
[4 replies] Last: You are getting stdafx.h because you are incorrectly creating your pro... (by weaknessforcats)
Problem with delete[]
 
Hello, mates. Here is my problem. I have this array of pointers - **cell. cells = new Cell* ; for(int i =0 ; i<columns ; i++) ...
[4 replies] Last: You are going to a lot of trouble here re-coding the STL. If you ne... (by weaknessforcats)
compiling problem
 
iuse devc++ to complie and when i compile a program says in function menu() "clrscr()" undeclared (first use this funnction )
[14 replies] Last: thanks ;) (by ioanmih)
by Nandor
string to char[]
 
can someone tell how can I convert a string into a character sequence?Or can i use the getline(cin,...) function for character sequences?
[1 reply] : If you are talking about std::string then use the c_str or data memb... (by bnbertha)
5 functions
 
# include <iostream.h> main() { int hours=0,day=0,rate=0,gross=0; int num=0; { cout<<"no. of employee";cin>>num; int x; for (x=1;x<=num;x++) int sss=30...
[5 replies] Last: thanks Im starting to get on with this...but still a bit confused and ... (by dummyatplusplus)
by Frzn
using strings with fputs and strcpy
 
I am trying to learn c++ by making a text game. At the moment I have a problem. I am using a string-array to hold my races. std::string race ; race = ...
[4 replies] Last: I have reported your spamming this topic. There is no "advancing" t... (by Zaita)
Beginner searching a bubby to program with!
 
I find it easier to do stuff in a group of 2 or more. If there is someone out there who thinks the same maby u can email me and we could talk on Skype or Ventr...
[1 reply] : Ahem... http://www.cplusplus.com/forum/jobs/ (by QWERTYman)
by person
can you use c++ to make a video game
 
can you make video games or do u need some visual thing
[3 replies] Last: Wireframing? You can use Microsoft Visual Studio. They have Microso... (by Zaita)
' undefined reference to ' with namespaces in g++
 
hi, Im new to this forum ,and I would realy like if anybody can help me When I compile client.cpp file with -c option it works fine ,but when I try to link ...
[3 replies] Last: The first option will do. You just have to use the -L and -I command l... (by Duthomhas)
including libraries
 
Hi everybody, i'm trying to programming using some libraries like ITK and VTK. To be able to use these libraries I had download the files, than I had cr...
[3 replies] Last: try copying ur h files to where all the others r if ur having trouble ... (by cyberpirate)
Input Validation Strings
 
Hello all, I am trying to check user input, the program will only accept 4 answers, A, B, C and D. I planned on using a do-while, but i can't get the validat...
[2 replies] Last: Thanks a bunch guestgulkan. I tried the && and everything works thanks... (by jason387)
not getting output
 
Dear sir, I am not able to see the output of following program #include<iostream> int main() { std::cout<<"Welcome to C++"; return 0; } I would be gla...
[3 replies] Last: As Duoas said read the thread: Console Closing Down http://www.cpl... (by closed account z05DSL3A)
July 2008 Pages: 1... 101112131415
  Archived months: [jun2008] [aug2008]

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