Beginners - March 2009 (Page 14)

linklist modifications
 
i need to write more functions for the following code. for each function I need to incorporate it within the function and add some statements to the main functi...
[3 replies] Last: Add prototypes a la lines 10-12, then add the implementations at the e... (by jsmith)
by blankk
how can I calculate this root?
 
I guess it is more of a mathematical issue.. give me your lights :) http://img.photobucket.com/albums/v415/techblank/root.jpg
[3 replies] Last: cheers Bazzy. Thats how it can be done I think. (by blankk)
Problem with Search in a link list
 
I would like to write a function which search an item in a sorted link list, and return the item before the item I would like to search whether the searched ite...
[8 replies] Last: I think to do what you want to do you need to return a NodePtr* (ie, n... (by jsmith)
Need expert to review C++ code for word count
 
Hi there! I am new to C++ and I will be straight forward and say that this is an assignment and I want someone to review my progress to see if I am headed in th...
[3 replies] Last: You have lots to do and I think you've gone down the wrong path. Th... (by kbw)
Having a problem with arrays.
 
Hey all. My program calls a funtion which adds 10% tax onto a number that is given by the user. The function returns that value and then it gets printed that...
[6 replies] Last: Sorry for taking so long to reply. while (item_Description != "... (by Bastler)
File I/O Question
 
Hi guys, I'm relatively new to C++. I've been trying to make a program where it asks you to input the name of a text file and spits the text of the file ou...
[2 replies] Last: Yesssss!!!! Thank you so much man! Lol I'm excited right now :D (by Vorbis5)
Substrings of argv
 
(Please correct my statements/assumption if wrong. Thanks.) Assume the first argument of a command is "-argvone". Hence argv is the address to the string...
[3 replies] Last: Bazzy is correct. You could do vector<const char*> v( argv, a... (by jsmith)
by pino
Controlling the state of a stream
 
I found a program which, given a sequence of data, process the data of a specified type and print a warning for data of different types. The program is the foll...
[3 replies] Last: Based on your comments, I solved the problem by reading the bad data i... (by pino)
by rain
what I need to rewire in my code and how I need to do it
 
Hello! I am beginner, And I want learn some C++ Why this code dont move notepad's window? How I could imprive keysend function? I want send string "ABCabc123!...
[no replies]
Create timestamp in C++?
 
Hey Guys, I would like to know how can I create timestamp in numerical format? e.g. 2003-06-22T20:57:29 (or any other format that is available) I need...
[1 reply] : http://www.cplusplus.com/reference/clibrary/ctime/ If you are worki... (by kempofighter)
defining array of structs
 
I want to define array of structs giving it the values. for example: struct foo{ int x,y; }; foo foos ={some values here}; Is this declara...
[1 reply] : foo foos = { {x0,y0}, {x1,y1}, ... }; (by Disch)
Fraction Addition
 
please i want to know how can i add 2 numbers with fraction like this 3/4 + 5/3 how can i make this on C++ ??????????
[9 replies] Last: You could go to the library or the nearest book shop and get "C++ With... (by chungolongo)
Calculing Pi using Monte Carlo, and random Numbers...
 
ok look my code, it doesn't have compiling errors... // Este programa calculara valores aleatorios segun las veces que . #include<iostream> #include<ioma...
[5 replies] Last: try double Pi = (float)acertados / (float)lanzados; (by jRaskell)
by Duncan
Getting the length of a passed array
 
Ok, so I know why this won't work: template <class T> int get_array_length(T arr ) { return (sizeof(arr)/sizeof(T)); } Because when passing the ar...
[3 replies] Last: // This works only for fixed-length arrays template< typename T, s... (by jsmith)
by masiht
Problem in a program
 
Hello, I am trying to make a program , i had some trouble but I have made one with the help of the tutorial here.But it is still not working ,Can anyone please...
[1 reply] : I copied your code to be able to name the lines: #include<iostream... (by onur)
Reference variable and pointer
 
Hey is the following form of passing an array to a function correct? void fun(char *&nm) { cout<<nm; } void main() { clrscr(); char name ; ...
[4 replies] Last: Thanks Disch. (by Xenophilius)
Comparing Array data with Multi-Array data
 
Is anything similar to the following possible? if(mapArray == krx && mapArray == krx ) { then do something; } Basically, I want to do what the bel...
[1 reply] : You can compare arrays by comparing all the values, so you can compare... (by Bazzy)
Writing binary file to disk.
 
Hello, I have a problem writing binary data to my harddrive. I am using ofstream to write the data to disk and it works great most of the time. However somet...
[1 reply] : Post your code, In code tags (Click the # sign to the right of the rep... (by eker676)
why isn't my program running?
 
Hi, well I'm doing this assignment where I have ask the user to input his/her name and display the name vertically(sorry I had reversed, it's vertically). esamp...
[5 replies] Last: once again. thanks to everyone that helped. (by reyjunior)
DELETE
 
Hi would like some explanation about the delete command. ok I need to use it if I want to delete an objekt which is dynamic allocated during the run of the p...
[6 replies] Last: What do you mean by "ref class"? (by firedraco)
March 2009 Pages: 1... 1213141516... 29
  Archived months: [feb2009] [apr2009]

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