132,726 Archived Topics
Remove Filter ![]() | |
I am trying to make a table of all the ASCII characters but am having some trouble. I have all the characters printed in a list order, but need to make it into about 10 columns across. Any help is really appreciated. Here is my code so far...[CODE]import corejava.*; public … Software Development java | |
Hello, I am new to java with some experience in C++. I am trying to write code that reads two different times and displays the difference in hours and minutes. 0 is midnight and the input should be in 24hr format. This program should work even if the first time … Software Development java | |
So I have been looking around and have not been able to find an answer to this. The program is for the most part complete and runs with one exception. When I enter "stop" it still runs through the program before exiting (i.e. after I enter stop it still asks … Software Development java | |
How to insert a Licence key in my vb 6.0 stand alone application plz help Software Development visual-basic | |
What do I need to gather all lines of numbers say 88 on one line, and 92 on the second and so on? I have: ifstream theFile("grades.txt"); theFile >> sc1 >> sc2 >> sc3;// this gives me each number, but I need to be able to read them all then … Software Development c++ | |
Hi. I'm David a newbie. I have just started Classes in C++ and I'm doing a GPA Calculator program. I have most of the program working but the average calculator seems to be giving me trouble. Please help. This is open to constructive criticism. All inputs will be gladly appreciated. … Software Development c++ | |
Hi, I'm working on learning OpenGL using Visual Studio 2005 and I ran into these errors: [code]1>circle.obj : error LNK2019: unresolved external symbol __imp__wglDeleteContext@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 1>circle.obj : error LNK2019: unresolved external symbol __imp__wglMakeCurrent@8 referenced in function "long __stdcall WndProc(struct HWND__ … Software Development c++ opengl visual-studio | |
Hello, if you have seen any of my other posts you will know I am working on a script to make a "vocabulary test". I currently having it functioning nearly perfectly, except I get an error if I enter the wrong word. Code: [code=python]def vocabtest(): for r in words.values(): count … Software Development python | |
anybody out there please help me out fix these bug in my code. i really couldnt figure out what's wrong with my code. input should be in a string, and the output should tell wether its a palindrome or not please![code] import java.lang.*; import java.util.*; import java.io.*; public class istak … Software Development java | |
Whats up guys, I'm writing this java program and I'm having trouble with Strings. Does anybody know how to write the following methods? public void bubbleSort() //sorts the array strings using Bubble Sort Algorithm (ascending) public void selectionSort() //sorts the array strings using Selection Sort Algorithm (ascending) public void insertionSort()//sorts … | |
this is the quick sort and I know that it has O(n^2) time complexity at worst case (when data is already sorted) put how I count the operation that makes this time complexity i.e which part of the code will mostly excute when elements are already sotrted so that when … Software Development c++ | |
I have declared kbSize as an integer earlier in my code as a global variable, so there's no confusion from replies with it being local, and have a formula that process's its value, but for some reason when my program hits this if statement, it always calls timeStamp(); even when … Software Development c++ | |
I'm working on an assignment that I need to move a sphere around the screen with the keyboard arrows. I got the movements working and all that. But I'm drawing a blank on an "if" statement to prevent the image from going off the screen when the edges are reached. … | |
Hi all. I am trying figure out why the compiler is giving me this error message: error LNK2001: unresolved external symbol "double __cdecl calcWindChill(double,double)" (?calcWindChill@@YANNN@Z) HomeWork3.obj I've declared, defined , and called the calcWindChill() function. I've obtained the values needed to feed into the function. They're not getting put into … | |
I have to create a program that reads data from a file about census info specifically a last name and the frequency of which last name appeared in census. I have to call a function to read in the data, calls a function to display the data, do a binary … Software Development c++ | |
Hi Guys, I am trying to serialise a SAFEARRAY to a string. I tried this: SAFEARRAY* content; ... CComVariant value( content ); value.ChangeType( VT_BSTR ); BSTR bstrValue = value.bstrVal; _bstr_t temp; temp.Assign(bstrValue); std::string content(temp); However I get this error: error C2040: 'content' : 'std::string' differs in levels of indirection from … Software Development c++ | |
I'm currently developing a program to scrape my university's online timetable system and then convert the resulting data to iCalendar data. It's a learning exercise for me(I'm teaching myself C++) and there's a few things that still get me. I've been using XCode as my IDE for a while and … | |
I'm getting a compile error with this bit: [code]int valid(const char str[]){ int i, total = 0, multiplier = 10; for(i=0; i < 11; i++){ str[i] * multiplier += total; //this line is an invalid lvalue multiplier--; } if(total % 11 != 0) return 0; else return 1; [/code] I … Software Development c++ | |
I have an assignment for class and I am having a bit of trouble. I need to do a few things to improve the efficiency of this program. The first thing I am having trouble with is that we are supposed to modify the shuffle function to loop row by … Software Development c++ | |
Hello, I've been trying to solve a problem for quite a few hours. There's a 3x3 matrix with the digits 1-9 randomly placed. The task is to palce the digits in a particular order so that every number formed on a column or roll or diagonal can be devided by … Software Development c++ | |
I want to know how to position and rotate a gun to make it look like it does in other FPS games, any help?!? Software Development c++ | |
how do i read character by character from a text file?I need to check for "\n" and split the file on it. for eg: I am a girl.I livein acd. My name is sdljnl. usoihuid. So finally i want to delete the 1st msg(line) from thefile so that the file … Software Development java | |
is there a way to contain the text in a normal format when writing out to a text file? By this i mean, if i have cout output a million a's, instead of one long line if u open and view the txt file, it is many rows. Thanks Software Development c++ file-system | |
I have made a Form application that contains of 2 Forms. In these 2 Forms I have added controls and a lot of code behind. How will I "Close the code" to this project so no one can open it and see all my code that I have done. I … Software Development c++ | |
Hi I have certain number of books which each have an author, title and ISBN number. How is the best way I can store this so that when I want a list of the books I will be able to list the books with the title, author and ISBN number? … Software Development python | |
Hi Dears! I am a Beginner, Please Help Me. If you Can Help me to find out how to sort a 2d arrays of characters with [U]recursive bubble[/U] sort algorithm. I have got something but it doesn't work. what is my mistake? I Did codes below So far, but it … | |
[icode] someprogram.cpp -----------> #include<string> | | #include"someheader.h" V someheader.h --------------> #include<string> [/icode] what happens if I do this? Is it necessary to include the headers into all files that use them, or can you just go [code=C++] #include<string> #include... #include"someheader.h" #include"anotherheader.h" [/code] and string and other required headers will be … Software Development c++ | |
I don't know if this is the right place to post this but here goes nothing. I know this is such a cliche from us C++ coders, but I wanna make my own open source OS. I would use something like BSD or Linux, but I really wanna use C++ … Software Development assembly bsd c++ gui open-source | |
i am trying to read a text file like this and store each number as an integer (without the decimals) and print them 1 3 5.6 3 2.1 4 2 2 3 4.2 1 here is what i have now [code=C] #include <stdio.h> #include <conio.h> void main() { int i, … Software Development c | |
Hi, I want to build an application that can send messages to computers connected over a LAN. This is something just like Email over LAN. It must also be possible to attach files just like an email. Can someone just help me as to how to go about building this … Software Development vb.net | |
/* MATRIX ADDITION */ #include<stdio.h> #include<conio.h> #define MAX 100 struct Matrix { int Element[MAX][MAX]; int No_of_Rows; int No_of_Cols; }; void MatrixAdd(const struct Matrix *,const struct Matrix *,struct Matrix *); int i,j; void main() { int p,q; struct Matrix Mat1; struct Matrix Mat2; struct Matrix res; clrscr(); printf("\nEnter size of the … Software Development c | |
I can't find the error and also C2182 error: illegal else without matching if. [code=c] #include <stdio.h> int main (void) { int count=0; //counter int hours; //hours char choice; //users choice for continuing float total=0; //total charge //print display printf ("%-15s %-10s %-10s","Customer","Hours","Total Charge"); //assinging customer number count++; //ask for … Software Development c | |
Hello every one, I have a confusion regarding arrays and pointers, My question is: "Is array name a pointer (rather a constant pointer)"?? I feel the answer is 'yes' because we can use the de-referencing operator(*) with the array name, Also, because array name is a constant pointer so we … Software Development c | |
i want to show output like this [code] A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B … Software Development c | |
I use this [code] #include <fstream> #include <iostream> using namespace std; class Student { public: char FullName[40]; char CompleteAddress[120]; char Gender; double Age; bool LivesInASingleParentHome; }; int main() { Student one; strcpy(one.FullName, "Ernestine Waller"); strcpy(one.CompleteAddress, "824 Larson Drv, Silver Spring, MD 20910"); one.Gender = 'F'; one.Age = 16.50; one.LivesInASingleParentHome = … | |
Hi, i'm making my own game engine on sdl + opengl i also know that i can manage file for my setting and save game that way (i am on windows) [code] #include <windows.h> void ini::setfile(std::string name) { name += ".ini"; std::string directory; char path[1024]; GetModuleFileName(NULL, path, 1024); directory = … | |
[B]Hi i've been assigned with doing a torn square, and i've kinda got it working with the code below.[/B] [code] import turtle turtle.reset() length=100 degree=60 i=0 while i < 4: turtle.forward(length/length*40) turtle.right(degree) turtle.forward(length/2) turtle.left(degree+degree) turtle.forward(length/2) turtle.right(degree) turtle.forward(length/length*40) i+=1 turtle.right(90) else: raw_input("there's hopefully a square, all torn like!") [/code] as you … Software Development python | |
void main() { int number; totalCallsPtr pcall=NULL; getData(&pcall,&number); } void getData(totalCallsPtr* pcall,int* number)//get data from the text file { int i,n; FILE *f1; f1=fopen(INPUT, "r"); if (f1==NULL) printf("File not open!\n"); else { fscanf(f1,"%d",&n); *pcall=((totalCallsPtr)malloc(n*sizeof(CALL))); } if((*pcall=(totalCallsPtr)malloc(n*sizeof(CALL)))==NULL) printf("not enough memory to allocate"); for(i=0;i<n;i++) { fscanf(f1,"%d ",&pcall[i]->day); fscanf(f1,"%d:%d:%d ",&pcall[i]->startCall.hours,&pcall[i]->startCall.minutes,&pcall[i]->startCall.seconds); fscanf(f1,"%d:%d:%d ",&pcall[i]->endCall.hours,&pcall[i]->endCall.minutes,&pcall[i]->endCall.seconds); fscanf(f1,"%c",&pcall[i]->type); … Software Development c | |
Hi there, Can C# code , execute commands we write in the cmd window ? i.e: is there a way to let a C# application interact in somehow the command prompt? example : we use the command prompt line: ipconfig to see info about the IP address of the machine, … Software Development c# | |
Please help me digital image prcessing.Please send Visual Basic code for image sharpning,Bluring and nagation Software Development image visual-basic | |
Awhile ago I wrote some functions to convert from isbn10 to isbn13, or from isbn13 to isbn10; and subsequently some function to validate isbn 10/13 numbers. I thought I'd post them here to see what people think of them. So, [code] ' Validates an ISBN13 number. If false, it's invalid, … Software Development vb.net | |
Error is coming Registry Access is not allowed.While Opening a Key. Can Somebody help me out. [code] Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click NewDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "Sonia") End Sub Private Sub NewDelete(ByVal KeyPath As String, ByVal KeyName As String) Dim sMainKey As String Dim sKeyPath As … Software Development microsoft-access microsoft-windows vb.net | |
Hello sir, I am using VS2008. I am using save file dialogue box and i am saving the contents of richtextbox which is in the form. So i used the coding below. It only creating the empty file but not the text which i typed in the richtextbox. [CODE]Private Sub … Software Development file-stream vb.net | |
Hey guys im making a simple program. I have a while loop that continues while the bool quit ! = true. I am trying to test that in a statement like this: [CODE] String userdecision = ""; while (quit!=true){ //start while System.out.print("Would you like to continue with another transaction?"); [B]userdecision=in.next();[/B] … Software Development java | |
Hey frnds,someone can just give me a hint from where to start. I want to check the Registry Permission of Subkey programmatically. Whether the Subkey has Read permission,Write Permssion, Delete Permssion. Software Development vb.net | |
hi, can someone help me? i need a hand to get a script for a smal change. iget this kind of structure... 20080926RIM881T.20081127.104856 20080926RIM881T.20081127.104831.done 20080926RIM881T.20081202.084408.done 20080926RIM881T.20081127.104845 20080926RIM881T.20081127.104834 20080926RIM881T.20081216.084909.done 20080926RIM950T.20080929.101124.done 20080926RIM951T.20080929.101124.done 20080926RIM952T.20080929.101125.done i woud like to have a script to find all files with .done then i shoug change all files … Software Development shell-scripting | |
Hello, I have a question I should write a program that read words from file text and sort it by ABC letters in array, and ask the user to enter a sentence and chcking if the words in the sentence existing in the array. the program checking all the words … Software Development c | |
code:: [code] import java.io.*; import java.util.*; public class Global{ public static int flag=0; } interface filebackedfifoqueue { void put(String msg); String get(); } public class trying{ public static void main(String args[])throws IOException{ int ch=1; String msg; msg = new String(); while(ch!=0) { BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); System.out.println("\nMenu"); System.out.println("\n0.EXit"); System.out.println("\n1.Publisher"); System.out.println("\n2.Subscriber"); … |
The End.