Beginners - March 2009 (Page 16)

need advise for coding
 
i need some advise to begin coding of vector field histogram. but i really don't understand how to create certainty value because i'm not perfect at english. b...
[2 replies] Last: sorry about i copied wrong quistion but now i changed real one (by gantsooj)
by js6216
unknown error in basic recursion problem, code included.
 
Hello world, I am writing a recursive function called maxArray as a practice problem from my data structures book. It finds the greatest integer in an array by ...
[5 replies] Last: I know this is all about use of recursion, but these bits here seems t... (by guestgulkan)
What does #J stand for in C++
 
Hi All, I am new to C++ and programming. While compiling a financial program an answer came out "$1.#J". Please tell for what #J stands for. Thanks in adva...
[1 reply] : Well, I don't really know what it means, but it's most likely a NaN (N... (by helios)
Simple Arithmateic on a vector
 
My Problem: I am just passing a small vector into a function. The function's goal is to return the median to main. I have looked over my code and I cannot un...
[6 replies] Last: Just for the record, adding a decimal point to a numeric literal will ... (by seymore15074)
What is % stand for in C++?
 
Hi, I'm pretty much new to C++ and programming. Anyway I was reading my programming book and in one of the examples they use % in the code, and I couldn't find...
[3 replies] Last: You are welcome. (by MMZJSFMMX10MM)
by jaydr
problems using header files.
 
First this program is just a test to see if functions calc and return right. i plan to do more after i get the rest of the functions i need. my problem is i wan...
[5 replies] Last: Thank you grcunning. in the .h file is should have just the function d... (by jaydr)
by yukiti
[problem]pointers and recursive
 
int arvore::AddValor(node **t, string chave) { int saida; if(!(&(*t))) { arvore(); (*t)->esq = NULL; (*t)->dir = NUL...
[1 reply] : I resolved the problem is not: saida = AddValor( (*t)->esq, strin... (by yukiti)
by dman
How to initialize non constants in a header?
 
How can i give dynamic assignments in header files. eg: //(--in the header file for all "globals"--) //prototype and definition of myname for all to se...
[2 replies] Last: If you want to see what 'professional' header files look like, just lo... (by guestgulkan)
by boggle
reading different data values from file
 
Hi. I'm working on a problem where you read data from a file, accumulate a total, and then output the data and total. The data looks something like this: ...
[1 reply] : When reading strings, the >> formatted input operator stops reading... (by guestgulkan)
Randomizing a database
 
I am very lost. I am not sure this a begginer question, or if I am posting in the proper place. Additional this is NOT a home work project, the example I use be...
[no replies]
Hexadecimal in Array
 
I have 4 values ( hexadecimal ) in a Array: int WIDTH ; Let say it is 11 0D 00 00 I have to tansform it into one only int: 285 [ 00 00 0D 11 ] Some...
[3 replies] Last: If you know your program will only run on little endian CPUs, you can ... (by helios)
by pjesh
How to identify range
 
Write a C++ program that gets an input mark from the user and then displays the grade of the mark, based on the following table. The mark should be entered in o...
[2 replies] Last: Why use a switch, I think switch only works with ints or chars. if ... (by grcunning)
ask questions until condition met (continued)
 
Ok the saga goes on... if you try input all the other flavors and options everything works fine... when you input chocolate for either icecream or sauce it me...
[1 reply] : Right now, both icecream and sauce are being checked against the s... (by jdd)
Algorithms mergesort
 
hello!!! i being need algorithms merge sort.who are you have this algorithms? thanks
[1 reply] : look on wikipedia. (by jsmith)
Program to identify the closest value from a range of values
 
I need to write a program that has as input a floating point number e.g. 2.3162 The program then generates a range of floating point numbers and it must them i...
[11 replies] Last: ok - thanks. I have run this and it seems to give correct output. I ne... (by youknowme)
Matrix of Strings
 
No clear (to me) material in the web. Hence I am posting here. I must allocate memory for a matrix (2D array) of strings during runtime. Here is my code: ...
[5 replies] Last: Thanks to everyone! Very much appreciated. (by paolopiace)
by masiht
stringstream question
 
Can anyone please tell me what is the line stringstream(mystr) >> yours.year; doing in this program. I will be thankful if you can give me an easy example w...
[5 replies] Last: Thank you bazzy ! (by masiht)
spaces in char array input
 
Hi folks I'm relatively new to this and I'm sorry for posting such a mundane question but I'm writing a VERY simple program to practice the things I've learned ...
[7 replies] Last: thank you very much for clearing that up for me, you've all been extre... (by crinkelite)
by Prissy
where can i find the source code?
 
I wanna compare my code with the source code in STL.... But I cannot find it.. Does anybody know where the source code is? Tell me plz.. Thanks.
[1 reply] : For STL the sourcecode should be in the headers, you can also see in t... (by Bazzy)
logic question
 
Im helping in a group project and I just wanted to know if my code is logically correct. The reason I asked is when i compare it to other diameter calculators i...
[4 replies] Last: just inline the function. macros are evil. (by jsmith)
March 2009 Pages: 1... 1415161718... 29
  Archived months: [feb2009] [apr2009]

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