General C++ Programming - November 2012 (Page 21)

by Bojana
Conversion of obj to dae file C++
Hello everyone, I am quite new in the C++ language and I have a question. I would like to write a programm that converts the obj file to a dae file (COLLADA). C...
Nov 19, 2012 at 1:24pm
[3 replies] Last: Yes, this is a request to transform the 3D data file format obj to 3D ... (by Bojana)
Accessing members of an array using members of a second array
I've been working on a c++ graphics program, and I've run into an interesting problem. the basic idea is this: mesh.normal = Normal[ normalIn...
Nov 19, 2012 at 1:12pm
[7 replies] Last: crash could be because of either 'mesh.normal ' or 'normalInd... (by tgiec)
File Display Program
I have a program challenge for homework that asks the user for the name of a file. The program should display the contents of the file on the screen. If the fil...
Nov 19, 2012 at 12:48pm
[3 replies] Last: while(!fin) { cout << "Error Opening File! Re-enter File Name: " ... (by Imadatobanisa)
rainfall dryest and wettest
#include "stdafx.h" #include <iostream> #include <string> using namespace std; int getRainfallData(int , string , int); int getRainfallData(int rainfall ,...
Nov 19, 2012 at 11:56am
[2 replies] Last: return rainfall ; Also it causes a crash. (by Imadatobanisa)
A Function inside a declared namespace will not work.
1. I have this class declared inside a namespace and is in a header file called "date.h" as shown. #include <cstdio> #include <ctime> #include <cstdlib> ...
Nov 19, 2012 at 9:43am
[4 replies] Last: Making class is same as making a brand new user-defined "type". Compil... (by kg1992)
by hudak
half program is working it is working for firs two not for last 2 it stop working after or during secong do while second do whi
/* Qamarulhuda Khairullah */ /* EGR 126 Computer Programming for Engineers */ /* Dated: 11/1/2011 */ /*LAB # 3 Develop and run a C++ program to perform the...
Nov 19, 2012 at 9:31am
[1 reply] : do ... while loops are not correctly the way you use it here. Use swi... (by coder777)
C++:C-Style String?
I'm writing a program that encodes. It must first read the data from the file into a large c-style string. Then it must iterate through the string and convert t...
Nov 19, 2012 at 9:30am
[3 replies] Last: C style string is also called Null-terminated string, which means if y... (by kg1992)
C++ input validation
During winter when it is very cold, typically, everyone would like to know the windchill factor, especially, before going out. Meteorologists use the following ...
Nov 19, 2012 at 8:12am
[10 replies] Last: It is working now after getting rid of the mph % 3!=0 thank you!... (by nyaeggy)
by tanny
Assistance needed desperately :(
I just started out with C++, really a beginner here. And is really desperate for help now. Would really appreciate if any kind souls can help. Really sorry, but...
Nov 19, 2012 at 7:28am
[5 replies] Last: Recheck your structure. I pretty sure some of defined functions are mi... (by Imadatobanisa)
getline() help
I'm working on this assignment, and my teacher asked us to use the getline() function. I'm still not sure how to use it because when i try and compile this it...
Nov 19, 2012 at 6:44am
[4 replies] Last: I figured it out, I had to have let as an array rather than a varia... (by mckizzlealmond)
by lmd141
Inputting data from text
Hi there, I'm trying out something new too me (reading data from a text file) and are having a few problems. The text file is like this: 2.0 16.04 147.9 ...
Nov 19, 2012 at 6:43am
[2 replies] Last: Thanks very much, I sorted it! (by lmd141)
Dynamic Programming in C++
Is there any website/resource to learn Dynamic Programming in C++?
Nov 19, 2012 at 6:32am
[no replies]
Start with c++?
Hello, is it possible as a 15 year old to learn c++ as my first programming language ? I have no prior experience in scripting or programming but i really wanna...
Nov 19, 2012 at 6:28am
[5 replies] Last: First, rethink yourself. Making a program is the same as solving a ... (by Imadatobanisa)
by vinu
Best way to compare structure members
Hi.. I am writing a console program which will take a set of data and compare it to the database and reports if each parameter has changed or not. The pr...
Nov 19, 2012 at 4:21am
[3 replies] Last: Any way you can think of that would tell differences would work, turni... (by CatmanFS)
Prims Algorithm Question
Hey Guys, Have a bit of a confusing question regarding Prims algorithm. Does Prim's Algorithm work for directed weighted graphs for which the weights are al...
Nov 19, 2012 at 3:01am
[1 reply] : ¿how do you intend to modify it to apply it to directed graphs? (by ne555)
Allegro 5 problems
*NOTE THIS IS IN VC2010; I have been recently trying my luck with allegro 5 and, although simple code works, even drawing and moving primitives, more complex t...
Nov 19, 2012 at 2:24am
[2 replies] Last: *EDIT: I reloaded the symbols in the debugger and now I get this : ... (by Theodor Purcaru)
String to Decimal
Hello everyone..... I had a question how I'm converting a string to decimal. It works fine but when I try to convert the string to a decimal number it reads it ...
Nov 19, 2012 at 1:19am
[2 replies] Last: This code is unnecessarily complex: for(int c = 0; c < binary.size()... (by vince1027)
yes or no loop
ok so there is a question that tells me to make user chooses whether he wants to try a program or not... and that program is to see whether the number he insert...
Nov 19, 2012 at 12:06am
[5 replies] Last: @Omar I can't do the loop.... quiet confusing.. How did you get on... (by TheIdeasMan)
How to change where a pointer points to? C++
Hello again, I have yet another issue that I can't seem to get around. I have a class called node, which has two private fields: a data field, and a link ...
Nov 18, 2012 at 11:45pm
[7 replies] Last: Thanks Vince! (by jazztrmpter)
November 2012 Pages: 1... 1920212223... 51
  Archived months: [oct2012] [dec2012]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.