Ok so I've made a simple macro in vs2005 to open a new .cpp file, no problems. What I need, though, is a desktop shortcut to do this. Does anyone know how to export a macro like this? Is it even...
Type: Posts; User: omishompi
Ok so I've made a simple macro in vs2005 to open a new .cpp file, no problems. What I need, though, is a desktop shortcut to do this. Does anyone know how to export a macro like this? Is it even...
It would be great if I could use the container you mention, but I have to do it by hand :(
I've got the concept of blurring an image down, but I have not a clue as to how to implement it. I know it starts with manipulation of a pixel and it's eight neighbors. I'm using a .pgm as an...
A great way to begin is to pick up a book or read online examples and tutorials. If your school has ANY programming courses definately take them. As LinuxCoder said it is an unlimited field for...
Hey guys i'm having a problem with my formatting of 2d array output. I'm building this for a .pgm image--say the code is
for(int row = 0; row < numrows; row++)
for(int col = 0; col <...
I found a better way..thanks for all the help everyone
void DeleteNode(Node* head, string targettitle)
{
if(targettitle == head->data.title)
{
prev = head;
head = head->next;
}
Magos: thanks for the example.
ChaosEngine: I've definately found that there is an easier way to everything I had done previously. I'm currently in the highest level "programming" course at...
I'm not familiar with the <list> library at all, but my professor insists that we do all this by hand....
Hey guys I'm finally understanding linked lists to an extent, but I ran into this problem. Everything works fine until I go to delete a node from the list.
#include <iostream> //for standard...
void CreateList (nodeType* &head, ifstream& infile)
{
head = NULL;
while(infile)
{
for(int i = 0; i < 10; i++)
infile >> head -> name[i];
}
}
I'm trying to get some data from a text file into a linked list using pointers so I can print the data out. Here's the code I have.
#include <iostream>
#include <fstream>
#include <string>...
Thanks for the help. Those pointers are a little more advanced than I. Is there another way?
I've run into a problem trying to print this list. I'm getting the list from a text file and loading it item by item like this
#include <fstream>
using namespace std;
const int...
7stud, thanks for the help. How would I go about adding them up though? I can't use saws.totalPrice() + hammers.totalPrice() + nails.totalPrice() right? Please enlighten a novice.
Thanks for all the help.
Is there any way I could go about doing a total sum of the inventory of these items simply? For example, if I had a function to find the dollar value of each item and...
Ok guys, need a little help. I'm buidling 3 objects below and I need to let the user initialize them to certain values. How can I keep the quantity from erasing everytime without building separate...
So Enahs how could you pick the different parts out?
Thanks everyone for all the help
A good beginner's example to use when trying to get info from the text file is the getline() or simply the infile commands.
Since you know how to open the text file
e.g ifstream infile;...
Could it be more easily done with division and modulus?
So I ran into a problem the other day and need to separate out a large number into small number groups for example:
945689234989910
needs to be split into
9456|8923|498|9910
and each...