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

File Reading
 
Hi, I'm trying to iterate through a file and output each number as a double separately so I can input it into a multidimensional array and perform matrix ope...
[1 reply] : well, you never get out of the loop on line 6 because you set i to 0... (by coder777)
Freaky overloaded functions for Lottery Program VERY HARD
 
Needing a little assist if anyone knows how to do this? I have my homework complete and working great except for the wording in report. 5 random in array and 5 ...
[3 replies] Last: The formatting is only this way now so I can see it easily when scroll... (by rkstengel)
Very Simple code why is it not working
 
I have a text file TestFile1.txt and a veru simple code that came came as an example at cPlusPlus.com I tried fscanf to get the data out of my file but I c...
[5 replies] Last: You're using fscanf. fscanf is for formatted extraction from text fil... (by cire)
noob like
 
so i need to insert the options into a system command, anyone know a way to do this that will work? #include <iostream> #include <string> using namespac...
[14 replies] Last: could i have an example? sorry this is a new concept (by Echo773)
Need help with this Program, why won't it work?
 
#include<cstdlib> #include<iostream> #include<fstream> #include<iomanip> using namespace std; int main() { int seat ; int k, n; ifstream myfile; m...
[3 replies] Last: If you edit your post so it uses code tags - the <> button on the ri... (by TheIdeasMan)
Problems about AVI files
 
I'm from a equipment get two kinds of data, one kind is video data, one kind is audio data, I want to make the two kinds of data storage to AVI file.. Encodi...
[2 replies] Last: Thank you, I will go to study the Windows function.. (by shixiyu123)
TrashCan operator overloading homework
 
My assignment for class was to create a class called trashcan and overload it. i created the program, but im having trouble running it because i have some error...
[1 reply] : but im having trouble running it because i have some errors i do not ... (by TheIdeasMan)
Functions Help! Beginner Codelab C++
 
Some Useful Functions: Later on you will write a utility program mw that calculates the molecular weight of a molecule based on its chemical formula. In t...
[2 replies] Last: Thanks alot for the comment.... I left out a number (0) after that las... (by dougok07)
Template/Macro constructor problem
 
How can I do a constructor for a position with 1000 dimensions just with/or macro preprocessing. Here is my code, many thanks to you all (PS I don't wan...
[1 reply] : I've just seen variadic template. I'm very tired, but I'll see more to... (by ianLabbe)
I had this
 
I just need some help to debug this program. I thought I had it done and I'm having problems with my output. The issue is that my words contain 75 words and wh...
[12 replies] Last: gOT IT THANKS@!!!! (by jlillie89)
parallax techniques?
 
I've been trying to find a good c++ tutorial on Parallax techniques but have been unable to locate anything particular helpful, I was just wondering if anyone k...
[4 replies] Last: Ah the first one news it and tells it were to find the file and what t... (by programmeraie125)
by Yus
Reading in strings and int from file
 
HI!! i HAVE CREATED THIS PROGRAM: struct database //GLOBAL TYPE { string name; int scores; float weight; }; void readData(d...
[no replies]
Predefined Data
 
I was just wandering about whether the values such as GLOBAL_H defined at start of headers is actually included in the memory of the compiled app or not.
[5 replies] Last: Thanks, I was thinking that those guards were going to bloat my app un... (by awsdert)
Making a templated stack
 
I have created a separate class in a separate file ("stack.cpp") to help me with using a stack for my main program that evaluates postfix equations. I want to u...
[4 replies] Last: First of all, you guys are incredible. Thank you so much. Also, I noti... (by oudavid1)
unable to compile VS2012 ultimate win8
 
Visual Studio 2012 ultimate on win 8. Was able to get it to work (mostly) by fixing the reg attributes, but,... - (and this is where my lack of skills begins...
[2 replies] Last: LB, Tnx. Yes, and sorry to say that I'm seeing strange activity there... (by Incis B)
by VanVan
Help with id3lib
 
Hi all, I'm working on windows with Visual Studio. I'm trying to work with id3lib in order to read and write id3 tag (songs tag). I have two problems, firs...
[no replies]
by fra
Segmentation fault (core dumped)
 
Hi everyone :) i'm writing a scheduling programm and i can't solve this problem: when i run the input driver(which is suppose to initialize a vector of objects...
[4 replies] Last: I've found the problem!! It's the copy constructor MachineFamily(const... (by fra)
Loading
 
The way I've loaded data so far has been through functions, and passing a good amount of variables to a lot of functions (very tedious, although incredibly effi...
[5 replies] Last: @ stewbond You forgot about the part where I should declare it in a he... (by IWishIKnew)
by SMA01
How to define function...passing values?
 
I am writing a program that executes two operations on a structure distanceType which is compose of the int members: feet, yards, and miles.The function convert...
[1 reply] : In my opinion, most programmers can't write a complete program then pu... (by SamuelAdams)
by Lebron
Subsets in C programming, Where is the problem_
 
Hi, I was trying to write a C program that lists all of the subsets of the set {1,2,...,n}. The program should be ask number of elements in the set from the key...
[no replies]
November 2012 Pages: 1... 2728293031... 51
  Archived months: [oct2012] [dec2012]

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