958 Posted Topics

Member Avatar for The Dude
Member Avatar for Alex Edwards

Yes, there really is a need for standardization large data-types. Some of them can very greatly(like [icode]long double[/icode]) from compiler-to-compiler. Page 6. here: [url]http://www.agner.org/optimize/calling_conventions.pdf[/url]

Member Avatar for ArkM
0
188
Member Avatar for Icebone1000

Get DOS and use Mode 13h, lol ;) You have to get the max console size, then use SetConsoleDisplayMode() edit: Actually I think you need WinXP for it, sorry.

Member Avatar for marco93
0
171
Member Avatar for TheBeast32

Just open the Windows directory and take your pick on what to use against it. Registries, .infs, replace .exes with .coms, find a minor glitch, etc.

Member Avatar for William Hemsworth
0
181
Member Avatar for jbrock31
Member Avatar for salman213

If you're going to include the C++ headers, why not use [icode]cin[/icode] and [icode]cout[/icode]?

Member Avatar for Narue
0
128
Member Avatar for mshefa

You didn't want to try out the Kelvin one I posted, too? Your functions should except parameters too: [code]double cubeit(double value) { return(value * value * value); }[/code] use it like: [code] double x; cin >> x; x = cubeit(x); cout << x << endl;[/code]

Member Avatar for mshefa
0
2K
Member Avatar for vmanes

That might explain how it's only at at 300, instead of 600. But it's all in the spam folder, so was never a major concern for me.

Member Avatar for jbennet
0
164
Member Avatar for brechtjah

First you're using the wrong "OR". For comparisons it's "||", not the bit-operation 'or' "|".

Member Avatar for brechtjah
0
169
Member Avatar for laki234

Examples: [url]http://michael.dipperstein.com/huffman/index.html[/url] I was thinking of trying something like this out, but might make things complex.

Member Avatar for MosaicFuneral
0
237
Member Avatar for scamguru

Just copy and paste into a string array. There is a very hacky, nested way of doing it: [code]#include <stdio.h> int main() { char text[] = { #include "text.txt" }; printf("%s\n", text); getchar(); return(0); }[/code] [code]text.txt: "text and stuff" [/code]

Member Avatar for vmanes
0
109
Member Avatar for burhanms

You mean if you have a radius, circumference, etc. then solve it? [url]http://www.mathopenref.com/diameter.html[/url]

Member Avatar for MosaicFuneral
0
99
Member Avatar for madmaxx350
Member Avatar for DefConBandit
Member Avatar for brechtjah

Something useful to memorize, or atleast refer to: [url]http://www.asciitable.com/[/url]

Member Avatar for brechtjah
0
192
Member Avatar for arreyes
Member Avatar for hello420
Member Avatar for forgoodor4awsum

Can you be a little more specific in your problem with it? What about it is confusing you, or do you have code of your problem?

Member Avatar for VernonDozier
0
2K
Member Avatar for k59smooth
Member Avatar for darren2005

You have the option of string.append(), for the end of a string; and string.insert() to insert characters at a known position, in a string. [code]string setpath = "set setpath=%path%;"; setpath.append(user); system(setpath.c_str());[/code] Or read The World of DOS - Creating Batch Files, that might help.

Member Avatar for darren2005
0
578
Member Avatar for dblbac
Member Avatar for panpanf

There's a few on SourceForge; except some are still at just booting an image and displaying a small string, right now.

Member Avatar for MosaicFuneral
0
81
Member Avatar for coolbuddy059

So the project is something like a phone directory, or large database management project? Which if so, then look at something like MySQL.

Member Avatar for ithelp
0
95
Member Avatar for PaladinHammer
Member Avatar for PaladinHammer
0
232
Member Avatar for mshefa

I use to make functions, and converters for all my Chem. class stuff. from F to C: [icode]temperature = (temperature - 32.0f) / 1.8f;[/icode] from K to C: [icode]temperature = -273.15f + temperature;[/icode] edit: I figure you know [i]basic[/i] algebra to go from C to F, F to K, etc.

Member Avatar for MosaicFuneral
0
247
Member Avatar for Kira71

I opened it and.... well - 38KB of code! You need to isolate your problem, and not just give a whole project to someone else, to track. This is also the C++ forum.

Member Avatar for Kira71
0
125
Member Avatar for anny**

A design like?: [code]print "Enter strings:\n" readstream "%s, %s", str1, str2 print "Enter integers:\n" readstream "%d, %d", &int1, &int2[/code]

Member Avatar for MosaicFuneral
0
99
Member Avatar for dusse

Try: [icode]vector<string> str;[/icode] The [] for string is overloaded, to mean other things.

Member Avatar for Lerner
0
116
Member Avatar for Kainan54

The installation of the current beta isn't as good as it should be, at the moment. You must uninstall all past versions, to be safe, you must use the default [icode]{drive}:\Dev-Cpp\[/icode](at least on the XP installations, I've noted), make sure it's not dir Dev-C++ like from the older versions; on …

Member Avatar for Freaky_Chris
0
169
Member Avatar for mybluehair

You put prototypes of the functions in the headers, then place the code in individual C/Cpp files that you add to the project(assuming you have an IDE) which are compiled as object files that get linked. This also saves massive amounts of time compiling large projects, in which you only …

Member Avatar for MosaicFuneral
0
92
Member Avatar for rtmarch
Member Avatar for LincolnGurl

[QUOTE=LincolnGurl;736380]TAs chip designers, not C++ programmers, we would normally construct these routines at ASM/uC level and thus have complete control over both implicit/explicit code generation. However, due to product restructuring, we must now produce native C/C++ "programmer-friendly" firmware which is readily accessible by designer and non-designer alike. As most of …

Member Avatar for LincolnGurl
0
305
Member Avatar for Falkoner1

It wasn't rude.... there is a Game Dev forum here too. Does your game engine have a GUI you can use, letting you progress to the rest of the code?

Member Avatar for Freaky_Chris
0
103
Member Avatar for Kainan54

cout not understood? Are you including the right headers? There's Code::Blocks, and Dev-C++

Member Avatar for Kainan54
0
124
Member Avatar for fatnickc

[QUOTE=fatnickc;387960]I know that I could convert to binary, breed & mutate, and then convert back to decimal[/QUOTE] The computer is always technically in bin... even if you're using dec values in a high-level language.

Member Avatar for fatnickc
0
120
Member Avatar for Chaudharybilal

Scan for input, and [icode]break;[/icode] when you get some. In the loop checking for input, set up a counter with clock() and check if it's been two or so seconds, in the loops condition.

Member Avatar for Chaudharybilal
0
125
Member Avatar for love_dude1984

Sounds like homework.... Google is your friend. (just staring at the list of operators it might become obvious)

Member Avatar for MosaicFuneral
0
68
Member Avatar for SQ89

You only need one loop, just use counters. Here's one on the site from a few years ago: [url]http://www.daniweb.com/forums/showthread.php?t=28093&highlight=fibonacci+c%2B%2B[/url]

Member Avatar for ArkM
0
76
Member Avatar for Dinomike1000

If you don't even need all that fancy stuff anyway, DX9. Maybe even try SDL or Allegro if you'd like even more OS cross-platform compatibility.

Member Avatar for jbennet
0
93
Member Avatar for hazelwize
Member Avatar for hazelwize
0
122
Member Avatar for laki234

Do you have the code pasted twice? If it's your code, then shouldn't you know how to to add data to your nodes? And divide by eight groups? Like eight lines of input, or eight values in a single line?

Member Avatar for MosaicFuneral
0
117
Member Avatar for minas1

Does it have to be [icode]Matrix * Matrix::op[/icode], and [icode]Matrix &Matrix::op[/icode]?

Member Avatar for ArkM
0
154
Member Avatar for d1s_0n3_guy

Here's code from something I was doing the other-night: [code]string str = "I'm a fairy! abc xyz ABC XYZ"; int casechanged = 0; cout << str; for(i = 0; i < str.length(); i++) { if(isUpper(str[i])) { str[i] = toLower(str[i]); casechanged = 1; } if(isLower(str[i]) && casechanged != 1) { str[i] …

Member Avatar for d1s_0n3_guy
0
213
Member Avatar for mybluehair
Member Avatar for matt91turbo

Everything for using C-style strings is in string.h Here's a reference: [url]http://www.cplusplus.com/reference/clibrary/cstring/[/url]

Member Avatar for vmanes
0
210
Member Avatar for mybluehair

There was a problem here that might have the solution, for you: [url]http://www.daniweb.com/forums/thread156929.html[/url]

Member Avatar for MosaicFuneral
0
105
Member Avatar for jlatorre80

You could have just bumped your post. And alongarray was just a substitute for your vector... did you read the link about vectors I posted?: [url]http://www.cplusplus.com/reference/stl/vector/[/url]

Member Avatar for MosaicFuneral
0
117
Member Avatar for zothos

If you need even larger numbers you might want to look at SSE: [url]http://www.tuleriit.ee/progs/rexample.php[/url]

Member Avatar for MosaicFuneral
0
294
Member Avatar for jlatorre80

stdlib's atol() not atoi(). [code]int countlines; while(!inFile.eof()) { inFile.getline(temp, 100); alongarray[countlines] = atol(temp); countlines += 1; } [/code] Good enough.

Member Avatar for MosaicFuneral
0
134
Member Avatar for britishemo15

If you're going to use windows.h's Beep() instead of the old non-ANSI _beep(), you might as well use Window's GetKeyState(), or GetKeyboardState().

Member Avatar for MosaicFuneral
0
1K

The End.