Posts
 
Reputation
Joined
Last Seen
Ranked #633
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
61% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
2 Commented Posts
~44.1K People Reached
Interests
C++, Lightwave 3D
Favorite Forums
Favorite Tags

111 Posted Topics

Member Avatar for JoBe

Hello ladies and gents, Chapter 3 exercise 3-1: [quote]Suppose we wish to find the median of a collection of values. Assume that the we have read some values so far, and that we have no idea how many values remain to be read. Prove that we cannot afford to discard …

Member Avatar for Alfonso_4
0
878
Member Avatar for JoBe

Hello ladies and gents, Was wondering if any of you could help me out, how can I count the amount of numbers(digits) there are in one integer, for example: int integer = 123; integer has three digits. int secInteger = 10; secInteger has two digits. The reason for asking is, …

Member Avatar for jimmyraynor
0
345
Member Avatar for Fasola
Member Avatar for A.Rehman Amjad
0
1K
Member Avatar for JoBe

Hello ladies and gents, Had to make the following exercise in Accelerated C++ Write a program to calculate the average of the numbers stored in a vector<double>. THis was my solution: [code] #include <iostream> #include <iomanip> #include <vector> using std::cin; using std::istream; using std::cout; using std::setprecision; using std::endl; using std::vector; …

Member Avatar for NP-complete
0
272
Member Avatar for boyjim32

The idea is to help him create HIS own code, not to give a possible solution ! You're not helping him with this, on the contrary !

Member Avatar for tux4life
-1
250
Member Avatar for tino

[QUOTE=tino;765798]Still looking for programming, as well as organizing help![/QUOTE] Hi, allways fascinated with AI, can't help myself but maybe this place is a good place to ask for help: [url=http://www.gamedev.net/community/forums/forum.asp?forum_id=9] Gamedev_AI_Forum[/url] Hope this helps :)

Member Avatar for tino
0
253
Member Avatar for JoBe

Hi Danny, Was wondering when you scrolled down all the way to read the thread you're interested in, there's no way to either go to the top of the page or push a button to go back to view the forum in which the thread was started ? Wouldn't it …

Member Avatar for JoBe
0
59
Member Avatar for CPPRULZ

Great tutorial on pointers by Narue @ [url=http://www.eternallyconfuzzled.com/tuts/languages/jsw_tut_pointers.aspx]Eternally Confuzzled[/url]

Member Avatar for JoBe
0
130
Member Avatar for kjsalk

Doesn't seem to be anything wrong with it ! Are you having a problem with the code ending immediatly after entering a variable ? Do use [code] [/code] tags in the future, makes it easier to read your code.

Member Avatar for kjsalk
0
124
Member Avatar for clutchkiller

1 is a number. '1' is a character. So, it depends on which of the two you are going to use.

Member Avatar for clutchkiller
0
138
Member Avatar for t_s

Great tutorial on pointers: Narue's [URL="http://www.eternallyconfuzzled.com/tuts/languages/jsw_tut_pointers.aspx"]Eternally Confuzzled (Click Here)[/URL] C++ dynamically allocating memory: [CODE=C++] int *pMyInt = new int; ... delete pMyInt; [/CODE]

Member Avatar for t_s
0
116
Member Avatar for JoBe

Hi all, I have a class which contains a struct that holds some variables, string, int's. Now, one of the variables (string) in the struct is used to compare it with a name, if the name is in the struct, it has to be [COLOR="Red"]returned from my function [/COLOR]with it's …

Member Avatar for JoBe
0
140
Member Avatar for LuckyMe444

Ive run your program and it gave me an error, according to my limited knowledge it's related towards going out of bound with your array. Try using for loops: [CODE]for (int i = 0; i < (N-1); i++)[/CODE] and change your switching algo to this: [CODE] if (a[j] < a[j+1]) …

Member Avatar for LuckyMe444
0
87
Member Avatar for Yaserk88

TIP ! Show what code you have written, makes it easier to see what direction you want/have to take ! Working with a an STL vector ? Working with an array ? ... etc.

Member Avatar for dougy83
0
106
Member Avatar for cpp noob

Hi cpp noob, You know, no offence ment, but maybe you'd better learn how to program correctly before you start tackling game programming. Though I'm no programmer and I'm still learning it myself, I can see, you have little or no experience. You didn't use switches to simplify the several …

Member Avatar for CrisRo
0
344
Member Avatar for JoBe

Hi ladies and gents, Wanted to ask a simple question probably for you guys and the answer will maybe be simple aswell, but, I thought, what the heck, I'll go for it :) It just seems strange that when everyone tells to use <iostream> instead of <iostream.h>, <cstdlib> instead of …

Member Avatar for Ancient Dragon
0
348
Member Avatar for JoBe

Good evening ladies and gents, Had a question concerning this piece of code that I'm trying out from a book, it supposed to open a file, write text to it, close it, reopen it, append text to it and then write the text from the file to the console screen, …

Member Avatar for JoBe
0
143
Member Avatar for JoBe

Hello ladies and gents, Got a question, is it wise to create a member of a class by using another class it's constructor and deleting it threw the use of that class it destructor? For example: [code=cplusplus]// Testing code. #include "first.h" int main() { first myMenu; bool gameLoop = true; …

Member Avatar for JoBe
0
122
Member Avatar for JoBe

Hello ladies and gents, It's been ages since I posted here, have been doing some coding on and of and I was wondering about the following, beneath is a test I made in trying to use the new operator in combination with a string, first a string literal, second time …

Member Avatar for JoBe
0
4K
Member Avatar for JoBe

Hello ladies and gents, Ive got an exercise in which I have to fully parenthesize expressions using the higher-lower precedence, for instance: a+b*c would become (a+(b*c)) because multiplication has a higher precedence then addition. Here are my solutions for the following expressions: 1) a = b + c * d …

Member Avatar for ~s.o.s~
0
191
Member Avatar for JoBe

Hello ladies and gents, Gotta few questions if you don't mind: 1) Exc_6_4) Wrote a table of values for the bitwise logical operators and was wondering if any of you could check them out whether they are correct this way. 2) I have to write five examples of undefined behaviour …

Member Avatar for Ravalon
0
193
Member Avatar for Lynqu2

[QUOTE=Ancient Dragon;293461]Its never too late to start. I was 40 when I started, but it is a lot better to start at a much younger age.[/QUOTE] And I thought I was old when I started at the age of 35 :cheesy: Serious, did you really start at 40 and made …

Member Avatar for Lynqu2
0
455
Member Avatar for JoBe

Hello ladies and gents, Was wondering if any of you could help me out with the following, sometime ago I had to reinstall MS V++ EE and ever since then, when I enter for instance 'std::' or 'cin.' I don't get a list with all the possibilities it has, normally …

Member Avatar for JoBe
0
123
Member Avatar for senguptapallab

I like the list Dave Sinkula posted sometime ago: [URL="http://www.daniweb.com/techtalkforums/thread10232.html"]C++ book list[/URL] :!: Bjarne Stroustrup's C++ Programming Language is great, however, in my personal opinion, not the first C++ book you should read as a beginner!!!

Member Avatar for JoBe
0
147
Member Avatar for green_oasis

[QUOTE=cscgal;291691]Narue wrong on a C++ question?? This thread is getting stickied to commemorate![/QUOTE] Narue WRONG ???? NAH, can't be, it was just a fault in the Matrix :cheesy:

Member Avatar for ~s.o.s~
0
171
Member Avatar for JoBe

Hi guys, This exercise goes as follows: - Write a function that counts the number of occurences of a pair of letters in a string and another that does the same in a zero-terminated array of char(a C-style string). For example, the pair "ab" appears twice in "xabaacbaxabb". Now, I …

Member Avatar for Dave Sinkula
0
374
Member Avatar for JoBe

Hello ladies and gents, I'm trying to copy two words, for instance test and word into an array of characters and have this: [CODE]#include <iostream> int main() { char word[10]= ""; char *wordArr[10]; for(size_t i = 0; i < 2; i++) { std::cin >> word; *(wordArr + i) = word; …

Member Avatar for WaltP
0
349
Member Avatar for JoBe

Hi, Got another question concerning an array of strings: I did it this way: [code] int main() { const std::string myArray[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; for (size_t i = 0; i < 12; i++) std::cout << myArray[i] << '\n'; std::cout …

Member Avatar for JoBe
0
612
Member Avatar for JoBe

Hello ladies and gents, I just made the next exercise of this book and although it works as it should, [I]I was wondering if any of you guys could tell me whether or not it could be improved.[/I] The exercise goes as follows: - Define a table of the names …

Member Avatar for JoBe
-1
149
Member Avatar for pratigya

Hi, First use [ code ] code tags [ /code ]. It' makes it alot easier to read code. Second, show your complet code, where is num declared and how, is it declared as an array? Third, where is temp declared, it should be declared inside the loop and be …

Member Avatar for Salem
0
319
Member Avatar for JoBe

Hello ladies and gents, Was wondering if any of you could check this exercise out, I finished it, but, I'm not sure whether Ive got it exactly right, especially the last two definitions. The exercise is as follows: - Use typedef to define the types unsigned char, const unsigned char, …

Member Avatar for JoBe
0
380
Member Avatar for aznballerlee

<< // Again, how do I initialize b? [code] bool b = TRUE; if (*fp == *(fp+1)) return true; else return false;[/code]

Member Avatar for JRM
0
958
Member Avatar for JoBe

Hello ladies and gents, I'm reading The C++ PL from B.Stroustrup and in chapter 5 the second exercise goes like this: What on your system, are the restrictions on the pointer types char*, int*, and void*? For example, may an int* have an odd value? Hint: alignement. I actually have …

Member Avatar for ~s.o.s~
0
349
Member Avatar for newbie2c++

[QUOTE=newbie2c++;273664] [CODE]#include <iostream> #include <iomanip> #include <string> using namespace std; // Function Prototypes [COLOR="Red"]float division_input(string);[/COLOR] void highest_division(float, float, float, float); int main() { ... } // *********Subroutine definitions below********** [COLOR="red"]float division_input [/COLOR] { ... } [/CODE][/QUOTE] Look at the red part, your function has four parameters, but you don't use …

Member Avatar for John A
0
192
Member Avatar for mattyd

<<"In reference to the anti-virus consideration-- that sounds unusual-- I did not try it, but I appreciate the info." >>I know it sounds unusual, but, it did solve my problem. ;) By the way, thanks for that link Wolfpack, seems I didn't use the proper search words for that kind …

Member Avatar for JoBe
0
92
Member Avatar for JoBe

Hello ladies and gents, Wanted to ask if someone could help me out with the debug settings in VC++ 2005. What I want to be able to do is to follow my program step by step and see what happens with the variables. I know it's related to the settings …

Member Avatar for Ancient Dragon
0
283
Member Avatar for RichC
Member Avatar for RichC
1
129
Member Avatar for Dabdob

[QUOTE=Dabdob]Are you sure? it works with me fine... i am still looking for selection and insertion code...[/QUOTE] Euhm, didn't look really well now did you :cheesy: Eternally Confuzzled's [url=http://eternallyconfuzzled.com/tuts/sorting.html#insert] [COLOR=DarkRed]Insertion sort[/COLOR] [/url]

Member Avatar for Dabdob
-1
172
Member Avatar for >shadow<

Well, I don't post that often, just when I have a problem with C++ that I can't figure out. I frequently visit the DaniWeb forum (C++) and it's actually the only one I visit though I now several other ones! Reason is because, the outlay is great (wonderfull job you …

Member Avatar for anupam_smart
0
459
Member Avatar for JoBe

Hello ladies and gents, I wanted to ask if any of you could help me out here, Ive got this program: [code] //Test programma voor Accelerated C++. #include <fstream> #include <iostream> #include <string> int main(int argc, char** argv) { int fail_count = 0; //for each file in the input list …

Member Avatar for JoBe
0
86
Member Avatar for JoBe

Hello ladies and gents, I just wanted to see what this small programs does so I tried it in Dev-C++ and in VC++ 2005, thing was, it worked in Dev-C++ but not in VC++ 2005 in which I got an error stating the following: [QUOTE]error C2664: 'MessageBoxW' : cannot convert …

Member Avatar for WolfPack
0
670
Member Avatar for JoBe

Hello ladies and gents, Ive downloaded the first four PSDK-FULL files and wanted to install these, but I don't know how exactly to do so. I tried to use winzip and extract them, but keep getting an error that says, failed to launch file: C\Documents and Settings\Johan Berntzen\Local Settings\Temp\install\setup\PSDK-x86.msi I …

Member Avatar for JoBe
0
187
Member Avatar for JoBe

Hello ladies and gents, I wanted to ask if any of you could tell me what I'm doing wrong when I want to debug any program that Ive written in VC++ 2005 Express Edition. Reason is, after I put a break point to where the program has to run and …

Member Avatar for JoBe
0
205
Member Avatar for JoBe

Hello ladies and gents, Ive been trying to find a solution for this exercise wich goes as follows: Rewrite the Student_info structure, and the 'read' and 'grade' functions, so that they calculate each student's grades as part of reading the input, and store only the final grade. Because the exercise …

Member Avatar for JoBe
0
186
Member Avatar for Acidburn

[QUOTE=Acidburn]Hello, I'm wanting to know whats in the string and where: I've got this code [code] string s1="HelloWorld"; if(s1[5] = "W") [/code] now then if i want to know if World is in the string. I've tried doing: the if.... but it errors:[/QUOTE] [code] #include <iostream> #include <string> int main() …

Member Avatar for Bench
0
194
Member Avatar for JoBe

Hello ladies and gents, There's an exercise, well, more a question that goes like this in Accelerated C++: If the following code is legal, what can we infer about the return type of f? [code]double d = f() [n];[/code] What I can gather is that the return type will be …

Member Avatar for JoBe
0
559
Member Avatar for JoBe

Hello ladies and gents, I had to do the following exercise: Write a (1)function that reads words from an input stream and stores them in a vector. Use that function both to write programs that (2)count the number of words in the input, and to (3)count how many times each …

Member Avatar for JoBe
0
112
Member Avatar for JoBe

Hello ladies and gents, Ive recently downloaded VC++ 2005 EE, but, would prefer to buy a version of this. Now, the problem is that there are so manny versions. Since I'm a hobbiest I was wondering wich of these two would suit me the best. Visual Studio 2005 Express or …

Member Avatar for jwenting
0
125
Member Avatar for JoBe

Hello ladies and gents, in Accelerated C++ I have an exercise wich goes as follows: [quote]Write a program that will keep track of grades for several students at once. The programcould keep two vectors in sync. The first should hold the student's names, and the second the final grades that …

Member Avatar for JoBe
0
287
Member Avatar for JoBe

Hello ladies and gents, I'm trying to do another exercise from Accelerated C++ in wich I have to write a program to count how many times each distinct word appears in its input. What I have untill now is this, [code] int main() { vector<string> theWords; string aWord; short count; …

Member Avatar for JoBe
0
266

The End.