Search Results

Showing results 1 to 40 of 67
Search took 0.01 seconds.
Search: Posts Made By: c++noobie
Forum: C Mar 30th, 2009
Replies: 5
Views: 346
Posted By c++noobie
Thanks to both of you for your input. As for the error, it started off as arr1 and arr2 instead of sub1 and sub2 but I changed them to make it more apparent that they are sub arrays of a larger one,...
Forum: C Mar 30th, 2009
Replies: 5
Views: 346
Posted By c++noobie
I'm sorry I quickly brushed over the example on my way out the door. Thank you for your response. Now that I have time to go back and look at it, it is a little more helpful. One more question I...
Forum: C Mar 29th, 2009
Replies: 5
Views: 346
Posted By c++noobie
Thank you, but I had seen something similar to that in what I was reading. What I read was talking about in place algorithms (ones that don't consume extra memory, e.g. no second array for merge...
Forum: C Mar 29th, 2009
Replies: 5
Views: 346
Posted By c++noobie
I recently learned a little bit about sorting algorithm efficiency. I looked at the merge sort and saw how it could be implemented using a scratch array to store the result until it was finished. It...
Forum: *nix Software Jan 30th, 2009
Replies: 1
Solved: Emacs problem
Views: 648
Posted By c++noobie
I figured out the problem, I had misnamed an alias I had created to edit my .emacs file.
Forum: *nix Software Jan 30th, 2009
Replies: 1
Solved: Emacs problem
Views: 648
Posted By c++noobie
I'm running the latest distro of Kubuntu with KDE4.1. I recently installed the emacs text editor. At first everything worked just fine, and I started trying to do a few tweaks in my ~/.emacs file,...
Forum: C++ Jan 10th, 2009
Replies: 8
Views: 502
Posted By c++noobie
Thank you for all of your input. I basically started this whole project to try and do a little learning by experience with class relationships, dynamic memory management, and found a new topic to...
Forum: C++ Jan 7th, 2009
Replies: 8
Views: 502
Posted By c++noobie
Ok, I'm sorry this is so long, but you did ask for my code.
BTW, I'm running this with the default gcc compiler that comes with the binary release of the codeblocks IDE.#ifndef _LIST
#define _LIST...
Forum: C++ Jan 7th, 2009
Replies: 8
Views: 502
Posted By c++noobie
Another quick question. I have a begin() function that returns the head of the list, but I cannot reference it when I try to call it from another list that came into the current list as an argument...
Forum: C++ Jan 7th, 2009
Replies: 8
Views: 502
Posted By c++noobie
Thanks a lot for your help, this clears things up quite a bit. I've started working on a basic_link iterator, I am trying to implement some operators, and I am not sure of an effective way to...
Forum: C++ Jan 7th, 2009
Replies: 9
Views: 346
Posted By c++noobie
Use for loops to print the stars, the spaces, etc. The standard for loop structure is one of the following two

for( int i = 0; i < numberOfTimes; i++ )
for( int i = 1; i <= numberOfTimes; i++ )
...
Forum: C++ Jan 7th, 2009
Replies: 9
Views: 346
Posted By c++noobie
The first thing you need to do is get the number of lines to print, using cin. First, create a variable to hold the number of lines, then read it in from the user.

An example would be
int count;...
Forum: C++ Jan 7th, 2009
Replies: 8
Views: 502
Posted By c++noobie
I am trying to overload operator++ for a type I have defined. Here' s a little explanation beforehand.
I am working on a link_list class that can be used to create dynamic arrays of any type. I...
Forum: C++ Dec 14th, 2008
Replies: 2
Views: 572
Posted By c++noobie
I'm sorry to keep throwing on questions, but I found one more question I have, is there a way to create a standard for operator function? For example, if I want something like this for operator...
Forum: C++ Dec 14th, 2008
Replies: 2
Views: 572
Posted By c++noobie
Ok, I found a fix, I replaced the const link& with a regular link on line 40, but I don't understand why it can't be passed like that to avoid the recreation of the variable. If anyone could clear...
Forum: C++ Dec 14th, 2008
Replies: 2
Views: 572
Posted By c++noobie
I'm trying to create an template of an array class that encapsulates an array of a given type with several methods that are useful but nonstandard to regular c++ arrays. I have created a link struct...
Forum: C++ Oct 23rd, 2008
Replies: 6
Views: 520
Posted By c++noobie
Found it...Thanks so much for all your help Narue. I think I have a better grasp on all of this now.
Forum: C++ Oct 22nd, 2008
Replies: 6
Views: 520
Posted By c++noobie
First of all, thank you so much for all of this help, it's really helping me understand all of this.

Second, I did a lot more looking into it and reading, and I think I came up with something...
Forum: C++ Oct 22nd, 2008
Replies: 6
Views: 520
Posted By c++noobie
I've played around with some inputs and such looking at it from that point of view and it makes sense. I still don't fully understand why it remains in an error state, even if the ignore() is...
Forum: C++ Oct 21st, 2008
Replies: 6
Views: 520
Posted By c++noobie
I have a feeling ya'll get plenty of cin questions here and are quit tired of them, but I have a few that are a little more in depth. I started trying to write my own input stream flush template and...
Forum: Motherboards, CPUs and RAM Aug 14th, 2008
Replies: 4
Views: 893
Posted By c++noobie
Thank you so much for all of your help, I will take that into consideration. I don't get to buy it right this second so I'll have to keep looking. But thanks so much for your help.
Forum: Motherboards, CPUs and RAM Aug 14th, 2008
Replies: 4
Views: 893
Posted By c++noobie
Thanks alot for your help. I had looked at that one, but I didn't think it would be better because the best processor possible is a 2.33 GHz Duo processor with 4MB cache where the other is 2.83 GHz...
Forum: Motherboards, CPUs and RAM Aug 9th, 2008
Replies: 4
Views: 893
Posted By c++noobie
I don't know if this is the right place, but my question is multi tier and I apologize in advance if this doesn't belong here. Anyway, I am looking at buying a new laptop for college. I am going to...
Forum: C++ Jun 10th, 2008
Replies: 6
Views: 15,945
Posted By c++noobie
Thank you all for your help. I found a few further problems that were just slight kinks so I scratched the whole thing and started over but used the same principle. Anyway, I have it all worked out...
Forum: C++ Jun 9th, 2008
Replies: 6
Views: 15,945
Posted By c++noobie
Ok, one more question if you don't mind helping me out. I would like to make it so that if the line is less than 79 characters long, it will check the next line to see if the first word will fit on...
Forum: C++ Jun 9th, 2008
Replies: 6
Views: 15,945
Posted By c++noobie
Thank you both for your help. I followed your advice and did a few extra tweaks, and now my program works to perfection. Thanks again.
Forum: C++ Jun 8th, 2008
Replies: 6
Views: 15,945
Posted By c++noobie
Ok, I was trying to write a program that formats a plain text file to the formatting standards of gamefaqs.com (no trailing spaces and no more than 79 characters per line). To my eyes, my code looks...
Forum: C++ May 13th, 2008
Replies: 4
Views: 671
Posted By c++noobie
I tried using sizeof() and all occurrences returned 4. sizeof(argv), sizeof(argv[0]) and sizeof(argv[1]) all returned four resulting in a size of 1 even though argc was equal to 5.int main(int...
Forum: C++ May 13th, 2008
Replies: 4
Views: 671
Posted By c++noobie
Alright, thank you for your help. What I was trying to do was access the number of elements in the array to iterate the pieces of the char* array into the string* in order to set up the overloaded =...
Forum: C++ May 13th, 2008
Replies: 4
Views: 671
Posted By c++noobie
I have been teaching myself c++ for a little while now and came across something I couldn't figure out. I am trying to figure out how many char*s there are in a char**. In the current program I am...
Forum: C++ Apr 24th, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
Fantastic, thank you very much. I got it all working. I replaced the alias based calls to the c++ code with a function based call and now everything is working exactly how I wanted it to. Thank you...
Forum: C++ Apr 24th, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
Does anyone know if there is a way to catch a c++ scripts main function return value in the bash shell and use it to determine whether or not to run an additional line of bash code? (I can work out...
Forum: C++ Apr 23rd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
I'm sorry, I didn't write that correctly. I didn't mean bash script; I meant bash command. From what I have read, it is not an actual Linux command. "history -c" is actually a bash command that bash...
Forum: C++ Apr 23rd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
For anyone reading this who may be looking for an answer ( or possibly just to let Ancient Dragon know ) I found an answer through pure speculation. I looked at the alias I used to run the program...
Forum: C++ Apr 23rd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
I ran a few other shells to see if a few other variables would be acquired successfully, and oddly, $PWD (the current directory of the open shell) was acquired successfully... even after being run...
Forum: C++ Apr 22nd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
It did indeed return NULL. I've tried looking other places for answers and still no luck. Thank for your help up until now and for any further help Dragon, I really appreciate it.
Forum: C++ Apr 22nd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
#include <iostream>
#include <string>
using namespace std;



int main(int argc,char *argv[])
{
string input;
input = getenv("HISTFILE");
Forum: C++ Apr 22nd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
I am receiving an error, no match for 'operator==' in 'input == 0' on the line input=getenv("HISTFILE");
Forum: C++ Apr 22nd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
I tried to run this
input = getenv("HISTFILE");
cout << input << endl;
It dropped and I received a segmentation fault.
Forum: C++ Apr 22nd, 2008
Replies: 18
Views: 1,694
Posted By c++noobie
I would assume it does. When I run "echo $HISTFILE" (the bash command for displaying variable for those that don't know) in the bash shell, it returns the file that I am intending to reach. For "echo...
Showing results 1 to 40 of 67

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC