199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for harkw002_UniSA

I have a header file called StudentRecord.cpp which declares the function: vector<Student>::iterator find (const string& studentName); In my Student Record.cpp file i have written the folloing code: vector<Student>::iterator StudentRecord::find(const string& studentName){ vector<Student>::iterator find; for(find = students.begin(); find != students.end(); find++) { if (students[find].getName() == studentName) { return students[find]; } else …

Member Avatar for harkw002_UniSA
0
104
Member Avatar for dougy83

Hello all, I'm new to VB.NET. Does anyone know how to call non-.NET functions (i.e. native, unmanaged) in dll files where you don't know the dll filename until run time? I had a go using LoadLibrary and GetProcAddress with delegates, but ended up with a mess (a working mess - …

Member Avatar for dougy83
0
399
Member Avatar for wollacott

need help with my program. it keeps repeating (NULL) instead of preinting hello backwards. if remove ca[5] i get bus error. any help please on how to fix it. [CODE] #include <stdio.h> int main() { char ca[10]; ca[0] = 'H'; ca[1] = 'e'; ca[2] = 'l'; ca[3] = 'l'; ca[4] …

Member Avatar for Luckychap
0
87
Member Avatar for bhoot_jb

right now i am working with Turbo Borland C++ compiler...however now i want to have a try on GCC compiler too... so where would i get it?? can anybody provide a reliable link to a GCC compiler??? :)

Member Avatar for bhoot_jb
0
125
Member Avatar for vileoxidation

Hello, and thanks in advance for your time! I am very new to C++, and am attempting the classic squares program. I have the meat of it all done, but am having issues with a few certain parts. First, I can't figure out how to do the sentinel value. I …

Member Avatar for vileoxidation
0
133
Member Avatar for Suraine

Dear c++ gurus, I'm new in creating a header file. never try before. ERm... i have write a header file with a program: [code] Header file: MySensor.H extern short int DetectSensor(int sensorvalue[10]) { ....; } [/code] [code] Program file: MyFile.C #include <MySensor.H> short int i; int p, sensorvalue[10]; int getsensorvalue() …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for kemo0o

hey : i am working on simple engineering application but i have some problem i want to draw X-Y axis Then put any point on it . Then i want to translate this point ∆x=5 , ∆y=12 After that i want to rotate it by angle (∂) degree then i …

Member Avatar for Ancient Dragon
0
102
Member Avatar for electromania

Im codding a programm that has multiple functions. Once functions calculates the means of 2 sets of data and prints meanx and meany. Now another function will use those means to do some other calculation. I dont know how to get those values from one function and pass them into …

Member Avatar for Ancient Dragon
0
283
Member Avatar for lolodede

until now u didnt solve my problem use c++ to input three words and then put them from largest to smallest using if statement

Member Avatar for Ancient Dragon
0
107
Member Avatar for mansi sharma

Private Sub Command2_Click() MsgBox "Have a gala shopping", vbOKCancel, "welcome to the superMarket" End Sub Hey, [B]1) [/B]I want to know how to add icons in the message Box . [B]2) [/B] How To Set the Default Button.

Member Avatar for techtix
0
152
Member Avatar for allopiloping

dear sir.... i have a problem.... i have a c source code and i want to make it in vb.net source with window form please if anyone can help me...... i will be thankful. best regards, the source : [url]http://www.sharekingdom.com/download/998/fork_source.pdf[/url]

Member Avatar for allopiloping
0
82
Member Avatar for hjong.mahjong

just practicing for fun on some problem i saw posted on yahoo answers,mathematics section problem: xyz times pqr = some number x,y,z,p,q,r should be 2, 3, 5, or 7. and some number's digits should also be made up entirely of 2, 3, 5, or 7. solution: 335 x 753 = …

Member Avatar for hjong.mahjong
0
105
Member Avatar for louislam123

Ok, I got the SSI info ready on my forum, so that the membergroups 'VIP' and 'Admin' would receive a response of 'Yes', and other usergroups receive a response of 'No'. I have created a login script in VB .NET that makes the user log in. If he response from …

Member Avatar for louislam123
0
78
Member Avatar for Jennifer84

I wonder something about what is happening when I sort this vector. I put some number into the vector like below. After the sort the output look like this. 3 2 1 -3 -2 -1 What I want is that the output instead will look like the below example. Like …

Member Avatar for ivailosp
0
277
Member Avatar for lynx_aba

hi fellows... I have a little problem, in Unix there's a library called unistd.h that have the function "link" and as its name says, creates a link of a file.... I want to use that function in windows, but i only found the "_unlink" function in the io.h library, this …

Member Avatar for dougy83
0
115
Member Avatar for IU34

I'm making a text adventure game, and it's actually coming along quite nicely...the only thing is, I want to be able to return to the previous screen whenever I want. Say that in my game, I go north. I want to be able to go south, back to my main …

Member Avatar for IU34
0
98
Member Avatar for 11moshiko11

hello! i have problem with program i made: the program should define a pointer to pointer which points to dynamic array of Grade (class i made). i increase the size of the array in function. so i made a new pointer to pointer which point to array of Grade (the …

Member Avatar for dougy83
0
83
Member Avatar for angel143

Hi all, I'm obviously (especially after reading my post through) a newb to vb.net. However, I'm hoping that someone would be kind enough to guide me through. This is for a final project at school and I'm stuck. I'm working on a movie catalog and I am trying to get …

Member Avatar for angel143
0
130
Member Avatar for wollacott

[code=c] #include <stdio.h> #include<string.h> main() { FILE * myfileptr; // a pointer declared to the file stream. char sc; // a character which will be input from the file. // main code... myfileptr=fopen("words","r"); //open the file hopefully while((sc=getc(myfileptr))!=EOF) //get a char { if(sc)printf("%c",sc); //dump it to screen } printf("EOF\n"); } …

Member Avatar for Aia
0
314
Member Avatar for it2051229

am creating a calculator using net beans IDE so yeah i made 0 - 9 buttons.. although seems like i dont want to create an event handler on each number cause it's like a waste of time.. is it possible that the zero to nine button can only trigger one …

Member Avatar for jwenting
0
91
Member Avatar for Sawamura

hi all, thanks to helping until this time. now i want to display printer properties... please help me to do this. do i have to using api function to do this?? any help will be appreciated... best regards :)

Member Avatar for Jx_Man
0
457
Member Avatar for dana.r

I have an assingment that sound like this: Draw a block diagram of recursive function that sums first N even numbers, where N is entered from keybord or in procedure that calling a function. I have posted the JPG of my solution. But this is not going to work. This …

Member Avatar for sarehu
0
750
Member Avatar for Reliable

Hello Hello, Last I posted I was trying to figure out how to post a HTML confirmation page with an autoresponder after someone submits an order. Probelm solved--just about. I got everything working except when the email comes the results don't discriminate between wha tyou ordered adn didn't ordered. it …

Member Avatar for Reliable
0
85
Member Avatar for ka-ii

i have a problem with my php code. so i really2 need somebody who a very in kind this forum to help me. here i send my database, codes and my flow chart.

Member Avatar for ka-ii
0
103
Member Avatar for wollacott

does anyone know how to give the characters of a string numeric variables? so when i can print the numeric variables in decending order so the word is read backwards? for example hello h=1 e=2 l=3 l=4 0=5 olleh your help would be very appreciated, a snippet would be awesome, …

Member Avatar for Aia
0
121
Member Avatar for denniskhor

can anyone help me how to programming the list box code in the VB6? i wan display the item i input in interface text field and combo box, then can display at the list box in that interface too.. pls provide the programming code for me.. thanks..

Member Avatar for Jx_Man
0
2K
Member Avatar for knight fyre

I've created a program that writes info to a specific file and reading from it to generate an income report. The problem I'm having is that when I geerate my report, the last person that was entered is repeated twice, hence throwing off the grand total. Here's the bit of …

Member Avatar for knight fyre
0
109
Member Avatar for npatel0317

I searched google for days and I couldn't find anything that works for me. I would like a simple form with fields (Name, Ph number, Address) and a drop down menu with list of choices and i would like all that info to be emailed to me. I am looking …

Member Avatar for peter_budo
0
73
Member Avatar for paracavern

Hi all, This is an openGL question, i am using DEVc++ not VC++. I am assuming this is a better place to post than in the C++ section, but i will do there also. Im trying to make an accurate reconstruction of the Temple of Zeus at Nemea as a …

Member Avatar for paracavern
0
129
Member Avatar for marti3a3

So I'm a new programmer and I'm SO close to finishing this code. I want to return an array from a function, and every thread that I've looked up has said I need to return the data as a pointer TO an array. How is that done? Also, I'm working …

Member Avatar for Ancient Dragon
0
87
Member Avatar for choudhuryshouvi

i have a database called [B]"BILLING_SYSTEM"[/B] in sql server 7.0 and I'm using sql server authentication mode to connect to the database with my [B]username[/B] [B]"BS"[/B] and [B]password "BS"[/B]. where my front-end is a VB6.0 application. [B]now I want to create this security login "BS/BS" from vb6.0 code without opening …

Member Avatar for choudhuryshouvi
0
221
Member Avatar for ritasha

hi, actually,am doing a programming project concerning a ludo game. i must create a ludo game in cpp langauge. if anyone can help me in designing the die,it would be very nice. i am using the rand and srand function to genarate the random number of the die. but i …

Member Avatar for jwenting
0
84
Member Avatar for meliss1485

I need to write a C program that uses random number generation to create sentances. I need to use strcat to form the sentance and it should generate 20 sentances. What i have so far is below. however it is not working. I know that the problem is something with …

Member Avatar for meliss1485
0
74
Member Avatar for cutseyPrincess

Hi, I am in my final year for IT and have to submit a topic for my final year project in 4 days. I have to use Java(core) and J2EE something related to client-server. I am totally confused. Please help. Just give me some interesting topic ideas. Any thing else …

Member Avatar for Ancient Dragon
0
277
Member Avatar for lydia21

[code=php]print "<script language='javascript' type='text/javascript'>"; print "var a='Invalid User';"; print "document.writeln(a);";[/code]

Member Avatar for phper
0
75
Member Avatar for abhi287

Hi I m developing an application in which i want to compare a String with string[]. Means i m having array of names which i m displaying in a table..Then i m changing some names in table dynamically by some processing and adding new names to the table... While replacing …

Member Avatar for abhi287
0
115
Member Avatar for man4ish

#include <boost/config.hpp> #include <iostream> #include <vector> #include <utility> #include <string> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/graph_utility.hpp> #include <boost/property_map.hpp> #include "ed.h" #include "ve.h" using namespace boost; using namespace std; class Molecule { map<int,string> m; public: void set_molecule_property(vector<string>& s4) { for (unsigned int i = 1; i <= s4.size(); i++) { m=s4[i-1]; } } …

Member Avatar for Salem
0
155
Member Avatar for aminit

Hello All: Can anyone give me a simple idea how to remove the duplicated letters in a text if I have this word HELLO it must be HELO..... Thanks in advance.....

Member Avatar for aminit
0
118
Member Avatar for aran87

Hello i want a simple calcualation which adds 2 textbox times depending on what is chosen from the two drop down lists below, for example a lesson costs £21 and if the user chooses quotestarttime 01:00 to 02:00 it would cost 21 and if the user selects 01:00 till 03:00 …

Member Avatar for aran87
0
73
Member Avatar for archangel

ok im made a visual basic form added a 3 command buttons 1 exits and 2 go to different forms and then i have a text1 and i have a save button at the top its on the mnu but the thing is is when i put the code down …

Member Avatar for QVeen72
0
163
Member Avatar for niladri.user

Can anyone tell me the name of the websites from where i can get the [B][U][COLOR="Red"]free website design templates!![/COLOR][/U][/B] including flash files!! and many more!! pls. send all the possible links!!! i am not getting the satisfactory design templates!!!!!!:(

Member Avatar for hsemar
0
69
Member Avatar for mooglor

[code] #!/bin/bash ARCHIVE_PATH=/archive CURRENT_DATE='date +%F%H%M%S' echo running at `date` >>~/Logs.txt for FolderToSearch in $(ls -l /home/stuff/tp |grep ^d|awk '{print $9}'); do find /home/stuff/tp/$FolderToSearch/in -name '*.*'|awk '{print "zip -m " $ARCHIVE_PATH "_" $FolderToSearch "zip2arc.zip" $CURRENT_DATE;}'|bash|tee -a ~/Logs.txt; done [/code] Hi there, I'd appreciate it if anyone can tell me how to …

Member Avatar for ghostdog74
0
136
Member Avatar for slacke

Do anybody know about this mapping in the SDL_MapRGB [CODE]SDL_MapRGB(screen->format, R, G, B)[/CODE] The screen is my SDL_Surface. Does this define only a single color. The RGB are Uint8 type and I set them As I wish from 0-256. [CODE]Uint32 color = SDL_MapRGB(screen->format, R, G, B);[/CODE] i don't understand the …

Member Avatar for slacke
0
178
Member Avatar for roby4eldiablo

Hi all, i need help on asp-sql code. I have a form when I catch some infos and i want to create a new record into a database. I have tried many syntax but I can't pass the variables a,b,c,d,e,f to sql string. Please tell me how can i do …

Member Avatar for roby4eldiablo
0
138
Member Avatar for mansi sharma

Single line Comments---? Multi-Line Comments--? I dont want the description, I want how to commnet the section of code. Ex, Line in C, [COLOR="Red"]Single Line Comments-[/COLOR] // [COLOR="Red"]Multi-Line Comments-[/COLOR]/* */

Member Avatar for QVeen72
0
95
Member Avatar for Suraine

Dear c++ guru, I am using cygwin to create a c++ environment for my Lego RCX. I have create a program file in c++ format. when compile with cygwin, it shows: [code] file.ds1: line to short on line 324[/code] can anyone help explain to me what is it? I am …

Member Avatar for Suraine
0
105
Member Avatar for rrocket

Does anyone know of a tutorial/site that explains how to bind to a tdblist clearly? If anyone could explain it, I would also appreciate it. So far I have this and must be missing something. It has been way too long since I have done anything in VB6. :) Other …

Member Avatar for QVeen72
0
264
Member Avatar for macka007

hi, i am working on a program that locks your computer after a preset time, sort of like the type you would find in an internet cafe etc, but it doesnt work properly. when its unlocked and a time enterd it passes the time (in minutes to a form that …

Member Avatar for QVeen72
0
182
Member Avatar for man4ish

I am creating a graph using boost library, I am making the network using create_Network function() i am adding the vertices to this graph by creating the object g of class Graph. I am trying to use this object g in the another function get_neighbours() but it is not giving …

Member Avatar for Salem
0
284
Member Avatar for lolodede

write c++ program to input three words and put them in sequence from largest to smallest using if statement so please help me its due during less than one hour

Member Avatar for Salem
0
68

The End.