Beginners - January 2010 (Page 13)

by name
Use of -1 in bit mask portable?
 
Hi. I'm new to programming so please forgive me if this is an obvious question. I couldn't find a useful answer with Google. Do all modern computers record s...
[5 replies] Last: Yes, there is a lot of hardware, some modern, that doesn't use two's c... (by Duthomhas)
I need some instructions on this problem
 
Hi everyone, I have a problem to solve, but I have no idea where to start. If anyone can help me with a step-by-step description of what I have to do it will be...
[3 replies] Last: // MIN // Initialize min outside the for loop. you can take the very... (by van)
by Vexx
Gah, problems >.< (1,2)
 
Hello guys, So I am writing a couple functions to print to console, the first one prints single data, the second one prints arrays of data. For some reason t...
[26 replies] Last: I think that it is OK for OP, as a college student, to proceed with do... (by jsmith)
by kole
undefined reference to `mysql_get_client_info
 
Hi, I am trying to compile following, very simple C code to connect mysql database: #include <stdio.h> #include <my_global.h> #include <mysql.h> int ...
[no replies]
i want this answer rapidly plz (1,2)
 
what is the difference between stack and queue and linked list
[22 replies] Last: http://en.wikipedia.org/wiki/Binary_tree (by Bazzy)
by Ray B
Setting an array equel to another array
 
I have a problem setting an array equel to an array that I retrieve from memory (using boost library). First I could imagine that the array that I get from the ...
[6 replies] Last: Or you can use strcpy_s(), which checks that the 'to' c-string can fit... (by wasabi)
by cams91
factorial of negative integer
 
here's my program. my problem is that, everytime i put a negative integer the ouput is 1. how can i make it a negative ouput?? for exmple, input: -4 ou...
[8 replies] Last: np, also note that the program does not validate input, so if the user... (by gcampton)
by Raf Sa
A Begginer to C++, and in need for some guidance
 
Good Day, My name is Raf and I'm from Saudi Arabia. This is my first semester studying C++, and I really love it but I have a problem that I searched for a so...
[7 replies] Last: Bazzy puts up an exercise.. i think the bunny exercise there is really... (by blackcoder41)
typedef compilation error
 
Whenever I try to build my program, (code snip here): using namespace std; typedef vector<int> bignum; I get this: error: expected initializ...
[3 replies] Last: cool~ (by phikaa)
My First Program
 
I know it's a little basic but it works and it does get harder as they go. I made this a while back so It works fine If you want to take it apart and use it for...
[no replies]
Heap Corruption!?
 
I have a small program that compiles and runs, but after execution, Visual Studio is giving me the following error message: Windows has triggered a breakpoint...
[3 replies] Last: Well, that explains it. Originally it was allocated from the heap and ... (by davermont)
by GRH
Short Question
 
If two algorithms have the same order of complexity, does it matter which one you use? I'm leaning towards yes, but I can't really explain why, they would both ...
[9 replies] Last: One algorithm might loop through n elements once (n) and another might... (by moorecm)
Pointer to an array of pointers.
 
I am trying to figure out a run-time exception I get on line 53 below. I am trying to create a new Node object using a pointer to an array of Node*. The Node* a...
[7 replies] Last: Thanks, that constructor was the problem. (by davermont)
My first program
 
Hey this is my first completed program. Very basic, but I tried to incorporate serveral aspects into it. Any advice/tips/errors you see for me to make improveme...
[8 replies] Last: Glad to be of assistance. (I've said that a total of three or four ti... (by tummychow)
Type convertion error in VC++
 
This is my code: int num; int* p = &num; const int** pp = &p; I use VC++. The third line generates a compilation error: "cannot convert from int** to ...
[5 replies] Last: Think of the const not as applying to the pointed-to data, but to the ... (by helios)
array of objects using dynamic memory allocation
 
Hi I have a homework problem I would need a hint for. I need to create an array of objects using dynamic memory allocation. The objects use a constructor th...
[7 replies] Last: Gee That was an embarrassing error... Super thanks for the quick res... (by hadoque)
Classes
 
Design and implement a class dayType that implements the day of the week in a program. The class dayType should store the day, such as Sun for Sunday. The pro...
[1 reply] : I hope you don't expect anybody to do that for you. That withstanding... (by tummychow)
Append Records
 
Anyone can guide me? I wish to append one more record to the sample.txt Eg, 5 Thai Pon_Mak 0.0 0.0 0 Fail #include <iostream> #include <fstream...
[3 replies] Last: void appendR (fstream& infile, char filename ) { //why use bina... (by blackcoder41)
by tr6r
repel cusor
 
I would like to create an application that can be incorporated into a simple HTML web page I am creating. The general idea is that the web page makes an offer ...
[7 replies] Last: Use this index, it's the best I know of, and is what I use when my boo... (by gcampton)
argument of type `int (CaloCell::)()' does not match `int'
 
Hey guys, Pls help, I'm trying to compile the following program: #ifndef CALOCELL_HH #define CALOCELL_HH class CaloCell { private: double e...
[3 replies] Last: ...and the semicolon should not follow the body of the constructor. (by moorecm)
January 2010 Pages: 1... 1112131415... 24
  Archived months: [dec2009] [feb2010]

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