Beginners - June 2013 (Page 15)

void Pointers
 
Can someone comment out each line of code? Explain in simple English. // increaser #include <iostream> using namespace std; void increase (void*...
[6 replies] Last: Didn't mean to sound snappy. To clarify, let's expand the line of cod... (by xismn)
by jidder
Is anyone willing to give me help on a game im making
 
Ok so i have multiple problems that are quite large. None are like compiler problems. I have quite a lot of code as well. And all of it is relevant so im not...
[13 replies] Last: It doesn't? (by closed account N36fSL3A)
Removing char from vector of vectors
 
If I have a vector of vector strings. I want to remove all duplicate words in the vector of vectors the contain a certain character. What would be an efficient ...
[4 replies] Last: i think just use member function erase that vector class provides to... (by JackSBU)
Adding an icon to an exe
 
I want to add an icon to the exe of my program, and as far as I can find its basically just create a .rc file with: MAINICON ICON "icon_name.ico" howe...
[no replies]
Question about division.
 
Hey, I have a little question about division of two numbers. For example, if a user enter these two numbers : 30 and 40 30/40=0,75 How can I make my pr...
[3 replies] Last: @chervil you can also do 30f / 40 30 / 40f 30f / 40f (by giblit)
by anhome
Float Data Type
 
As i know float has 8 digit, how about if i want n-digit ? for example: in float, PI = 3.142857 -->8 digit how about if want 10 digit? or 20 digit ? wish so...
[4 replies] Last: Just create a new class for your custom number to start try something ... (by giblit)
by stux16
problem with my bool
 
sasdasd
[1 reply] : Line 35 defines a new variable that is a different variable than the v... (by Peter87)
by Sajeth
trouble with platform for developing my c++ programs
 
guys i m using windows 8..just started learning c++ in my office...In our office we use visual studio c++ 6.0...I think its not compatible for windows 8...pleas...
[1 reply] : Just grab a more recent version. VS2012 was designed for Windows 8. Th... (by ResidentBiscuit)
Removing a string from vector read-in text file.
 
So im creating a 'movie rental machine' for project purpose, and have come across some problems without any success in solving them. It is possible for me to...
[1 reply] : Using erase invalidates your iterator. void MovieList::removeMovie(M... (by cire)
Loop question
 
Hello again, I was just wondering what the best way to create a loop for an input of a number 1-50 would be. I do not want to allow anything under or over t...
[4 replies] Last: not entirely true. You can use && and || operators to check multiple b... (by giblit)
Sign Finder
 
I'm coding a "sign finder", which lets you enter a sign (as an example a letter, an exclamation mark etc.) and then a sentence. After that it counts how many of...
[2 replies] Last: Wow, you really know everything about this, do you? Thanks a lot :) (by GoranGaming)
Insert System or current time into mysql table column
 
I have to send a count of number to mysql database table, with the current time. The current time must be inserted automatically when the count inserted. How to...
[2 replies] Last: Thanks man. Both worked. (by Krishnananthan)
Clarification about memory addresses
 
Hello What's the meaning of a memory address(I am not asking about definition, I know that it is a location in the memory)? For example: 0x22ff04 What...
[3 replies] Last: Exactly. (by Chervil)
OpenGl C++
 
Hi. I'd like to use opengl under Dev-C++. I downloaded and copied files from GLUT, and tried to run a test program. But here's some error: line2-In file includ...
[6 replies] Last: Agreed @ iHutch. fwiw, the tutorial I linked introduces you to shader... (by Disch)
First and Last Name
 
Hello! I've tried to create a program that asks you to enter your first and last name, it then enters your first name on one line and your last on the next one....
[8 replies] Last: And the real answer is not to put any functionality in main(), just ch... (by Jaybob66)
Pointers to Pointers
 
Someone explain what is happening below. • c has type char** and a value of 8092 • *c has type char* and a value of 7230 • **c has type char and a ...
[7 replies] Last: Note that * has different meanings in different contexts. char *p //... (by Thumper)
by dody
wrong output
 
cant someone tell me what wrong with this code? the frequent answer didn't match with the result #include<iostream.> using namespace std; int m...
[2 replies] Last: This is a straight forward adding up exercise, you're inclusion of N,l... (by Jaybob66)
Help Do This! Thanks :))
 
A small airline has just purchased a computer for its new automated reservation system. you have been asked to program a new system. Develop a program to assign...
[4 replies] Last: can you show me the codes and where do i need to put that? because i r... (by axle0309)
by Ganado
do/while loop with output error message problem
 
Hello, I am having difficulty with part of the code. I've only been learning C++ for a week or two, so bear with me. :) Basically, this is the start of a pro...
[10 replies] Last: Okay thanks for the explanation, that is convenient. I changed the 'an... (by Ganado)
problem with manipulators in operator<<
 
Hello all. I write operator: std::ostream& operator<<(std::ostream &out, CDefect &defect) { std::streamsize size = 8; //std::resetiosflags(s...
[3 replies] Last: PS std::setw is the only one of the i/o manipulator that isn't "sticky... (by andywestken)
June 2013 Pages: 1... 1314151617... 49
  Archived months: [may2013] [jul2013]

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