A Guide for the Beginning CIS Student
Introduction
It's that time again. A new semester is starting and CIS students all over the country are beginning to program. It can be an overwhelming experience trying to decipher syntax while learning to code an assignment effectively. There are many practices I see that cause beginning programming students to suffer through their assignments. I'm going to outline those problems...
User Profile
Collapse
-
Zen and the Art of Requirements Analysis
-
Did you initialize szFilename... I ran the code and seems to work as expected.
I just init szFilename like so...
char szFilename[1024] = {0};
JW -
There's no difference that I've ever heard of. int86 can invoke all DOS interrupts, infact that's what it's designed for. There are BIOS supported interrupts 0-15 with 2 and 9 being exclusive so effectively only 15 IRQ's available. DOS interrupts are generally associated with int21 calls.
Not sure what you mean by overlap in IRQ's/Interrupts??
IRQ's can be shared if the OS/BIOS supports the practice. IRQ 2 and 9 "overlap"...Leave a comment:
-
Zen and the Art of Debugging C/C++ in Linux with GDB
C/C++ Programs and Debugging in Linux
This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from... -
Zen and the Art of Debugging C/C++ in Visual Studio
Introduction
This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results.
Visual Studio automatically...Last edited by jwwicks; Aug 7 '08, 01:00 AM. Reason: Changed Google default thumbnail size s144 to s800 -
I think I may have found the answer on another thread...
http://www.thescripts.com/forum/thread436124.html
It involves the post about a Proxy for the istream_iterato r...
John...Leave a comment:
-
Hello,
Hint: The format specifier gets modified from d to c. So what ASCII character is 65 decimal.
John...Leave a comment:
-
So something like the following would work...
[code="cpp"]
static char m_months[13][10] = {"", "January", "February", "March", "April", "May", "June", "July", "August", "September" , "October", "November", "December"} ;
string month(m_months[n]);
[/code]
Where...Leave a comment:
-
Hello,
Basically just use a do while loop
[code="cpp"]
do{
SomeValue = GetSomeValue();
// Do some totalling stuff here...
// If somevalue != -1
}while( SomeValue != ExitCode);
[/code]
John...Leave a comment:
-
Hello,
Your problem is here with the first while. Unless the "input" is on the last line of the text file I dont believe you'll get a match. Try putting all the lines into a vector of strings. getline doesn't append the next line it overwrites search with the new line.
John...Leave a comment:
-
Reading/Writing Vector of Structs to/from Tab Delimited File
Hello All,
This is a student assignment. So I don't want the complete answer just a hint or maybe a bumb on the head cause I'm doing it the wrong way. Assume I haven't done anything braindead like not include a header etc... I can post the whole code if you like/need it but I'm trying to spare the forum :)
Got a product structure...
[code="cpp"]
struct product {
string id;
string... -
CSS and Link problem
Hello All,
I've been redesigning a site for the Honors Club at Sacramento City College and everythings going well except for a weird problem with links. The last link in a list of links works fine. The first - n-1 links don't work.
The link to the Contact Us Page is here.
I discovered that the following in the Style sheet of the page is causing the problem.
p span {
padding-top:... -
I'll try the -pedantic switch to see if it helps...
P.S.
Tested with the -pedantic switch and no difference in errors...
g++ (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
Thanks,
John...Leave a comment:
-
transform error in g++
Hello All,
I'm getting an error in g++ when I try and compile a cpp file using transform...
Here's the error...
customer.cpp:42 9: error: no matching function for call to transform(__gnu _cxx::__normal_ iterator<char*, std::basic_stri ng<char, std::char_trait s<char>, std::allocator< char> > >, __gnu_cxx::__no rmal_iterator<c har*, std::basic_stri ng<char, std::char_trait s<char>,... -
Just a follow on to ask about style...
I have the following function and it works fine updating the information in the vector of structs. The question I have is should I change the cUpdate reference from *uCust to *f and just update the element in the vector directly without the use of a temp. The do_cust_xxxx functions all take a customer& as an argument. I'm toying with the idea since I don't see anything in C++ that say I can't...Leave a comment:
-
Umm, not quite. I just didn't post the whole main etc.. trying to be brief to spare forum members. The #include <string> is there, it was just that the typedef vector<customer >::const_iterat or should have been just typedef vector<customer >::iterator.
Thanks for the feedback though...
John...Leave a comment:
-
-
Partial Updating of Struct in a Vector
Hello Experts,
This is a student question and I know you could use a list or some other keyed container but they haven't been introduced to the class so they aren't free game so to speak.
So...Given a struct And a vector of those structs is their a way to partially update just first_name and last_name. I can find an account using a simple bool function and find_if but trying to use that iterator causes an error.
...
No activity results to display
Show More
Leave a comment: