Beginners - August 2010 (Page 13)

by Tamao
A question about AI
 
Hello, I want to make a quite simple but not to simple Artificial intelligence but i dont really know where to begin and how to think when doing this. If you gu...
[12 replies] Last: [quote=m4ster r0shi]f(x) = a3*cos(b3*x+c3)*x3 + a2*cos(b2*x+c2)*x2 + a... (by blackcoder41)
uml Question
 
Hello everybody, I am a new to UML, i wanted model the behavior of a CellPhone, my problem is that neither sequence nor state diagrams can fully convey what ...
[4 replies] Last: Hello again, sorry for the late reply :) i use this book for UML an... (by Tamao)
by Lyleo
2d array initialization and display
 
Hi There I'm initializing my 2d array with individual values, but I can't seem to output them. // 2 dimensional arrays #include <iostream> using namespac...
[1 reply] : to display an array, you'll have to loop: for(int i = 0; i < 3; i++)... (by hamsterman)
Why Function Pointer?
 
hi,all um,i am reading C++ Primer . now i am confused with the utility of function pointer. Since C++ is a flexible language, we can use Class or stl. why sho...
[1 reply] : Lots of useful information about function pointers and their use: http... (by Skillless)
list ... with problems
 
I am a beginner in C++ and needs help ...The program required the user to input integers until input 0; the program must be displayed first- then even numbers a...
[1 reply] : well your first problems are you're using iostream.h... just use iostr... (by kaduuk)
Problem with input in loops
 
I am a beginner in C++ and needs help in a code I am working on. The program is a simple one which requires the user to input a name, the program enrolled in, n...
[2 replies] Last: Thank you very much Mr. Jaeger138 for your much needed help. I just le... (by jontoby)
by Wander
If Statement Problem
 
Okay! I'm going to sound like a total noob. Haha! I wasn't sure if this problem belonged on this forum or the SFML forum, so forgive me if this is in the wrong ...
[no replies]
Dummy string used for getline?
 
I have access to a completed c++ program, but I don't understand one aspect of it. To me, it seems as if an extra getline is used[to extract the string dummy fr...
[4 replies] Last: while(inFile) == while(inFile.eof()) ? I thought it was while(!inFile... (by blackcoder41)
Almost got it
 
Ok I almost got it....I think and this may be a simple fix but what is wrong with this, when I run it I get in the window screen File Error: Open Failed Press A...
[2 replies] Last: I find no error in your code.. Just make sure "TestCount.txt" exist in... (by blackcoder41)
Data Integrity
 
I'm trying to figure out how to write a few functions to check a user's input before continuing the program. Specifically, I'm trying to use the isdigit fuctio...
[15 replies] Last: That code works fine for me. Have you put it in exactly the same? (by Galik)
by rkgrp
Finding Hex value in a formatted file
 
Hi I am a newbie. I have a requirement to read format file and parse the records in the file. In the formatted file Delimeter is hex value ("1D"). I can o...
[3 replies] Last: You nailed it Galik. Thank you Bunch . (by rkgrp)
Passing multi-D array to function w/o referencing it
 
How to do it? I've tried: data-type function(data-type arrayVar ) and data-type function(data-type arrayVar ) But both are references. Is there no oth...
[4 replies] Last: Thanks. I already thought about using a struct, but since I'm writing ... (by Fresh Grass)
vector class guidance
 
Hi you all. I'm learning to manage vector class, included on std, through a series of examples I found on the internet. All of them declares vector<MyClass*> ...
[3 replies] Last: Uh... Because whoever wrote them sucks? Returning a pointer/reference... (by helios)
by Lyleo
2 dimensional array
 
Hi there I've just started learning 2d arrays and I'm trying to assign the 2nd vertical element and the 4th horizontal element with values but it only assig...
[4 replies] Last: Hi there I seem to have gotten it right, what I wanted to do was: a... (by Lyleo)
Understanding memory allocation
 
I'm new to c++ but I do have a programming background. I understand that there are three ways of allocating memory: on the stack statically, on the stack dynam...
[6 replies] Last: I think I got it now. Thanks a lot. (by mdonati)
by ebuddy
what is the best way to do this?
 
Let's say I want to write a function that takes an integer that is 8 bits wide as input, and the function does some manipulation on the bits position and return...
[11 replies] Last: stdint.h is not standard C++. VC++, while also being a C compiler, doe... (by helios)
File I/O issue
 
Hi, I've been trying to tackle an issue with ifstream/strcpy. while(File_a != NULL) { File_a>>FILE_TEXT; strcpy(COMPLETE, FILE_TEXT); cout << COMPLETE; ...
[no replies]
by Mazd
Problem
 
Hi,guys.my girlfriend give me this question,please any one to help me on how to start. 1.Write a program to compute the rate of growth,expressed as % of an i...
[13 replies] Last: Oh dear lol... (by mcleano)
by jzone3
Button
 
Does anyone know how to make a button (for a calculator) in Xcode for C++?
[2 replies] Last: thank you what did u mean by "Xcode? may some of us, we don't know!" (by jzone3)
checkBox
 
hi ppl, ive got new problem today. i have checked checkbox. i want to do something like this: after unchecking this checkbox i want to textbox change status t...
[2 replies] Last: ok thx man, i made new topic there, :) (by alwayslags)
August 2010 Pages: 1... 1112131415... 28
  Archived months: [jul2010] [sep2010]

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