Forum: Assembly
Jan 24th, 2007, 1:17 PM
|
|
Replies: 0
Views: 320
assembly questions
this is one of the first code examples i've used to take a peek into assembly programming. this one i can't quite figure out. basically, i have made a X.txt file that has coordinates of points that...
|
Forum: C++
Nov 25th, 2006, 10:13 AM
|
|
Replies: 2
Views: 143
c++ classes
why do methods belong to objects only logically, and not physically?
|
Forum: C++
Nov 18th, 2006, 4:48 AM
|
|
Replies: 1
Views: 96
dealloc linked list
this function deallocates a linked list. but it deallocates everything, including the head of the list.
how can i make it deallocate everything besides the head?
void deallocate()
{
tstudent...
|
Forum: C++
Nov 13th, 2006, 11:24 AM
|
|
Replies: 1
Views: 100
file managing problem
i wrote a program which takes student data and inputs them into both the main and index file. it let's you enter the data manually (no rand), prints all the data, let's you search the database by a...
|
Forum: C++
Nov 9th, 2006, 6:25 AM
|
|
Replies: 10
Views: 234
|
Forum: C++
Nov 6th, 2006, 1:52 PM
|
|
Replies: 2
Views: 94
|
Forum: C++
Nov 6th, 2006, 10:57 AM
|
|
Replies: 2
Views: 94
input control
if i write the code like...
int number;
cout << "Enter a number: "; cin >> number;
while(!cin)
{
cin.clear();
cin.ignore(100,'\n');
cout << "Enter a NUMBER: " << endl;
cin >> number;
};
|
Forum: C++
Nov 5th, 2006, 11:21 AM
|
|
Replies: 10
Views: 234
|
Forum: C++
Nov 3rd, 2006, 8:39 AM
|
|
Replies: 10
Views: 234
so i was on the right track huh? :)
well, i got...
so i was on the right track huh? :)
well, i got some slides from my university professor, there are some examples of code, but NO explanations whatsoever. so that's basically where i stole the code....
|
Forum: C++
Nov 3rd, 2006, 7:19 AM
|
|
Replies: 10
Views: 234
|
Forum: C++
Nov 3rd, 2006, 7:05 AM
|
|
Replies: 10
Views: 234
|
Forum: C++
Nov 3rd, 2006, 7:01 AM
|
|
Replies: 10
Views: 234
work with files (fstream)
i've been trying to make a really simple program work. i want to input a few lines into a text file called text1.txt, but i get all kinds of errors after compiling this bit of a code. errors are such...
|
Forum: C++
Oct 31st, 2006, 4:30 AM
|
|
Replies: 14
Views: 282
one more thing about doubly linked lists. i've...
one more thing about doubly linked lists. i've written a program that allows you to add new nodes to either beginning or end of the list. if i call the function for adding a node to the beginning of...
|
Forum: C++
Oct 30th, 2006, 4:57 PM
|
|
Replies: 14
Views: 282
|
Forum: C++
Oct 30th, 2006, 1:22 PM
|
|
Replies: 14
Views: 282
yea, I said exam, but in that case, everything...
yea, I said exam, but in that case, everything i've ever asked on this forum could be considered as my homework. i'm simply trying to get better understanding on things that i think i should know...
|
Forum: C++
Oct 30th, 2006, 1:01 PM
|
|
Replies: 14
Views: 282
first of all...this AIN'T no homework.
ok now,...
first of all...this AIN'T no homework.
ok now, about adding a new element to the end of a doubly linked list, i could explain it but not very precisely.
so, in void InputEnd(element *list), first...
|
Forum: C++
Oct 30th, 2006, 4:16 AM
|
|
Replies: 14
Views: 282
linked list & binary tree questions
hey guys. i've been studying a bit of theory on c++ linked lists and binary tree for an exam. now, there were some examples for doing different stuff but no theoretical explanations.
so how would...
|
Forum: C++
Oct 20th, 2006, 8:32 AM
|
|
Replies: 4
Views: 132
|
Forum: C++
Oct 20th, 2006, 5:58 AM
|
|
Replies: 4
Views: 132
linked list and while()
when reading the linked list, why do all examples that i've managed to find use the while() loop instead of the iteration if() ?
|
Forum: Assembly
Oct 20th, 2006, 5:34 AM
|
|
Replies: 1
Views: 250
assembler code
i'm using EASy68K simulator here, and was wondering if anyone might know where i could download some simple programs for this assembler to study the code.
i haven't found any webpages so if you know...
|
Forum: C++
Oct 17th, 2006, 10:32 AM
|
|
Replies: 21
Views: 402
|
Forum: Software Design and Algorithms
Oct 17th, 2006, 10:28 AM
|
|
Replies: 6
Views: 238
chess algorithm
would anyone happen to know any good sources, such as web sites, books or whatever on computer chess algorithms?
i'd like to do a seminar for a university subject, and i thought this would be an...
|
Forum: Coder's Corner Lounge
Oct 17th, 2006, 10:22 AM
|
|
Replies: 30
Views: 556
|
Forum: C++
Oct 16th, 2006, 9:41 AM
|
|
Replies: 4
Views: 136
literature on "linked lists"
hey guys,
could anyone point me a good book for c++ beginners with good explanations on linked lists. or a web page with tutorials or something would also be fine
i had a programming class today...
|
Forum: C++
Oct 15th, 2006, 5:58 PM
|
|
Replies: 2
Views: 108
|
Forum: C++
Oct 15th, 2006, 5:02 PM
|
|
Replies: 2
Views: 108
pointer to function
ok now, i'm trying to figure how all this works. so here's the whole code.
#include <iostream>
#include <math.h>
using namespace std;
double square(double x){
return x*x;
};
double cube(double x){
|
Forum: C++
Oct 15th, 2006, 11:26 AM
|
|
Replies: 9
Views: 191
|
Forum: C++
Oct 15th, 2006, 9:35 AM
|
|
Replies: 9
Views: 191
|
Forum: C++
Oct 15th, 2006, 8:18 AM
|
|
Replies: 6
Views: 93
|
Forum: C++
Oct 15th, 2006, 8:14 AM
|
|
Replies: 9
Views: 191
|
Forum: C++
Oct 15th, 2006, 8:01 AM
|
|
Replies: 6
Views: 93
|
Forum: C++
Oct 15th, 2006, 7:43 AM
|
|
Replies: 6
Views: 93
|
Forum: C++
Oct 15th, 2006, 7:34 AM
|
|
Replies: 6
Views: 93
strcpy and memcpy
i would like to know, how do you compare memcpy and strcpy as for copying elements from character arrays?
i'm familiar with the fact that memcpy copies memory blocks, and that i need to input the...
|
Forum: C++
Oct 15th, 2006, 7:11 AM
|
|
Replies: 9
Views: 191
ooh yea i understand now.
i know this is just...
ooh yea i understand now.
i know this is just an example that we got on our programming class, but how could someone put this copy of data in student into good use when writing a program code? i...
|
Forum: C++
Oct 15th, 2006, 5:49 AM
|
|
Replies: 9
Views: 191
struct question
in this code sequence, i don't know what this "s2" is for.
i understand that array_s[100] means that there are 100 structures with below written variables. but what is this "s2" for? could someone...
|
Forum: C++
Oct 12th, 2006, 3:38 PM
|
|
Replies: 6
Views: 228
|
Forum: C++
Oct 12th, 2006, 9:17 AM
|
|
Replies: 6
Views: 228
|
Forum: C++
Oct 12th, 2006, 7:12 AM
|
|
Replies: 6
Views: 228
|
Forum: C++
Sep 9th, 2006, 2:31 AM
|
|
Replies: 12
Views: 394
That's true about the student id, it should...
That's true about the student id, it should better ask for a student's name. I'm slowly getting the hang of struct. i was upgrading the code whole night yesterday, working mainly on the algorithm...
|
Forum: C++
Sep 8th, 2006, 6:19 PM
|
|
Replies: 12
Views: 394
|