132,726 Archived Topics
Remove Filter ![]() | |
(edit) Code was too long for forum. I'm splitting it in 1/2 I'm currently working on a Direct3D class that simplifies D3D, so I can use it to make games, applications, etc. I started on it yesterday, got it to work so it draw triangles with a different color on … Software Development c display file-stream video video-card | |
Here's my code. I just want to return the length of a string. How do I do that? Any assistance would be greatly appreciated. [code] #include "stdafx.h" #using <mscorlib.dll> using namespace System; int _tmain() { String *strString; int intLength; Console::Write(S"Enter a String "); strString = Console::ReadLine(); Console::Write(strString); intLength = strlen(strString); … Software Development c++ | |
Is there a way to clear the getchar variable in a loop after you go through the loop the 1st time? Software Development c | |
#include <iostream> #include <conio.h> void input(char *str) { bool quit = 0; unsigned char key; for(int i = 0;quit != 1;) { key = getch(); switch(key) { case 8: // Backspace if (i > 0) { i--; *str--; std::cout << "\b \b"; } else putch('\a'); break; case 13: // Enter … Software Development c | |
// This program asks the user to enter the length of a rectangle // then for the width of a rectangle , to find the perimeter by // this 2 * length + 2 * width #include <iostream.h> return unsigned long int Perimeter ( unsigned short int , unsigned short … Software Development c++ microsoft visual-studio | |
i get a error that i cant figure out any help? void main() { // Initialize WinSock int wsaret=WSAStartup(0x101,&wsaData); if(wsaret) return; //Create the SOCKET SOCKET conn; conn=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); if(conn==INVALID_SOCKET) return; //clean up mess closesocket(conn); WSACleanup(); } i get this error: wsaData : undeclared identifier any help Software Development c | |
well i have been working on a server client program and i got the server working but the client isnt. Program Flow of a simple TCP client: 1)Initialize WinSock library using WSAStartup() 2)Create a IPPROTO_TCP SOCKET using socket() 3)Connect to the server using the socket we created, using connect() 4)Close … Software Development c client-server | |
I wanted to make a visual basic 6 program that allows the user to move the controls around in the program, such as buttons, text boxes, etc. Somewhat like the Microsoft Visual Basic itself. How do I start doing this, I've read everywhere, including the books I have, and it … Software Development microsoft visual-basic | |
Hi.I have been learning c++ lately and I'm rather interested in learning to produce source codes and applications(games maybe).I need know that whether my choice about learning c++ for game programming is right or not.I'm not interested in web developement.I have read some of the posts in c++ forums and … Software Development c++ ide open-source | |
i found the code to read local ip but i was wondering could it be any smaller then this. #include <winsock.h> #include <wsipx.h> #include <wsnwlink.h> #include <stdio.h> int main() { //////////////// // Initialize windows sockets API. // WORD wVersionRequested = MAKEWORD(1, 1); WSADATA wsaData; if (WSAStartup(wVersionRequested, &wsaData)) { printf("WSAStartup failed … Software Development api c display windows-api | |
well i made this little program to help me check my algebra home work it was soppose to be a simple thing so it is badly coded and rushed but something has happened that i dont understand. i have spotted the problem but dont know why its doing this. for … Software Development c++ | |
ok.. here I am with a double pointer to a 2D array and I am copying the data from another struct in to this 2d struct array. It gives me an illegal opperand error. Code: data.rows=polar.rows; data.trace = (SQwPOL**)calloc(polar.width,sizeof (SQwPOL*)); for (int i=0; i<polar.width; i++) { data.trace[i]= (SQwPOL*)calloc(polar.width,sizeof (SQwPOL)); for … Software Development c | |
Home work agian. I'm required to write a sales analysis program. One of the function dose enter a new salesperson, it will prompt for personal detail. but if user keys in -1 at any point, it will cancel process and return to main menu options. BUT according the programming standards … Software Development c++ | |
Hello, Ok.. here is another problem I have come up with.. I have a string of numbers (comma or '\n' separated (from .csv file)). I have allocated an array of integers to put in the numbers into yet how do I actually do it. Example: I have "13, 34, 23, … Software Development c | |
ok, i'm new to c++, please bear with me........ i have a program... it asks the user to enter the price, then it asks to enter the interest rate from, and then interest rate to, and then the loan period (> 2 years) The formula used is: result = price … | |
I am new to c++, and i have a program to do as follows: 1) fill a 2D array for the seat chart with * ... DONE 2) add a passenger to the plane I am stuck here, i have the info put into the cin statements etc, but how … Software Development c++ | |
Hi again.Read the source code below please: // Determining the size of variable types #include <iostream.h> int main() { cout << " The size of a bool is:\t\t" << sizeof(bool) << " bytes.\n"; return 0; } p:s:I have not included the other variable types because there was no error message … | |
I just started my first c++ class and we recieved our first assignment. I dont have a compiler at home and live far away from school. I have 2 questions: These are the program requirements: Program 1: Prompt the user and let them enter three integers. Store them in three … | |
Hello, I really don't know if this is more of a Mac of C++ question but.. I am doing a loading of a file with short CSVload (char * filename) //called from main { //openning a file and checking if it exists FILE * datafile = NULL; if ((datafile=fopen (filename, … Software Development c++ first-post redhat | |
Hi, Could someone help me with this error I am getting. I downloaded this program from a source code website.I am not a windows programmer. When I compile a program in VC++ 5.0 the following error is be shown: Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/KeyLogger.exe : … Software Development api c++ data-structure windows-api | |
Hi. I wanted to create a "locking" program that stores information needed for another exe. When the person enters all the information needed and the file that he/she wants to "lock", the exe file will create another exe file that stores all the information being typed previously and also the … Software Development c | |
[code]#include <stdio.h> #include <stdlib.h> #include <conio.h> int main () { int i,j; puts ("Trying to execute command CD "); [b] i = system ("cd c:\text"); [/b] if (i==-1) puts ("Error executing CD"); else puts ("Command successfully executed"); puts ("Trying to execute command del "); [b] j = system ("del *.txt"); … Software Development c | |
Heloo, Is this possible to Write in Sectors in CD (CD-R/CD-RW) by C++ Code. I am in serious problem with this. If not possible, Is there any tool exists that may help me. Please help me. Thanks in forward. Ahsan Mostafa Bangladesh [email]mostafa_bd@hotmail.com[/email] | |
Hi, I am doing Master's in Computer Science. I am trying to upload my applets made in Java 3d on web but I want all the users to see them even those who don't have Java, JRE, or plugin. Please help. Anurag Software Development java | |
I developed several macros on my computer, but then I copied and pasted the macros on the c drive>program files> microsoft office> templates of several of my users so that they can access the macros when they go into Word. In Word, they click file> new and choose the macro … Software Development microsoft microsoft-access microsoft-office visual-basic | |
HI, My project is due tommorrow, I am stuck at this error which i have no clue. I have tried all my best to understand what is its cause but couldn't. I really need help. All I am saying is if you can explain why its doing this. ***Problem*** We … Software Development c++ ios open-source | |
I'm trying to put the whole program into a loop and I'm not shure where to place it. I have lots of diffrent windows that have to be updated. I have tried adding it into the function that starts the program but it just gets stuck in a loop and … | |
Hi im 14 aswell, and have developed one game thus far(simple pong game) i am understanding how everything works and would like to know what would be a good second game? ;) Software Development c | |
Why doesn't this work? [code]Public Class testDates Inherits Object Private mMonth As Integer Private mDay As Integer Private mYear As Integer 'constructor Public Sub New(ByVal monthValue As Integer, ByVal dayValue As Integer, _ ByVal yearValue As Integer) mMonth = monthValue mDay = dayValue mYear = yearValue End Sub Public Function … Software Development visual-basic | |
i need 2 programmer to make a operating system for me. i will pay them nothing i have no experience in programming whats so ever. but aventualy this operating system will take off and will compete with windows it is then that you can have a small percentage of the … Software Development c operating-system | |
hey guys i have been studing c++ for a while now. i have learned so much only problem is i find it difficult to apply any of my knowledge. i mean i knwo how to make things but i dont know what to make. thats why i came to you … Software Development c++ | |
Hi..I've been searching all around to find out whether I could submit an entry in a JTextField by clicking a separate button created (say, a "submit" button). It seems that, the value entered in the text field will only be appended if I press the Enter key. Can someone please … Software Development java | |
Hi all, I have a customer that has an application using the runtime BASRUN20. The data tables use the extension .D and .X They also have a utility to rebuild the files using a program called BUILDX.EXE. There is no source code. Does anyone have any suggestions on how to … Software Development qbasic | |
Hi, there! Anyone mind lighten me up on the above subject? I am currently developing a simple game in java. So I was in the process of deciding whether to use an applet or application to present it. Software Development java | |
Anybody understand these? I'm having the hardest time with them. Partly because I don't see a use for them :P But what would be an example of a time when you would need to operate on a bit itself? As in, what is their purpose? Thanks for any help :) Software Development c | |
hello i wanted to create a tetris game. i would really appreciate it tho if some one could roughly outline what i have to do. leave the coding for me i will take care of that. Software Development c++ | |
I am currently working on a game called realm knights ([url]http://www.realm-knights.tk[/url]) i need 2 c++ programmers. Email at yonlongshots@hotmail.com or realm_knights@hotmail.com or post at the forums at realm knights. Or even post on here :D Software Development c++ email first-post | |
I'm a long time Perl programmer that has developed some pretty complex E-commerce sites using Perl CGI and mySQL. I have a brand new site development project which will also be a dynamic, mySQL driven site. I've done some reading about Perl versus PHP and it appears the main conclusions … Software Development mysql objective-c perl php unix windows-server | |
Hi. I'm in a Java class at harvard, and they gave us this assignment to create a function moveKiloMile(); , which moves an on-screen robot 1000 units. We can declare the function by using a function moveMile(); , which moves the robot 8 units. Below is the code that I … Software Development java | |
Programmers, Coders, Amateur programmers and Part time programmers apply within. Im looking to recruit amateur and part time programmers who are not proffessionals but who code or program in there spare time because they are enthusiastic and love it. You dont need proffessional qualifications, or a degree to fill this … Software Development audio c++ career first-post | |
i am doing a software design class for my first year i had a written this psuedocode for a Timer type program type program, my teacher tells me there are errors in it i dont know whats wrong could you tell me please. here it is Program Timer Var mm … Software Development display visual-basic | |
Hi im a newbie here!I wish to build a music website based around emec'in (MC'in)!The game would b built in2 the site! There r 3 wayz MCz can battle online: 1)Vocally!(MCs rap to the music over a mic)(I dont plan on doin thiz 4 my site yet) 2)Forum(MCz post thier … Software Development first-post java | |
I have CodeWarrior v7.0, an IDE for C++ and Java. I can get the C++ functionality working, however whenever I try and begin a Java project it gives me an error saying "Couldn't generate source code because Java Virtual Machine could not be started." I've installed the latest versions of … | |
first post! hello all. :) i'm in the process of converting some vbscript into jscript at work, and not being an expert when it comes to any sort of javascript (or c syntax generally) i am now stuck. specifically with the 'switch' statement. the application is a server-side api that … Software Development api asp first-post java javascript vbscript xml | |
I've made some C++ dos programs, and it runs fine, and does everything I want it to, but the moment it does the last line of code, it exits. I use Visual C++, and it stays on when I preview it in there, but after I compile it, and run … Software Development c++ | |
I was thinking of creating this program for a school related project and was seeking advice/guidence concerning the matter. I prepose to create 7 distinct personalities and have them communicate/interact in a virtual world. I will be storing data that has been collected through everyday discussion such as questions, responces, … | |
Hello>>> How are you all? I need a quick help with my assignment... it is in C not in C++... So, Could you help me? I don't know what to do!! the question is: Write a program that reads a data file containing a C program and writes it to … Software Development c++ | |
Hi. I am looking for joystick driver or something similar, what will pretend as joystick, but will use a mouse. I mean it should be something like joystick for games, but there will be only mouse attached to PC. Does anyone seen it somewhere? Or is anyone able to code … Software Development c first-post |
The End.