Beginners - January 2014 (Page 21)

C++ simple OpenGL, WinXP support?
 
Hello, I want to write (and learn) a simple-as-possible OpenGL program, using the latest version of OpenGL that is fully supported by WinXP. As far as DirectX...
[6 replies] Last: Am I not understanding something? Yes, mainly that when a program is... (by Computergeek01)
by enemy
What is the value of "i"-PLEASE URGENT!!!
 
Write your question here. /* sscanf example */ #include <stdio.h> int main () { char sentence ="Rudolph is 20 years old"; char str ; int i...
[5 replies] Last: enemy, there is an abundance of reference material for C++ and the var... (by MikeyBoy)
Replace the text numbers string in a txt file using C++.. Help Me..
 
For example: Before Document: hai hello my daily salary is two thousand and five and your salary is five billion. my age is twenty-five. After Do...
[1 reply] : The easy way to do this is to come up with a number of easier steps to... (by ShodanHo)
Multi-dimensional arrays, pointer-to-pointer method
 
Hi guys! So I get that a two-dimensional array, when created using a pointer-to-pointer method, is not laid out in memory contiguously, as in the case when t...
[1 reply] : Remember the operator precedence rules: p_p_x is same as (p_p_x )... (by keskiverto)
by enemy
IDEONE input -... textarea???
 
Hello! Please, can someone help me to manage this in IDEONE usig input? MANY THANKS!!! #include<iostream> using namespace std; int main(){ cout<...
[2 replies] Last: Fine!!! Thanks!!! (by enemy)
by enemy
What is LINE here?
 
Hello! Is here "line" just identificator for a string? string line; ifstream myfile ("example.txt"); if (myfile.is_open()) { while ( get...
[3 replies] Last: Thanks! (by enemy)
changing letters value and binary conversion
 
so i'm attempting to change the value of chars (a-z, and 0-9) to 0-35. (a is 0, z is 25, 0 is 26, 9 is 35) can someone give me some help on how to do this? woul...
[9 replies] Last: > its now freezing no matter what i do and i can't tell why... The c... (by JLBorges)
by hilft
set_union problem
 
My compiler says there is an error "instantiated from here" which I have no clue what it means. Can someone explain what is wrong with the coding? #incl...
[1 reply] : > error "instantiated from here" which I have no clue what it means th... (by ne555)
Please help
 
Need help on a program I have to write for class. It is a "player vs computer" game of "23". The player moves first by withdrawing 1-3 toothpicks. The rules for...
[1 reply] : Personally I would have a bool that keeps track of if it is currently ... (by Hippogriff)
dont understand "input.size()"
 
I received this code as help for formatting two arrays to print out into two columns. This code worked perfectly and solved my problem, but I don't completely ...
[4 replies] Last: Wow! Thanks for the help all! Looks like I've got some reading and le... (by Khillz3000)
CYK Algorithm, Problem in Vector<strings>
 
Problem in the for loop starting on 68th line of code. Please kindly rectify!! #include<iostream> #include<stdio.h> #include<string.h> #include<vector> #i...
[6 replies] Last: what should I do to not make an array on the stack from a variable wh... (by cire)
Reading from a stream
 
Hi guys :) Does reading from a stream change the stream? If so, how? Thanks!!
[1 reply] : Yes, reading from a stream changes the internal state of the stream. T... (by LB)
Floating points within range and strings in Switch statement
 
When I enter anything that is a floating point within the range of 0-5 (like 1.7) or any string (like "orange"), it runs forever, and each iteration it displays...
[1 reply] : 1.7 cannot be read into an integer, so the read operation fails withou... (by LB)
Class object not taking parameters?
 
So i made a class called Sprite, it takes the following parameters(this is using the SDL api but i dont think that has anything to do with the problem): //C...
[1 reply] : Looks like visual studio was simply confusing me as to what the constr... (by Penanito)
by hilft
deque question
 
I get a compiler error and it says " no matching function for call to 'std::deque<int>::insert(std::deque<int>::reverse_iterator, int)'" I don't quite understa...
[2 replies] Last: insert() takes deque::iterator and a value. You're trying to pass dequ... (by Cubbi)
by b1gzz
signed variables need to be specified?
 
I'm reading a C++ book, and I'm on the part of the variables. My question is: do we need to specify a variable to signed or the compiler does it by default? ...
[3 replies] Last: Thank you very much. (by b1gzz)
Random in Cgl?
 
Hello, im trying to make a simple cgl game. but i just cant find how to give a random number to a int in CGL can someone help me out? i want to give the d...
[4 replies] Last: > is there a more simple way? Difficult to find something simpler tha... (by JLBorges)
const member functions
 
Hi guys :) Can someone please explain the const modifier in the following line of code: std::string isbn() const {return this->bookNo;} I know that it ...
[3 replies] Last: Fantastic! Thank you both!! (by ValerieChiang)
Help with Programming Project!
 
I'm working on a Programming Project from the Absolute C++ book, in Chapter 18. I have the following code, and I need to rewrite it so that it throws an except...
[4 replies] Last: You could create an extension to std::exception and throw an instance ... (by IWishIKnew)
by b1gzz
Returning values from a void to integer
 
So, I was reading a book and it said if I had a limited variable (not a global variable) from a void, I could also use it in an integer without making it a glob...
[3 replies] Last: Thank you Mutexe and Stewbond for your replies, they really helped me.... (by b1gzz)
January 2014 Pages: 1... 1920212223... 44
  Archived months: [dec2013] [feb2014]

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