417 Posted Topics

Member Avatar for FallenPaladin
Member Avatar for Terry Robinson

i ran into an issue such as this a while back and ended up just writing a library to handle all SQL connections so that all forms had a central method for running their methods.

Member Avatar for JerryShaw
0
399
Member Avatar for eeneilson

It can be tricky, there is a playSound function in C++ but it's not all that powerful so you may be best suited to look for a library to do that, or feel free to get your hands dirty with some DirectX. :) [url]http://msdn2.microsoft.com/en-us/library/ms712879.aspx[/url]

Member Avatar for daniweb2013
0
354
Member Avatar for n.aggel

your code worked and compiled fine for me (besides a typo in your post) what exactly are you referring to as not working? [code=cplusplus]cout<<toupper(*pos)<<" "; //without cast it doesn't work, why?[/code] while it does work the output from it may not be what you are expecting. the output from toupper …

Member Avatar for n.aggel
0
402
Member Avatar for niki01

I've learned that what i actually write for clients and what I learned in class and books is pretty darn far apart and for the most part the instructor has become too far seperated from reality to give good advice. You get a lot of "The book says..."

Member Avatar for Killer_Typo
0
156
Member Avatar for zandiago

Make sure to test if the stream is open inFile.is_open() if it's not open your vowels.txt file is in the wrong directory. that being said if you want I can PM you a working version, a little simpler, but i will wait till you struggle through a bit more before …

Member Avatar for zandiago
0
201
Member Avatar for vn_utami

hehe, i just wrote a counter that will go all the way up to 10001 instantly, though i havnt tested it for higher values. super simple and absolutely NO goto's. [code="cplusplus"] #include <iostream> #include <math.h> int main( void ) { // count to the 10001'st prime int primeCount = 2; …

Member Avatar for Killer_Typo
0
137
Member Avatar for The Dude

The interface is far to cluttered to use efficiently especially when browsing search results. I had to close the page as soon as my results came back because it was far to much work for my eyes to find anything of real value.

Member Avatar for The Dude
0
175
Member Avatar for Killer_Typo

Since i am going to have to learn Smalltalk well enough to convert it to .NET ( or so i have been told ) i decided to convert some of the C++ tutorials to Smalltalk. Namely this one: Write a program which performs addition, subtraction, multiplication of matrices. The dimensions …

Member Avatar for Killer_Typo
0
213
Member Avatar for Killer_Typo

how many of you out there use and what about it do you find usefull or to be a headache. I will be using it on a new system i was just picked up to support, the primary interface will be written in .NET languages but i will need to …

Member Avatar for Rashakil Fol
0
145
Member Avatar for PoonamDwivedi

pick up the C# pocket reference, cant go wrong with a book that leaves out the filler and gives you what's important. :)

Member Avatar for pygmalion
0
172
Member Avatar for Ragnarok

not sure about the update thing, but in your or die statment you should change it to [php]or die(mysql_error());[/php] that way you can tell what the error might be that your recieving. also i dont see a problem with sending various mysql query's its a good way to keep things …

Member Avatar for JeniF
0
103
Member Avatar for banGerprawN

can i get the EXACT error messages that pop up, every bit of detail is nessicary!! in the mean time, if you dont mind reupdating your computer (granted you are on Windows XP and i see you are from your descritpion) you can try SFC /SCANNOW (go to run and …

Member Avatar for AkVirgo
0
304
Member Avatar for dev.cplusplus

[quote=dev.cplusplus;415627]Hi to all I hope you can help with the following issue I have, thanks in advance. I'm working in an application that insert text to pictures. The problem is that after inserting the text, the size of the new pictures is smaller(in KB). I'll explain myself the original picture …

Member Avatar for Killer_Typo
0
182
Member Avatar for krnekhelesh

[URL]http://www.daniweb.com/forums/thread82074.html[/URL] posted just a few below this. as well as some good examples linked i believe.

Member Avatar for Salem
0
245
Member Avatar for kobi

he probably left off his method declaration [code="csharp"] private void LoadScenario( string[,] Vars ) { } //but if you only need one portion of the string in vars private void LoadScenario(string Vars) {} //then call like this.. //assume we are inside of a class at this point LoadScenario(vars[x,y]); //where x …

Member Avatar for kobi
0
141
Member Avatar for zite.1

yes it can be a bit of a pain at first but using the windows api it can be done :) this is of course in windows, you need to specify the OS for a more specific answer. [URL]http://msdn2.microsoft.com/en-us/library/ms632587.aspx[/URL]

Member Avatar for Arctic wolf
0
801
Member Avatar for Firestone

java compilers and the java runtime environment are created using C++ learning both C and C++ is good but you may find yourself trying to unteach yourself things from C when you work in C++.

Member Avatar for Rashakil Fol
0
374
Member Avatar for jbennet

[quote=jbennet;407587]Okay here is some code I have made: [code] /*============================================= Number Guessing Game Uses the srand() function and loops. James Duncan Bennet - james.bennet1@ntlworld.com ===========================================*/ #include <iostream> #include <cstdlib> #include <ctime> #include <fstream> #include <string> using namespace std; int guess = 0; int tries = 0; string line; int main() …

Member Avatar for jbennet
0
165
Member Avatar for tformed

working on my setup here [code="cplusplus"]#include <iostream> #include <map> #include <string> using namespace std; class x { char str [40]; public: x () {strcpy (str,"");} x (char *s) {strcpy (str,s);} char *get(){return str;} }; bool operator< (x a, x b) { return strcmp (a.get(),b.get())<0; } class y { char str …

Member Avatar for Killer_Typo
0
4K
Member Avatar for Phrogramer

[quote=Phrogramer;374055][B]Say I have some software and I have it all finished and everything[/B], how do I go about getting it into shops? How do I go in a and talk to them? I don't mean shops like PC World (yet anyway) I mean my local PC shop. How do I …

Member Avatar for Rashakil Fol
0
184
Member Avatar for hinduengg

[QUOTE=darkscript;400613]The idea here is to make each character in the string exist in every position, for example: string is "JOY" so taking J:- 1st pass: "JOY" 2nd pass: "OJY" 3rd pass: "OYJ" taking O:- 1st pass: "OJY" 2nd pass: "JOY" 3rd pass: "JYO" taking Y:- 1st pass: "YOJ" 2nd pass: …

Member Avatar for hinduengg
0
1K
Member Avatar for Narue

because i happen to think you are one of the brighter minds i have met in a while i will take you up on your challenges. i will post back shortly with some code :-D

Member Avatar for Bench
0
498
Member Avatar for phalaris_trip

since you are using VC++ i am assuming you arein the .NET framework? do you happen to be working with windows forms? System::Windows::Forms if so then you can capture keyboard input very easy on any form.

Member Avatar for phalaris_trip
0
229
Member Avatar for DinoBod
Member Avatar for Killer_Typo

started a new thread because naru got my interest. please explain. [code="cplusplus"] #include "stdafx.h" #include <iostream> #include <string> #include <cstdlib> using namespace std; void reverseword(char * reverse) { size_t size = strlen(reverse); //get the size of the char * for(size_t i = 1; i <= size; i++) { cout << …

Member Avatar for Killer_Typo
0
260
Member Avatar for ElieK

you dont need C++ to do this. in fact running a shutdown on mass ammounts computers is better suited for a NT script. you could just as easily write a bat file [code]shutdown -r -f -m \\192.168.1.104 -t 60[/code] just open notepad, save as .bat and run it.

Member Avatar for Bench
0
158
Member Avatar for radskate360

so lets say you have an array of names and you want to itterate through all of the names and each letter in the name [code="cplusplus"] string allnames[20]; //lets say we have 20 names for(int i = 0; i < 20; ++i) { //get the length of the names int …

Member Avatar for iamthwee
0
170
Member Avatar for Naseem89

[URL]http://www.cplusplus.com/[/URL] great resource, i use it for the most part.

Member Avatar for Naseem89
0
119
Member Avatar for Braveheart

not to be rude but your models/environments dont show much but the same item composed of simple primitives copied over and over again. not enough variation in your work.

Member Avatar for FireNet
0
70
Member Avatar for m_meena

try doing a reinterpret cast reinterpret_cast<new data type> (expression to convert) or you may have some data wrong

Member Avatar for Ancient Dragon
0
56
Member Avatar for 1qaz2wsx7

[URL]http://www.connectionstrings.com/?carrier=pervasive[/URL] you are still going to need to go to pervasives website and download the appropriate driver to use and furthermore you should configure/test the driver.

Member Avatar for Killer_Typo
0
79
Member Avatar for krnekhelesh

vectors are much like arrays [code="cplusplus"] #include <vector> int main() { //standard way to create an array int myarray[someconstsize] = { 0 }; //assigns all values to default zero //vector declaration vector<int> myvec;//declares an int type vector //adding data to them myarray[0] = 4; myvec.push_back(4); //adds four to the end …

Member Avatar for JRM
0
273
Member Avatar for bluebird
Member Avatar for shadrakni

[QUOTE=shadrakni]i just signup to ask you to show me the basic and advance script for creating a online game startup bot[/QUOTE] though i personally dont know how to do this, you are going to need to give alot more info. like what game is it, how do you connect to …

Member Avatar for ~s.o.s~
1
360
Member Avatar for kodiak

easy!! this is more of a command shell question though :-/ seperate each command with the & symbol use a && to ensure that the following command is only run if the previous was successful so to go up a directory and get the contents [code="cplusplus"] system("cd .. && DIR"); …

Member Avatar for Bench
1
2K
Member Avatar for mytime19

post your current code for the entire file that is throwing the errors. please wrap using [ code="csharp" ] [ /code ] tags.

Member Avatar for f1 fan
0
173
Member Avatar for ace5798

[quote=ace5798;401378]PLEASE HELP.... I was wondering if someone could help me. I am taking a programming class and I am having alot of problems. When I began my class we were given a copy of Visual Studio 2003. I had alot of problems with it and when I would go to …

Member Avatar for quintoncoert
0
114
Member Avatar for jenco

you need to check to see which item has been selected so when the event is raised do a check to make sure that the selected item is the right one.

Member Avatar for Killer_Typo
0
105
Member Avatar for danysabin

to get a random within a range [code="c"] int min = 33; int max = 127; int range = (max - min) + 1; //now generate some random numbers int somerandomnum = min + (int)(range * rand() / (RAND_MAX + 1.0)); //method will always generate a random number within range …

Member Avatar for danysabin
0
508
Member Avatar for kodiak

FIXED! [code="cplusplus"] //get the length of a string using the sexually transmitted library #include <iostream> #include <cstdlib> using namespace std; int main() { string foo = "mystring"; cout << foo.length(); } [/code] EDIT: because i only have so long to edit i may have to double post to get some …

Member Avatar for Killer_Typo
0
307
Member Avatar for stonecoldstevea

also the logic is wrong in your code, with your current example only removes the character in the third position it does not remove every third character. something like this creates close to what you are asking [code="cplusplus"] // string_manip.cpp : Defines the entry point for the console application. // …

Member Avatar for Killer_Typo
0
130
Member Avatar for pixrix

[quote=pixrix;398868]what he mean is using C++ language n code.. what is the dif.. how can i change it[/quote] from what i understand C++ is a subset of C so all C code should compile in a C++ compiler. without going through your code line by line i guess it would …

Member Avatar for ~s.o.s~
0
298
Member Avatar for JRM
Member Avatar for JRM
0
120
Member Avatar for ad_rulz

i will check it but also you should try running it a few times to see what happens. EDIT: also please include any headers and other functions you may have defined :)

Member Avatar for ad_rulz
0
580
Member Avatar for gurusamy

fastest method [code="csharp"] string splitme = "foo,bar,feet,meet,meat,skeet"; ArrayList gatherSplit = new ArrayList(splitme.Split(new char[] { ',' })); [/code]

Member Avatar for Killer_Typo
0
492
Member Avatar for hinduengg

[quote=hinduengg;396044]Thank you so much for the SUPERB explanation . Now I would try out a program that implements insertion sort and see to it whether I am successful . Loads of thanks once again. :)[/quote] now it's time to write your own insertion method :D no better way to learn …

Member Avatar for hinduengg
0
200
Member Avatar for radskate360

try naming your functions relevant to what they do. i will go through this now and see what i can do to help you though :)

Member Avatar for Killer_Typo
0
119
Member Avatar for quintoncoert

My guess is you could maybe use it for understanding the process/concepts but i doubt you could get much more than that. PHP has much language syntax that mimics C++ but i doubt i could use PHP as an entry into C++ :)

Member Avatar for Killer_Typo
0
96
Member Avatar for Gunner54

go to the MSDN website and look up the function you will find everything you need.

Member Avatar for Killer_Typo
0
92

The End.