132,726 Archived Topics
Remove Filter ![]() | |
[Code:C++] bool CheckSymmetry(char *File , vector<string>& vertex_set, vector<vector<string>>& edges,vector<string>& char_first) { ............. .......... ........... return true; } Here i m getting the following errors:- error: edges' was not declared in this scope error: `&' cannot appear in a constant-expression error: `>>' should be `> >' within a nested template argument … Software Development c++ | |
when i convert a program into an application it brings database error Software Development visual-basic | |
Hi The following my code snippet [code=c++] void main() { vector<vector<string> > edge_set_test; [B]edge_set_test[0][0]="1"; edge_set_test[0][1]="0";[/B] cout<<"\nTesting values "<<edge_set_test[0][0]<<" "<<edge_set_test[0][1]; } While assiging the values to the vector it throws runtime error what can be the reason for this.. Software Development c++ | |
Can anyone please help me here? the IpoptApplication.cpp and .hpp do exist, plus i have specified the ipopt.lib file path in the linker setting of the property page. what is confusing is that, when lapack, asl, hsl and ipopt are compiled, each produces its own 'ipopt.lib' of a different size, … Software Development c++ | |
![]() | This is my code below: [code=cplusplus] using namespace std; int main(int argc, char *argv[]) { int thisisanumber; int SecondNumber; int TotalNumber; TotalNumber = thisisanumber + SecondNumber; cout<<"Please enter a number: "; cin>> thisisanumber; cin.ignore(); cout<<"You entered: "<< thisisanumber <<"\n"; cin.get(); cout<<"Please enter a second number: "; cin>> SecondNumber; cin.ignore(); cout<<"Your … Software Development c++ |
Write a complete C program to perform Matrix operations such as Addition, Subtraction, Multiplication and Transpose according to the user’s choice. The program should display the following menu to the user for them to select one of the five options listed. ------------------ MAIN MENU ------------------ 1. MATRIX ADDITION 2. MATRIX … Software Development c matrix-multiplication | |
I cannot figure out the correct way to de-serialize a string passed via xml-rpc. If I print out the string I get [code] {'params': ['123', 3], 'methodName': 'function'} [/code] I could split the string, and then drop unwanted characters. But, that seems like the wrong way. Any help would be … | |
Hi, I have a class [inlinecode]SubDevice[/inlinecode] with a function [inlinecode]action[/inlinecode]. For each instance of SubDevice I want to define another action, so it's a parameter of SubDevice's class constructor. Now some of the action functions need additional parameters, but that's normally not a problem because I can write something like … Software Development python | |
Ok so I'm trying to use menu bars to grey out different widgets in my gui il show you all the lines that i think are important and the error messages for each command i have tried. [CODE]root = Tk() input_text = Text(root, height = 10, width = 25).grid(row = … | |
Hi, I'm working on a new project and I would like to use VB.Net in Visual Studio 2005. I'll import data in a row/column format.I've been playing around w/ the datagrid control a little and I've gotten my data to import, but I'm not sure if this control has the … Software Development vb.net visual-studio | |
Hi I have the following code ... main() { .... ... if(var==true) { Graph g1=CreateGraph<Graph>(vertex,edge); } else { Graph1 g1=CreateGraph<Graph1>(vertex,edge); } numvertex(g1); } When i m calling numvertex() function it says undefined identifier g1 what can be the solution for this. Provided I cannot make define the object globally or … Software Development c++ | |
Here is my issue if anyone can help. I am trying to write a program that will generate 100 random numbers between 1 and 50. With these numbers, I want to generate a list that will tell the number of random numbers that fell between 1-5, 6-10, 11-15, 16-20, ... … Software Development c | |
Hi Does anybody knows good website with a tutorial for C++. What I really looking for is a tutorial regarding the linked list, stack and queues with a good explanaitions. It would be lovely if anybody knows the site with an practice exercises on them (I mean programs) with an … Software Development c++ linked-list | |
Hello all, Am new here, so please bear with me - if i dont get some things right! Okie Dokie. Lets get started. I was working with Tomcat/Servlet/ODBC. I created a table in MS Access. Created the Connection, Statement, query and everything. I want to retrieve the information from the … | |
I recently installed Linux (Slackware Linux 12) on my laptop. On Windows I used IDLE for my python development, but on Linux, IDLE looks HORRIBLE. I tried tweaking the settings but it still looks bad, and is hard to program in. Can anyone recommend a good IDE for Python that … | |
I need to error check a user input and it must be a value between 0 and 13 whole numbers only. it will be stored in a int variable using the cin function. I dont remember how to do this since i have not taken a c++ course in 3 … Software Development c++ | |
[B][/B] Hi Members, please can anyone show me how I can write a blank line after writing each records? My intension is to space out the data in the spreadsheet for readability. So far the code I'm using is not doing it. Seem my module below: [code] i = 5 … Software Development visual-basic | |
Hi I try execute this code it compile without error but i couldnt execute, Where lies the problem need help import java.awt.*; import java.applet.Applet; import java.util.StringTokenizer; public class Kaleido extends Applet implements Runnable { Thread tumbler; boolean suspended; int timeout; Color background = Color.lightGray; Color lens = Color.black; int kaleidoSides,kaleidoSidesBy2; … Software Development java | |
Dear helpful members I would like to know how to make a batch of files--> save data into them--> close them For simplicity I was planning to call each file "i j"(i space j), where i=1 to 30, 1 and j=0 to 90, 10 so there would be a total … Software Development visual-basic | |
I am currently developing audio player project in vb6. i have downloaded a dll file named "WinampPluginWrapper.dll" i make this dll file methods inherit from vb class. But i try to execute the file i got error that " WinampPluginWrapper.dll" not found. Then i Placed this dll file available to … Software Development audio file-system visual-basic | |
Hi.. My code is as follows :- [code=c++]class Class1 { }; class class2 { }; main() { .... ..... if(var==true) class1 c1=createandmanipulate(file); else class2 c1=createandmanipulate(file); ...... ..... ..... } [/code] How should i declare the createandmanipulate() function so that it can return the respective object i.e either of Class1 or … Software Development c++ | |
:( can any one tell me how to write the errors/exceptions, occured while compiling vb.net program, in a text file????????? IN [B][COLOR="Red"]VB.NET2003[/COLOR][/B] :'( Software Development vb.net | |
ok so i'm new to vb. what is wrong with this code at line 28: Public Class Form1 Const DISCOUNT_RATE As Double = 0.1 Const RENTAL_RATE As Double = 1.8 Dim totSales As Integer Dim totIncome As Double Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load … Software Development vb.net | |
I was wondering if anyone knows a good C++ Win32 API Tutorial for someone who knows nothing about gui programming or the windows API. Software Development api c++ gui windows-api | |
Hey guys, I'm in a bowling league and I need to code a program to help sort/assign points to the scores. I do web design/graphic design so if anybody can help me at all I will be glad to help any of you with any web/graphic needs. Lets say theres … Software Development c++ web-design | |
Hi to all I'm writtting a small application, that one of its options will be delete Internet Temporary Files(Cache of IE). I try deleting the files but without any success. I found an example of code in the web, but when I use the code I receive a error that … Software Development | |
I am trying to add new lines to a TextBox control. I have MultiLine set to true and AcceptsReturn set to true. If I use the AppendText() method, I just get more text immediately behind what is already there. If I insert or add a newline escape \n it just … Software Development | |
[code=c] void transpose_matrices(int a[][2],int result[][2]) { int i,j,temp; for (i = 0; i < 2; i++) { for (j = i+1; j < 2; j++) { temp = a[i][j]; a[i][j] = a[j][i]; a[j][i] = temp; } } } [/code] it would be very helpful if someone guide with this transpose … Software Development c | |
Could someone please give me step by step instructions on how to make gtkmm work with Dev C++ on windows. I've tried following the instructions on the website, but I cant get it to work. Could you please tell me exactly what to download and where to install it. Thanks. Software Development c++ | |
Hi, I'm stuck with this one question we were asked to do in class...The program is to read input from a file that contains students' ids and marks and we have to determine their grades and store these variables as arrays then print it out. Then we were to create … | |
If one has no formal programming training how would you suggest going about learning java? Would it be necessary to learn another language first such as C++ or could one just grab an intro to Java book and dive right in? Software Development java | |
I want a line of buttons down the side of a swing window. I got this code so far: [code=java]import javax.swing.*; import java.awt.*; class basic extends JFrame // implements ActionListener { public basic() { super("Till"); setSize(600,500); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); Container contentArea = getContentPane(); contentArea.setBackground(Color.white); BorderLayout flowManager = new BorderLayout(); contentArea.setLayout(flowManager); JPanel … Software Development java java-swing | |
I have written my code in VB6. I would like the code to pause when variable x = 1, and the program will continue when I hit a key or something of that sort. Could you give me a hand on this? ThanX Software Development visual-basic | |
Hello. I'm having a hard time figuring this out. I want to open a file, but I don't know the filename. I know the directory the file resides in, and I know the extension ('.lay'), and I know there is only one file with that extension in the directory. How … Software Development c ![]() | |
here is what I have to create: using while, for, do...while Write a program that displays a menu with the following choices to the user. A - Find the largest # with a known quantity of numbers B - Find the smallest # with an unknown quantity of numbers C … Software Development c++ | |
Good people, Please can someone show me how I can add a permanent comment to the end (footer) of my spreadsheet. I want this comment to be visible when the spreadsheet is printed. I know how to add the comment on the spreadsheet that is visible only when you hover … Software Development visual-basic | |
Hey, i am practicing in this book sample, it says i can rewrite my code for determining the highest value in my 3 input. the commented part is working perfectly (Line 19, 26), it can return the highest value... but when i try to rewrite it using the Math.max method, … Software Development java | |
[code=cplusplus] void * operator new( unsigned int iSize ) { static unsigned char aMemPool[10000]; static unsigned iUsed = 0; iUsed += iSize; if( iUsed > 10000 ) { return 0; } return &aMemPool[iUsed-iSize]; } void MEM_UnitTest() { for( int i = 0; i < 100000; i++ ) { int *piTest … Software Development c++ | |
[code=c] extern CGameEngine *g_psEngine; // assume g_psEngine is always valid. #if !defined(BUILD_RELEASE) #define Debug(A) g_psEngine->DebugPrint(A); #else #define Debug(A) #endif if(!a)Debug(“Player Not Found”) ControlPlayer(); [/code] Software Development c++ | |
Hi. First i want to say taht I'm relly glad I found site like this. I LIKE IT!:) I'm noob in vb. I'm trying to work in vb6.0. i have some ideas like: creating some picture catalog, or making a game, i'm intersted in animcion...But my cnolege in vb is … Software Development visual-basic | |
A palindrome is a word that reads the same both forwards and backwards. Examples: anna, nitalarbralatin, amanaplanacanalpanama. Write a function that takes a string as parameter and returns true if the word is a palindrome, false otherwise. Also write a program palindrome.cc that reads words from the terminal and checks … Software Development c | |
i want to make a program that you can add some product details later in and you can then type the product code of a product and it is added to a report that you can print as a receipt to a customer showing the price of each product and … Software Development visual-basic | |
Alright, So I am rather new to programming and Python and I had a couple of questions that maybe you guys could help me with... I currently have a .txt that when read in Python is a list, now i want to be able to split it up into seperate … Software Development python | |
I'm new to Python, and need a bit of help. I have a large data set that is tab delimited but annoyingly also has some extra spaces in it and I can't seem to get it in a nice array to perform computations on it. This is a simplification of … Software Development python | |
[code] Set Worksh = Worksheets("SampleWorksheet") Set myRange = Worksh.Range("F1") msgbox myRange.Value, , "" 'WORKS: current value in "F1" cell is displayed myRange.Value = 100 'DOESNT WORK! : value in cell DOES NOT change [/code] I have no idea - it was supposed to work. Any ideas? Thanks Software Development visual-basic | |
Hi All... Plz solve my problem. String temp="Vendor number modified from 12345 to 00056789" How to separate these two numbers ? Plz reply soon. Software Development java | |
Hi i am new to Programming C++ in Visual C++, can anyone plz help me with the concept of UNICODE Programming in VC++, can anyone suggest me some good tutorial on this topic?? I am confused about _TCHAR etc stuff!!! Software Development c++ |
The End.