General C++ Programming - November 2011 (Page 45)

list<...>::iterator question
 
I have a list of triangles. Each triangle points to three other triangles. Is there a way I can have a second iterator directly access the triangles in the li...
[3 replies] Last: Just do tritr2 = tritr. I haven't understood you again. (by Syuf)
language name from language id
 
hi.. i've a language identifier and now i need to get the language name from that identifier. for example(id=1041 and language for this id is japanese). how to...
[5 replies] Last: #include <iostream> #include <fstream> #include <string> #include <m... (by Syuf)
by Tatipu
How do you create this function?
 
createItem (inv.item , "10300", "Nutella", "Ferrero", 10); How do you declare typ inv.item ? I get the rest are char (Excluding int at the end) but my ...
[2 replies] Last: Maybe you should give us the declaration of the class (or struct) inv.... (by Jessy V)
Can't get program to compile
 
Got it fixed:)
[2 replies] Last: Maybe your problem would be easier to solve for us if we could see som... (by Jessy V)
void function not ignored as supposed to be
 
hey, i am trying to create a program to multiply two matricies, i am very close, just this one thing stopping me, i get an error on line 16 & 17 (void display b...
[2 replies] Last: yes! it works, cheers man, thanks alot, i knew it would be something s... (by Xendraw)
writing in binary file in c++
 
Hi folks, I had created a class for student. This is the class. class student { int rollno,marks; char name ; public: void show(); ...
[no replies]
by mdoors
Linked Lists
 
Ok so i'm trying to write a function that will delete the first node in the linked list and headptr will point at the new first node, but i keep hitting segfaul...
[4 replies] Last: @ helios thanks for the help! sorry to get back late but it did work o... (by mdoors)
Help Please - C++
 
Hi every one, I have assignment that I am struggling with. Can anybody help me? The Purpose of the assignment: To evaluate the performance of the vector ...
[1 reply] : Ok so I am not quiet sure but I believe I figured out most part except... (by closed account NC5fSL3A)
by Tatipu
Structs and C-Strings
 
Alright so I have an assignment where I can basically only use functions from the string class and the basic objective of my program is to create an inventory w...
[2 replies] Last: Thank you! (by Tatipu)
calculate the % difference between two numbes
 
I want a function that returns the the % differnece between two numbers. I got the formula from this website: http://www.ehow.co.uk/how_6331196_calculate-perc...
[6 replies] Last: Use the unary negation operator to flip the sign on a number. [code f... (by Duthomhas)
using functions/procedures and arrays
 
*****This is the program. I can't figure out how to enhance the program using functions/procedures and arrays. I trying to write a program that reads a set ...
[3 replies] Last: I'll help you out :) #include <iostream> using namespace std; int ... (by lothrodel)
What is the best way to create a 3D game map?
 
Hello all, I was wondering what the best way to create a 3D game map would be... At the moment, I plan to use an array of block objects which all must b...
[6 replies] Last: SFML+OpenGL is a good way to go. SFML is basically a replacement for t... (by bcthund)
by squik
Help with leap Year prgram please
 
#include <cstdlib> #include <iostream> #include <cmath> using namespace std; bool leapYear(); int Year; int main(int argc, char *argv ) { // ...
[2 replies] Last: Remove the ; after the if condition in leapYear ;) (by Kenneth7)
Find an array index before and after a certain value
 
Alright, just like the title says I am trying to find the index of an array's value that is before and after a users chosen value. I know this sounds confusing....
[3 replies] Last: the second if statement uses lowerAngle + 1, are you 100% sure lowerAn... (by ceruleus)
Quick Help with my HW?
 
My friend referred me to this site and wanted to know if you could find out whats wrong with my homework and why its wrong? #include<iostream> using namespa...
[1 reply] : int getNumberOfPatron(y) Remove the y and it should work fine (by Kenneth7)
Writing Hex into data file with given offset
 
I am pretty new to dealing with hex in programming, and have been running into some problems. I now have no problem reading the file where I want to, but wri...
[no replies]
Get key (1,2)
 
Hello. I'm new enough to be called a beginner, but i have a good understanding of C++ so far. I'm creating a game but i dont want it to make you have to type ...
[32 replies] Last: ok. Thanks guys! Yall were a real help! I appreciate your time and ... (by IWishIKnew)
by kumard
Reading specific data from a file
 
I have a text file (say "data.txt") that contains some data in different columns. Columns are separated by tab. I want to read numeric data from 3rd column (or ...
[4 replies] Last: @kumard Try this. #include "stdafx.h" #include <iostream> #include ... (by whitenite1)
build boost library for Windows in Eclipse
 
I has been trying to get boost into Eclipse. I googled some posts and it seems I need to build the binaries from source files. One step I need to take is to ent...
[5 replies] Last: Thanks. I have got it to work already. (by marlonmin)
Output question please
 
I have 2 codes that I need a screenprint of them when they show up on de command prompt, Im just having problems with my pc that my command prompt dosnt want to...
[1 reply] : This is not an assembler forum, please post at http://www.asmcommunity... (by strongdrink)
November 2011 Pages: 1... 4344454647
  Archived months: [oct2011] [dec2011]

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