51,593 Topics

Member Avatar for
Member Avatar for guccitan88

I'm not understanding my assignment and what I've read has really confused me. This is what I need to do: write a function to initialize an integer Partially Loaded Array with distinct random values. The array has room for 50 elements. The actual number of elements to store will be …

Member Avatar for guccitan88
0
134
Member Avatar for Reimschmied

Hi all, Could someone help me? I have programm that reads xml file and displays it in window with StringGrid. I need to replace my code with a function that has xml file as a parameter and returns two-dementional array of strings (instead of StringGrid). You can see my code …

Member Avatar for Ancient Dragon
0
137
Member Avatar for grib

I'm attempting to use a specialized function to search an array of c strings for the longest (or first tied for longest) member. Right now, I'm getting [inlinecode]line 87 error: invalid conversion from `char' to `const char*'|[/inlinecode] on my comparison statement. If I switch the templates' inputs to const, I …

Member Avatar for DavidRead
1
125
Member Avatar for DweyneAnne

i have a homework for our programmin classes, i searched for other solutions regarding the gotoxy function, but all saw was for devc++, turboc++ and other IDEs, when i use the function for devc++ or turboc++, i know it wont work, but i tried it, says there's not library for …

Member Avatar for DweyneAnne
0
240
Member Avatar for grassboy

Hello... I've studied FIFO in recent days... and tried to write some code (Linux C) for practice... but there are some bugs in my code... I don't know how to solve it... here is my code... [code] #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> int main(){ char …

0
51
Member Avatar for ahsanmalik

Our teacher gave us this project and i have no idea about how to get started with it....can someone give me any guidelines about it please????!!!! "You are required to implement an “Online Testing System” which should be able to store questions along with their answers in the question bank …

Member Avatar for ahsanmalik
0
109
Member Avatar for absk

I have been coding in C++ for a few years now and am comfortable with OOP concepts and Data Structures. Now I wish to pursue a higher level language which will hwlp me in application development. After much reading, I arrived at C# and Java. Which one should I pursue? …

Member Avatar for peter_budo
0
161
Member Avatar for Cy137

So far, this has worked relatively nicely. However, I am having trouble in outputting to two separate files, and I'm hoping that you guys and gals can help me out. I'm reading in from a file, and outputting to two different files, based on what the input is. If anyone …

Member Avatar for Cy137
1
184
Member Avatar for Spreegem

I had to develop a brute force, a recursive, divide and conquer, and transform and conquer algorithms for calculating the nth power of a, a^n, for an assignment. I got the first three done pretty easy but I'm completely stumped at how to do the transform and conquer algorithm. I've …

Member Avatar for Nimmy Chohan
0
184
Member Avatar for joshjgordon

I am trying to use pow in c++ and for some daft reason it is not working properly. I have used it before with no issues, so I am sure that there is just something that I am overlooking. here is what I have: [CODE] const double epsilon = cutoff_velocity …

Member Avatar for sidra 100
0
83
Member Avatar for Vita1ity

Hey everyone, I've written a program for class but am not sure what the values of a and b are after the code fragment is executed. Anyone that can help me out? [code] int a = 16; int b = 45; bob (a, &b); void bob(int x; int *py) { …

Member Avatar for Aia
0
42
Member Avatar for muhammad zain

hi, I need help in adding questions in a program using strings, structures or array............. Plz help me n snd the code

Member Avatar for Clinton Portis
0
91
Member Avatar for Rockdrummer357

So, I need to make a binary tree, except each node needs to hold multiple data types... My instructor told me to use structures, but I am still lost as to how to put all this data into the tree. [CODE]struct record{ long int student_id; char lastname[12]; char firstname[12]; char …

Member Avatar for Rockdrummer357
0
108
Member Avatar for dewdropz

//ok i need to write a programme that asks the user to input student numbers as an array and check the initial number and allocate them into different classrooms.. my code looks lik ths: [CODE] #include <stdio.h> int number; int i; int student_number[10]; int total; int first[0]; int main (void) …

Member Avatar for jonsca
0
102
Member Avatar for Stefano Mtangoo

I have genuine VS 6 Keys as well as accompanying MSDN library. But VS set up CD is missing :( Where can I download VS 6 setup? I have wondered in MS site and all I see is no VS6, juststories about it!

Member Avatar for Stefano Mtangoo
0
137
Member Avatar for Instinctlol

Can someone explain to me why this shows up as Foothill (user input) : -9.222255e+061 ---------------------------------------------------- DeAnza (user input) : -9.222255e+061 ---------------------------------------------------- SJSU (user input) : -9.222255e+061 ---------------------------------------------------- : 10 ---------------------------------------------------- : 20 //my input ---------------------------------------------------- : 30 ---------------------------------------------------- [CODE]void VectorList::DailyReport() { cout << "==========NGS Daily Temperature Report==========" << endl; …

Member Avatar for stephen.id
0
89
Member Avatar for PDB1982

I'm now stuck on trying to figure out why my letterGrade function isn't working....I'm trying to take the numerical values found right before it, in the Avg colum, and turn it into a letter grad (which I assume needs to be as a string). Any suggestions? [code] Total Number of …

Member Avatar for Zjarek
0
234
Member Avatar for tkud

Hey everyone, can I create a folder using c++, just the way we create a file?

Member Avatar for tkud
0
100
Member Avatar for camipr64

new poster, need help with a pig latin translator. translation doesn't work properly, any tips or troubleshoots? sorry if it seems long... any help would be greatly appreciated [code] #include <iostream> #include <string> using namespace std; bool isVowel(char ch); string rotate(string pigStr); string pigLatinString(string pigStr); int main () { char …

Member Avatar for camipr64
0
120
Member Avatar for NitaB

Hey guys! I'm on a new topic and I'm finding it to be a bit frustrating. And basically the way I am learning classes and ADT's is by playing with them. So, I started and I [I]think[/I] I understand the basic concept. I am going to post the code below …

Member Avatar for NitaB
0
156
Member Avatar for PDB1982

I am trying to figure out why my letterGrades and highest function aren't working.....I'm more clueless on the letterGrade portion, as I believe that my highest function is a simple fix that I'm just not seeing. With the letterGrade function I am trying to assign a letter grade to each …

Member Avatar for mrnutty
0
164
Member Avatar for Robyy14

Heya people i really would appreciate some help here.. The Program Works Just Fine At compiling but after like 1 second after ctrl + f10 to test it i get an error . I looked on google and it is something like Killed by signal 8(SIGFPE). [CODE] #include<cstdio> #include<cctype> #include<string> …

Member Avatar for Robyy14
0
11K
Member Avatar for Adnan Saleem

Hey everyone...... I was studying the course of Data Structures(DS) and in the end we have to make a Project.......so guyz its the time of project..... I thought of making something with suffix trees ..... so please anyone if you have any idea for a DS project concerning Suffix trees …

Member Avatar for Adnan Saleem
0
443
Member Avatar for PDB1982

I don't understand where the last line of my input is coming from....The program should stop reading with Hebb,Emily, but it seems that it's trying to bring in another line of information...any ideas? [code] Total Number of Students: 73 ID LName FName Q1 Q2 Q3 MT Q4 Q5 Q6 F …

Member Avatar for Lerner
0
121
Member Avatar for tango2009

I have this iterator that I want to format so the output is something like this. < "Index of first node"(first value of iterator)<<"Second index"(second value of iterator). Can anyone help me with this.[code]void Level::printAstarList(list<int> AstarList) { // cout<<"<"; std::list<int>::const_reverse_iterator it; for (it = AstarList.rbegin(); it != AstarList.rend(); ++it) { …

Member Avatar for pac-man
0
102
Member Avatar for pac-man

[CODE]class Car { public: Car(string name, const int wheels = 4){} private: string name; }; void main() { Car("Ford",3); // Why can I put in a 3? } [/CODE]

Member Avatar for pac-man
0
108
Member Avatar for confusedndazed

Hi, I'm trying to incorporate a program title and welcome message into my code and I'm not sure if I have done it correctly. I would also like to know how to incorporate the following function calls into my code: Call Personnel Age Call Calculate Average Age Call Display Average …

Member Avatar for Lerner
0
93
Member Avatar for pbreezee

My assignment is to write a c++ program which does statistical analysis of a group of exam scores. Up to 100 scores may be entered. All scores should be validated within the range of 0-100. A (-1) will be entered to signify the end of data. Scores may be decimal, …

Member Avatar for pbreezee
0
173
Member Avatar for maharjanmike

so far i was able to do for countting the letters in a phrase ..,but i am not able to count the words in a phrase and displaying according to the number of the word...here's my code to count the letters.. what changes should i make to count the words …

Member Avatar for maharjanmike
-2
105
Member Avatar for vmanojnair

Hi , I am doing BE Electronics in Erode. Its my 7th Semester. I would like to do one mini project in C. So please suggest a good topic or please suggest some sites, where i get more information regarding the mini project. Thank you very much Manoj V

Member Avatar for peter_budo
-4
675
Member Avatar for XodoX1

Hello! Here's what I wanted to do: [quote] Create an array with four elements holding the total corporate sales for the division. -Create a private static variable for holding the total corporate sales for all divisions for the entire year. -A member function that takes four arguments, each assumed to …

Member Avatar for Lerner
0
154
Member Avatar for nedsnurb

Hi, I have recently completed a bubble sort array program, which works fine. And is here : [CODE]#include <iostream> #include <ctime> using namespace std; void bubbleSort(int Array[], const int arraySize) { for(int j = 0 ; j < arraySize; j++) { for(int number = j + 1; number < arraySize; …

Member Avatar for mrnutty
0
2K
Member Avatar for fradiavolo

Hello, below is my polynomial code. I had to add and multiply 2 polynomials. 1) All i have to do more is to sort decreasingly the adding() and product() functions. Eg: 4x^6 + 6x^4 + 2x^2... etc. 2) Second, to add the coefficient with the similar exponents, same in the …

Member Avatar for Lerner
0
262
Member Avatar for dani2010

I need help with the two dimentiona array because this is a big program to start learning this. Here's what i have so far. [CODE]#include <iostream> #include <cstdlib> #include <cstddef> //typedef char* CharArrayPtr; //CharArrayPtr a; //a = new char[number_of_rows]; int NO_ROWS = 7; typedef char* SeatRow[4]; typedef SeatRow Seating[NO_ROWS]; //Seating …

Member Avatar for dani2010
0
977
Member Avatar for sidra 100

when we create a file in c++. can we actually see it in the given folder.if yes then why cant i? when i run the program it display nothing.n no files by dat name is shown in that folder

Member Avatar for restrictment
0
65
Member Avatar for confusedndazed

Hello all, I am getting a few errors with my code, I have been playing around with it but I guess I still needed a few tweaks. The errors and code are as follows: 23 C:\myC++projects\averageproj.cpp expected `;' before '}' token 27 C:\myC++projects\averageproj.cpp expected primary-expression before '<<' token 34 C:\myC++projects\averageproj.cpp …

Member Avatar for sidra 100
0
132
Member Avatar for iammfa

Hi, I read this line in creating window example with win32 API: [CODE]LRESULT CALLBACK WindowProcedure(HWND,UINT,WPARAM,LPARAM);[/CODE] please, can someone explain it to me..! i googled but i can't find enough explanation regards iammfa

Member Avatar for Clinton Portis
0
130
Member Avatar for golfbird

I have a visual c++ 6 dialog based program which i need to improve and would appreciate advise. After I am into this program, several dialogs deep, I would love to press the Home Key and have it close up all my dialogs and return to the programs main dialog. …

0
56
Member Avatar for abhaymv

Hai, I have just finished a program 'Library information system'.There might be logical errors in the program.How should I go about testing it?I have put a small set of values, and it seems to work alright.But, tips from you guys would be helpful as this is my first software.(Not my …

Member Avatar for mrnutty
0
61
Member Avatar for bhey

can you please show me how to make a countdown timer? and a game program, like guess the missing word. because when i tried it, it doesn't give the right output. please help me. because i really don't know much about c++ i might fail to this subject.:S:'(

Member Avatar for bhey
0
204
Member Avatar for aana

write a program 4 incyption and decryption of a 4 digit code. entered by the user.For incryption use following mechanism: 1.sumofalldigits + current digit%10. 2.replace 1st digit with the 4rth and 2nd with 3rd. Use functions and pass by reference. For decryption use reverse mechanism. ppppllllllzzzzzzzz someone help me!!!!!!!!

Member Avatar for Agni
0
316
Member Avatar for abhaymv

Hi, I have this annoying problem in my project program.It simulates a Library.From the data stored in a binary file,the information about books are to be displated as: [U] Sl.no Book code Book Name Author no. of books[/U] 1 ES101 Sherlock.. A.C Doyle 10 2. SF200 Harry Potter J K …

Member Avatar for abhaymv
0
266
Member Avatar for cliffaem28
Member Avatar for sidra 100
Member Avatar for William Hemsworth
0
75
Member Avatar for Sheltac

Hi guys! I'm pretty new to C++. I am currently on freshman year at college, and have a programming problem (not homework, it's actually a side project of mine) that consists on implementing some algebra-related functions on C++. I'll go straight to the point: [code] int switchlines(int i, int j, …

Member Avatar for Sheltac
0
172
Member Avatar for Ultratermi

Hey :D I wanna make a small program which changes the Desktop Wallpaper. Ok ehm. I found many things but nothing is working! Maybe because of my os: Win 7 x64 Ok here is the code which should run when someone click on the button. [CODE=C++]SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,"C:\\wallpaper.bmp", SPIF_SENDCHANGE);[/CODE] Tried it …

Member Avatar for Ultratermi
0
1K
Member Avatar for metdos

For example. [CODE]float test[2]; map < string, "what should I put here?" > myMap;[/CODE] I want a map where keys are string, and values are array of float in size 2. I can use vector <float>, but I don't want to use vectors.

Member Avatar for jonsca
0
91
Member Avatar for anna2

I have this exercise that i need some help with !! • Write the function fahrenheit that returns the Fahrenheit equivalent (as a float value) of a temperature value in Celsius. The function has one integer parameter for the temperature in Celsius. [Hint: Tf = (9/5)*Tc+32; Tc = temperature in …

Member Avatar for ItecKid
0
106
Member Avatar for ayan2587

hi frndz... the problem is as follows: i want to create a 2-d array. in every index in that matrix, i want to store an array of integers. moreover the array that i want to store at every index has to be dynamic because its size will keep on increasing. …

Member Avatar for jonsca
0
113
Member Avatar for mrnutty

[URL="http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=57918"] O M G[/URL]

Member Avatar for ddanbe
0
247

The End.