Beginners - August 2012 (Page 24)

\? Control code
 
Hello, As you know, control code '\?' was invented to prevent compiler using trigraphs in strings, e.g.: cout << "?\?/n"; //"??/n" instead of "\n" Bu...
[5 replies] Last: It's because of the way the C pre-processor works: it converts trigra... (by Quentin)
Problem with stringstream
 
I'm trying to add a FPS counter to my game. Now the problem is that SFML only prints std::strings, so I'm trying to convert the fps value (an int) to string usi...
[no replies]
by mlgRs
Execute Shell-Script in the background
 
hey guys.. i wanna start the text.cgi within the php document by a button.. this works fine <form action="cgi-bin/ text.cgi "> <input type="submit" val...
[2 replies] Last: fork() (mitosis) and exec() family (ditto) (by ne555)
How to use same variables in different classes
 
Hello, I'm fairly new to programming in general, and i've had people say C++ isn't a starter language, but im up for the challenge. i've spent about all...
[4 replies] Last: ¿A transplant? (by ne555)
Is there any way to not letting cin execute when user input char instead of int/ double?
 
cout << "Please enter the stock ticker: "; cin >> ticker; cout << "\nPlease enter latest price: "; cin >>...
[8 replies] Last: When you do: int i; // or double i cin >> i; and the user enters a... (by Lowest0ne)
by gerfy1
Syntax?
 
I do not understand what syntax is. Please explain.
[16 replies] Last: Definition taken from Webster's dictionary. syn·tax    [sin-taks... (by Nexius)
by Zu007
how to convert a program written in turbo c 3.0 into codeblock
 
how to convert a program written in turbo c 3.0 into codeblock #include<conio.h> #include<string.h> #include<iostream.h> class String { private: c...
[6 replies] Last: _ main must return int _ The headers are #include <cstring> #includ... (by ne555)
by Ralden
I still don't understand returning.
 
Can someone explain it to me like I am 12? I have looked at 2 different tutorials, and I still don't understand it. Can someone tell me why this doesn't work?...
[5 replies] Last: a + y = z; makes no sense to the compiler. You must read it as the c... (by Nexius)
Function Pointers
 
As someone pointed out, I can learn a lot about something by making a separate topic just about the thing I'm trying to learn...which happens to be function poi...
[5 replies] Last: A function pointer is a pointer to a function. Basically, it works in ... (by Nexius)
Star a website
 
I need help. I am trying to make the console star a website. I want to make It so you type in a website and then It starts it up. if (URL == 3){ s...
[14 replies] Last: Thank you that worked. (by Forseth11)
by Ralden
Accessing "private" data in a class
 
Hello, I'm back again, still working on the same project ( a simple combat game). I am stuck trying to access the private data in my classes. I have worked my...
[10 replies] Last: All what you have to do is to specify nested name specifier for the fu... (by vlad from moscow)
Differences of ios::out and ios::trunc
 
...continued from http://www.cplusplus.com/forum/beginner/77034/ --------- I would like to ask, what's the difference of ios::out , ios::trunc ofstream o...
[13 replies] Last: Stroustrup suggested a lot of guis in his site..... One of them is "Th... (by ThomasMylonas)
by Tita
To change a command line
 
hi! I must make a program which must create many file automatically when I execut. But for that, I have to modify command line automatically. So , is it...
[1 reply] : Command line for what? Your program? An existing program that you exec... (by shadow123)
by Tita
move a file in another repertory
 
Hi everybody!! If someone can tell me how to copy or move a file in a repertory X to another repertoy Y in C. (not C++) I try to find a function in C which ...
[1 reply] : Which operating system? 1. Way: Read the file and write it to the oth... (by shadow123)
Question in data structure
 
Using the static structures write a program to represent calling of recursive functions in the next program f1(int); int main() { f1(6); retrun 0;...
[no replies]
Arrays
 
There are so many topics on arrays and I've read up some of the articles and forum questions, but I just can't seem to understand it. I have to create a pr...
[7 replies] Last: Akshit: Yes I know :( I was halfway done with the program when my prof... (by StartUp)
Printing Right Triangles Next to each other using asterisks
 
using [include <iostream>] i cannot make a Right Triangles Next to each other using asterisks.i want an output just like from below.please help me... *...........
[3 replies] Last: I think you are after this int k = 11; for (int i = 0; i < 10; ... (by Vagabond)
Pig in C++
 
Hi, having issues with my Pig game. Had a search of other user's work and theirs is completely different from mine, so... here it is. #include <iostream> ...
[6 replies] Last: cout << "Your turn, " << player1 << ". Enter 1 to roll" << endl; ... (by LolwutMikka)
by Ralden
Keep an integer from going below 0?
 
Hello, I am writing a simple combat game and I need some help. I would like to keep my integers which I created in a couple classes from going below 0. Her...
[4 replies] Last: Haha, thank you Toni, and thanks again for the help. :) (by Ralden)
by Nelvin
Problem for array
 
Write a program that shall prompt the user to enter 15 integer values. The program then copies the values onto another array. The condition of copying is that t...
[7 replies] Last: yaa, i sort it out with problem. actually that was my mistake sorry fo... (by HiteshVaghani1)
August 2012 Pages: 1... 2223242526... 45
  Archived months: [jul2012] [sep2012]

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